forked from mono/mono
-
Notifications
You must be signed in to change notification settings - Fork 520
/
Copy pathbuild_classlibs_osx.pl
40 lines (34 loc) · 978 Bytes
/
build_classlibs_osx.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
use Cwd;
use Cwd 'abs_path';
use Getopt::Long;
use File::Basename;
use File::Path;
my $monoroot = File::Spec->rel2abs(dirname(__FILE__) . "/../..");
my $monoroot = abs_path($monoroot);
my $buildScriptsRoot = "$monoroot/external/buildscripts";
my $build = 1;
my $clean = 1;
my $mcsOnly = 0;
my $skipMonoMake = 0;
# Handy troubleshooting/niche options
# The prefix hack probably isn't needed anymore. Let's disable it by default and see how things go
my $shortPrefix = 1;
GetOptions(
"build=i"=>\$build,
"clean=i"=>\$clean,
"mcsOnly=i"=>\$mcsOnly,
'skipmonomake=i'=>\$skipMonoMake,
'shortprefix=i'=>\$shortPrefix,
) or die ("illegal cmdline options");
system(
"perl",
"$buildScriptsRoot/build.pl",
"--build=$build",
"--clean=$clean",
"--mcsonly=$mcsOnly",
"--skipmonomake=$skipMonoMake",
"--artifact=1",
"--artifactscommon=1",
"--buildusandboo=1",
"--forcedefaultbuilddeps=1",
"--shortprefix=$shortPrefix") eq 0 or die ("Failed building mono\n");