From 923910615b8d7b81582cb9543fd25785ae176b59 Mon Sep 17 00:00:00 2001 From: Aleksey Kliger Date: Fri, 2 Apr 2021 15:24:48 -0400 Subject: [PATCH] [mono] update iOS sample to run on Catalyst too use `make run-catalyst` --- src/mono/sample/iOS/Makefile | 16 ++++++++++++++++ src/mono/sample/iOS/Program.csproj | 20 +++++++++++++++++--- 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/src/mono/sample/iOS/Makefile b/src/mono/sample/iOS/Makefile index 7d4a6c680fcc1..be7c2bcefe0aa 100644 --- a/src/mono/sample/iOS/Makefile +++ b/src/mono/sample/iOS/Makefile @@ -18,5 +18,21 @@ run: clean appbuilder $(DOTNET) publish -c $(MONO_CONFIG) /p:TargetArchitecture=$(MONO_ARCH) \ /p:UseLLVM=$(USE_LLVM) /p:ForceAOT=$(AOT) +run-sim: clean appbuilder + $(DOTNET) publish -c $(MONO_CONFIG) /p:TargetOS=iOSSimulator /p:TargetArchitecture=$(MONO_ARCH) \ + /p:UseLLVM=$(USE_LLVM) /p:ForceAOT=$(AOT) + +run-catalyst: + $(DOTNET) publish -c $(MONO_CONFIG) /p:TargetOS=MacCatalyst /p:TargetArchitecture=$(MONO_ARCH) \ + /p:UseLLVM=False /p:ForceAOT=False + +run-sim-interp: clean appbuilder + $(DOTNET) publish -c $(MONO_CONFIG) /p:TargetOS=iOSSimulator /p:TargetArchitecture=$(MONO_ARCH) \ + /p:UseLLVM=$(USE_LLVM) /p:ForceAOT=$(AOT) /p:MonoForceInterpreter=true + +run-catalyst-interp: + $(DOTNET) publish -c $(MONO_CONFIG) /p:TargetOS=MacCatalyst /p:TargetArchitecture=$(MONO_ARCH) \ + /p:UseLLVM=False /p:ForceAOT=False /p:MonoForceInterpreter=true + clean: rm -rf bin diff --git a/src/mono/sample/iOS/Program.csproj b/src/mono/sample/iOS/Program.csproj index 56f3124b3865c..770b67cba6d86 100644 --- a/src/mono/sample/iOS/Program.csproj +++ b/src/mono/sample/iOS/Program.csproj @@ -8,11 +8,20 @@ $(ArtifactsBinDir)microsoft.netcore.app.runtime.$(TargetOS.ToLower())-$(TargetArchitecture)\$(Configuration)\runtimes\$(TargetOS.ToLower())-$(TargetArchitecture)\ false $(TargetOS.ToLower())-$(TargetArchitecture) - true - Link $(DefineConstants);CI_TEST + + + + + + + + + - + + @@ -35,7 +44,7 @@ $(MSBuildThisFileDirectory)$(PublishDir)\app iPhone 11 True - true + true @@ -83,11 +92,16 @@ + + + + +