Skip to content

Commit

Permalink
DEBUG monotouch-test/iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Git History Editor authored and rolfbjarne committed Jun 2, 2023
1 parent 892fcf2 commit a4e8819
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/monotouch-test/dotnet/iOS/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
include ../shared.mk

dev:
rm -rf bin obj
$(Q) $(MAKE) build BUILD_ARGUMENTS="/p:RuntimeIdentifier=ios-arm64"

llvm:
Expand All @@ -14,3 +15,10 @@ norm:

run-norm:
$(Q) $(MAKE) build BUILD_ARGUMENTS="/p:RuntimeIdentifier=ios-arm64 /p:MtouchLink=SdkOnly /p:Configuration=Release-norm /bl:$@.binlog /t:Run"

nativeaot:
rm -rf bin obj
$(Q) $(MAKE) build BUILD_ARGUMENTS="/p:RuntimeIdentifier=ios-arm64 /p:PublishAot=true /p:MtouchLink=Full /p:Configuration=Release /p:PublishAotUsingRuntimePack=true /bl:$@.binlog"

run-nativeaot:
$(Q) $(MAKE) build BUILD_ARGUMENTS="/p:RuntimeIdentifier=ios-arm64 /p:PublishAot=true /p:MtouchLink=Full /p:Configuration=Release /p:PublishAotUsingRuntimePack=true /bl:$@.binlog /t:Run"
43 changes: 43 additions & 0 deletions tests/monotouch-test/dotnet/iOS/monotouch-test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,55 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net$(BundledNETCoreAppTargetFrameworkVersion)-ios</TargetFramework>
<DefineConstants>$(DefineConstants);NATIVEAOT</DefineConstants>
</PropertyGroup>







<!-- NativeAOT hacks -->

<PropertyGroup>
<MtouchLink>Full</MtouchLink>
<IlcKeepManagedDebuggerSupport>true</IlcKeepManagedDebuggerSupport> <!-- https://github.com/dotnet/runtime/issues/86186 -->
<EnableAssemblyILStripping>false</EnableAssemblyILStripping>
<CustomNativeMain>true</CustomNativeMain>
<IlcCompileDependsOn>Compile;_ComputeLinkerArguments;_XamarinILLink;SetupOSSpecificProps;PrepareForILLink;_XamarinComputeIlcCompileInputs</IlcCompileDependsOn>
</PropertyGroup>

<!-- <ItemGroup>
<CustomLinkerArg Include="-miphoneos-version-min=11.0" />
<CustomLinkerArg Include="-isysroot /Applications/Xcode_14.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk" />
</ItemGroup>
-->
<!-- Imports of the form '../shared.csproj' will be inlined by xharness -->
<Import Project="../shared.csproj" />

<ItemGroup>
<!-- this empty item group is here for xharness -->
</ItemGroup>

<PropertyGroup>
<MtouchLink>Full</MtouchLink>
</PropertyGroup>

<Target Name="_XamarinComputeIlcCompileInputsBefore" BeforeTargets="_XamarinComputeIlcCompileInputs">
<ItemGroup>
<LinkerArg Remove="-lswiftCore" />
<LinkerArg Remove="-lswiftFoundation" />
<LinkerArg Remove="-L/usr/lib/swift" />
<_CustomLinkFlags Include="-framework" />
<_CustomLinkFlags Include="GSS" />

<!-- <AutoInitializedAssemblies Remove="@(AutoInitializedAssemblies)" /> -->
</ItemGroup>
</Target>

<Target Name="CopyNativeBinary2" BeforeTargets="CopyNativeBinary">
<MakeDir Directories="$(NativeOutputPath)" />
<Touch AlwaysCreate="true" Files="$(NativeOutputPath)$(TargetName)$(NativeBinaryExt)" />
</Target>
</Project>

0 comments on commit a4e8819

Please sign in to comment.