Skip to content

Commit d93250b

Browse files
committed
Add folder specifically for UnityScript and Boo assemblies.
This starts process of treating them as not part of standard set of system assemblies. We can easily reference them as needed rather than assuming they are in all the mono profile directories.
1 parent 3207b33 commit d93250b

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)