Skip to content

Commit 07c1f14

Browse files
authored
Merge pull request #792 from Unity-Technologies/unity-master-us-and-boo-directory
Add folder specifically for UnityScript and Boo assemblies.
2 parents 0940f04 + d93250b commit 07c1f14

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

external/buildscripts/build_us_and_boo.pl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,21 @@ sub BuildUnityScriptFor45
137137

138138
print(">>> Copying $monoprefix45/us.exe to $usBuildDir\n");
139139
copy("$monoprefix45/us.exe", "$usBuildDir/.");
140+
141+
# put unityscript and boo into their own directories that we can reference for compilation only in Unity
142+
my $usLibDir = "$monoprefix/lib/mono/unityscript";
143+
144+
if (!(-d "$usLibDir"))
145+
{
146+
print(">>> Removing directory $usLibDir\n");
147+
rmtree($usLibDir);
148+
}
149+
150+
mkdir($usLibDir);
151+
152+
foreach my $file (glob "$usBuildDir/*")
153+
{
154+
print(">>> Copying $file to $usLibDir\n");
155+
copy($file, "$usLibDir/.");
156+
}
140157
}

0 commit comments

Comments
 (0)