Skip to content

[mono] Unify mobile build integration files and sample apps for non-Mono runtimes #111923

Description

@ivanpovazan

Description

Unify and cleanup mobile samples and build integration files for non-Mono runtimes.

The idea is to use TargetRuntime or RuntimeType property with Mono, CoreCLR, NativeAOT values, instead of UseNativeAOTRuntime, UseMonoRuntime and RuntimeFlavor.

There is an attempt to work around this:

<AppleAppBuilderRuntime Condition="'$(AppleAppBuilderRuntime)' == '' and '$(UseNativeAOTRuntime)' == 'true'">NativeAOT</AppleAppBuilderRuntime>
<AppleAppBuilderRuntime Condition="'$(AppleAppBuilderRuntime)' == '' and '$(UseMonoRuntime)' == 'false'">CoreCLR</AppleAppBuilderRuntime>
<AppleAppBuilderRuntime Condition="'$(AppleAppBuilderRuntime)' == ''">MonoVM</AppleAppBuilderRuntime>

but still requires us to clean-up internal usage of UseMonoRuntime and RuntimeFlavor properties (see: #111919)

TODOs:

  • Address comment about different ways of importing runtime include files
  • Address comment by adding a Error message for unsupported library mode configuration
  • Address comment1 comment2 by sharing more code in hosts

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions