Skip to content

Commit

Permalink
Fixes from rename. Option to build us and boo
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvoorhe committed Feb 1, 2016
1 parent 4e6366a commit 23dfffd
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 12 deletions.
16 changes: 12 additions & 4 deletions build.pl
Expand Up @@ -28,6 +28,7 @@
my $artifact=0;
my $debug=0;
my $disableMsc=0;
my $buildUsAndBoo=0;
my $artifactsCommon=0;
my $runRuntimeTests=1;
my $runClasslibTests=1;
Expand All @@ -52,6 +53,7 @@
'artifactscommon=i'=>\$artifactsCommon,
'debug=i'=>\$debug,
'disablemsc=i'=>\$disableMsc,
'buildusandboo=i'=>\$buildUsAndBoo,
'runtimetests=i'=>\$runRuntimeTests,
'classlibtests=i'=>\$runClasslibTests,
'arch32=i'=>\$arch32,
Expand Down Expand Up @@ -287,6 +289,12 @@
print(">>> Skipping build\n");
}

if ($buildUsAndBoo)
{
print(">>> Building Unity Script and Boo...\n");
system("perl", "$buildscriptsdir/build_us_and_boo.pl") eq 0 or die ("Failed builidng Unity Script and Boo\n");
}

if ($artifact)
{
print(">>> Creating artifact...\n");
Expand Down Expand Up @@ -314,10 +322,10 @@

#TODO by Mike : Deal with copying to expected structure

system("cp -r $monoprefix/bin $distdir/") eq 0 or die ("failed copying bin folder");
system("cp -r $monoprefix/etc $distdir/") eq 0 or die("failed copying etc folder");
system("cp -r $monoprefix/lib/mono/gac $distdirlibmono") eq 0 or die("failed copying gac");
system("cp -r $monoprefix/lib/mono/xbuild-frameworks $distdirlibmono") eq 0 or die("failed copying xbuild-frameworks");
system("cp -r $monoprefix/bin $distdir/") eq 0 or die ("failed copying bin folder\n");
system("cp -r $monoprefix/etc $distdir/") eq 0 or die("failed copying etc folder\n");
system("cp -r $monoprefix/lib/mono/gac $distdirlibmono") eq 0 or die("failed copying gac\n");
system("cp -r $monoprefix/lib/mono/xbuild-frameworks $distdirlibmono") eq 0 or die("failed copying xbuild-frameworks\n");

# now remove nunit
for my $profile (@profiles)
Expand Down
4 changes: 2 additions & 2 deletions build_all_linux.pl
Expand Up @@ -21,7 +21,7 @@
}

print(">>> Building i386\n");
system("perl", "$buildscriptsdir/build_all.pl", "--arch32=1", "--clean=1", "--classlibtests=0", @passAlongArgs) eq 0 or die ('failing building i386');
system("perl", "$buildscriptsdir/build.pl", "--arch32=1", "--clean=1", "--classlibtests=0", @passAlongArgs) eq 0 or die ('failing building i386');

print(">>> Building x86_64\n");
system("perl", "$buildscriptsdir/build_all.pl", "--clean=1", "--classlibtests=0", @passAlongArgs) eq 0 or die ('failing building x86_64');
system("perl", "$buildscriptsdir/build.pl", "--clean=1", "--classlibtests=0", @passAlongArgs) eq 0 or die ('failing building x86_64');
4 changes: 2 additions & 2 deletions build_all_osx.pl
Expand Up @@ -40,10 +40,10 @@
);

print(">>> Building i386\n");
system("perl", "$buildscriptsdir/build_all.pl", "--arch32=1", "--clean=1", "--classlibtests=0", @passAlongArgs) eq 0 or die ('failing building i386');
system("perl", "$buildscriptsdir/build.pl", "--arch32=1", "--clean=1", "--classlibtests=0", @passAlongArgs) eq 0 or die ('failing building i386');

print(">>> Building x86_64\n");
system("perl", "$buildscriptsdir/build_all.pl", "--clean=1", "--artifactsCommon=1", "--classlibtests=0", @passAlongArgs) eq 0 or die ('failing building x86_64');
system("perl", "$buildscriptsdir/build.pl", "--clean=1", "--artifactsCommon=1", "--classlibtests=0", @passAlongArgs) eq 0 or die ('failing building x86_64');

if ($artifact)
{
Expand Down
4 changes: 2 additions & 2 deletions build_all_win.pl
Expand Up @@ -21,7 +21,7 @@
}

print(">>> Building i386\n");
system("perl", "$buildscriptsdir/build_all_win_wrapper.pl", "--arch32=1", "--clean=1", "--classlibtests=0", @passAlongArgs) eq 0 or die ('failing building win32');
system("perl", "$buildscriptsdir/build_win_wrapper.pl", "--arch32=1", "--clean=1", "--classlibtests=0", @passAlongArgs) eq 0 or die ('failing building win32');

print(">>> Building x86_64\n");
system("perl", "$buildscriptsdir/build_all_win_wrapper.pl", "--clean=1", "--classlibtests=0", @passAlongArgs) eq 0 or die ('failing building x64');
system("perl", "$buildscriptsdir/build_win_wrapper.pl", "--clean=1", "--classlibtests=0", @passAlongArgs) eq 0 or die ('failing building x64');
2 changes: 1 addition & 1 deletion build_win_wrapper.pl
Expand Up @@ -97,4 +97,4 @@
push @passAlongArgs, "--winmonoroot=$monoroot";

print ">>> Calling $cygwinRootWindows\\bin\\sh.exe with @passAlongArgs";
system("$cygwinRootWindows\\bin\\sh.exe", "$monoroot/external/buildscripts/build_all_win.sh", @passAlongArgs) eq 0 or die("failed building mono\n");
system("$cygwinRootWindows\\bin\\sh.exe", "$monoroot/external/buildscripts/build_win_wrapper.sh", @passAlongArgs) eq 0 or die("failed building mono\n");
2 changes: 1 addition & 1 deletion build_win_wrapper.sh
Expand Up @@ -9,4 +9,4 @@ echo
echo ">>> PATH in Win Shell Script = $PATH"
echo

perl "$BUILD_SCRIPT_ROOT/build_all.pl" "$@"
perl "$BUILD_SCRIPT_ROOT/build.pl" "$@"

0 comments on commit 23dfffd

Please sign in to comment.