PS: Add -assemblies argument to select assemblies to send to il2cpp

This commit is contained in:
Katy Coe
2019-11-07 16:19:29 +01:00
parent 0ff7d45776
commit 2c912b211d

View File

@@ -9,6 +9,11 @@
# These are ordered from least to most preferred. If no files exist at the specified path,
# a silent exception will be thrown and the variable will not be re-assigned.
param (
# Which assemblies in the TestAssemblies folder to generate binaries for with il2cpp
[string]$assemblies = "*"
)
$ErrorActionPreference = "SilentlyContinue"
# Look for Unity Roslyn installs
@@ -90,7 +95,7 @@ gci $src | % {
# Run IL2CPP on all generated assemblies for both x86 and ARM
# Earlier builds of Unity included mscorlib.dll automatically; in current versions we must specify its location
gci $asm | % {
gci $asm -filter $assemblies | % {
# x86
$name = "GameAssembly-$($_.BaseName)-x86"
echo "Running il2cpp for test assembly $name (Windows/x86)..."