From 2c912b211d41df697065eafb349f692a4fddccdf Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Thu, 7 Nov 2019 16:19:29 +0100 Subject: [PATCH] PS: Add -assemblies argument to select assemblies to send to il2cpp --- Il2CppTests/generate-binaries.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Il2CppTests/generate-binaries.ps1 b/Il2CppTests/generate-binaries.ps1 index 09aabf0..a4021a9 100644 --- a/Il2CppTests/generate-binaries.ps1 +++ b/Il2CppTests/generate-binaries.ps1 @@ -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)..."