|
37 | 37 | my $winMonoRoot = $monoroot;
|
38 | 38 | my $msBuildVersion = "14.0";
|
39 | 39 | my $buildDeps = "";
|
40 |
| -my $stevedoreBuildDeps=0; |
| 40 | +my $stevedoreBuildDeps=1; |
41 | 41 |
|
42 | 42 | print(">>> Build All Args = @ARGV\n");
|
43 | 43 |
|
|
98 | 98 |
|
99 | 99 | if ($build)
|
100 | 100 | {
|
101 |
| - if ($existingMonoRootPath eq "") |
| 101 | + if (!(-d "$externalBuildDeps")) |
102 | 102 | {
|
103 |
| - print(">>> No existing mono supplied. Checking for external...\n"); |
104 |
| -
|
105 |
| - if (!(-d "$externalBuildDeps")) |
106 |
| - { |
107 |
| - if (not $checkoutonthefly) |
108 |
| - { |
109 |
| - print(">>> No external build deps found. Might as well try to check them out. If it fails, we'll continue and trust mono is in your PATH\n"); |
110 |
| - } |
111 |
| -
|
112 |
| - # Check out on the fly |
113 |
| - print(">>> Checking out mono build dependencies to : $externalBuildDeps\n"); |
114 |
| - my $repo = "https://ono.unity3d.com/unity-extra/mono-build-deps"; |
115 |
| - print(">>> Cloning $repo at $externalBuildDeps\n"); |
116 |
| - my $checkoutResult = system("hg", "clone", $repo, "$externalBuildDeps"); |
117 |
| -
|
118 |
| - if ($checkoutOnTheFly && $checkoutResult ne 0) |
119 |
| - { |
120 |
| - die("failed to checkout mono build dependencies\n"); |
121 |
| - } |
122 |
| - } |
123 |
| -
|
124 |
| - if (-d "$existingExternalMono") |
125 |
| - { |
126 |
| - print(">>> External mono found at : $existingExternalMono\n"); |
127 |
| -
|
128 |
| - if (-d "$existingExternalMono/builds") |
129 |
| - { |
130 |
| - print(">>> Mono already extracted at : $existingExternalMono/builds\n"); |
131 |
| - } |
132 |
| -
|
133 |
| - if (!(-d "$existingExternalMono/builds")) |
134 |
| - { |
135 |
| - # We need to extract builds.zip |
136 |
| - print(">>> Extracting mono builds.zip...\n"); |
137 |
| - my $SevenZip = "$externalBuildDeps/7z/win64/7za.exe"; |
138 |
| - print(">>> Using 7z : $SevenZip\n"); |
139 |
| - system("$SevenZip", "x", "$existingExternalMono/builds.zip", "-o$existingExternalMono") eq 0 or die("Failed extracting mono builds.zip\n"); |
140 |
| - } |
141 |
| -
|
142 |
| - $existingMonoRootPath = "$existingExternalMono/builds"; |
143 |
| - } |
144 |
| - else |
145 |
| - { |
146 |
| - print(">>> No external mono found. Trusting a new enough mono is in your PATH.\n"); |
147 |
| - } |
148 |
| - } |
149 |
| -
|
150 |
| - if ($existingMonoRootPath ne "" && !(-d $existingMonoRootPath)) |
151 |
| - { |
152 |
| - die("Existing mono not found at : $existingMonoRootPath\n"); |
| 103 | + print(">>> mono-build-deps is not required for windows runtime builds...\n"); |
153 | 104 | }
|
154 | 105 |
|
155 | 106 | system("$winPerl", "$winMonoRoot/external/buildscripts/build_runtime_vs.pl", "--build=$build", "--arch32=$arch32", "--msbuildversion=$msBuildVersion", "--clean=$clean", "--debug=$debug", "--gc=bdwgc") eq 0 or die ('failed building mono bdwgc with VS\n');
|
|
0 commit comments