diff options
Diffstat (limited to 'src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Manifest/WorkloadManifest.targets.in')
-rw-r--r-- | src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Manifest/WorkloadManifest.targets.in | 120 |
1 files changed, 0 insertions, 120 deletions
diff --git a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Manifest/WorkloadManifest.targets.in b/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Manifest/WorkloadManifest.targets.in deleted file mode 100644 index a07122acd7b..00000000000 --- a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Manifest/WorkloadManifest.targets.in +++ /dev/null @@ -1,120 +0,0 @@ -<Project TreatAsLocalProperty="UsingBrowserRuntimeWorkload;WasmNativeWorkload"> - <PropertyGroup> - <RuntimePackInWorkloadVersion>${PackageVersion}</RuntimePackInWorkloadVersion> - <BrowserWorkloadDisabled Condition="'$(BrowserWorkloadDisabled)' == '' and - '$(RuntimeIdentifier)' == 'browser-wasm' and - '$(TargetFrameworkIdentifier)' == '.NETCoreApp' and - !$([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '6.0'))">true</BrowserWorkloadDisabled> - </PropertyGroup> - - <PropertyGroup Condition="'$(RuntimeIdentifier)' == 'browser-wasm' AND '$(UsingBrowserRuntimeWorkload)' == ''"> - <!-- $(WasmBuildNative)==true is needed to enable workloads, when using native references, without AOT --> - <UsingBrowserRuntimeWorkload Condition="'$(RunAOTCompilation)' == 'true' or '$(WasmBuildNative)' == 'true' or '$(WasmGenerateAppBundle)' == 'true' or '$(UsingMicrosoftNETSdkBlazorWebAssembly)' != 'true'" >true</UsingBrowserRuntimeWorkload> - <UsingBrowserRuntimeWorkload Condition="'$(UsingBrowserRuntimeWorkload)' == ''" >$(WasmNativeWorkload)</UsingBrowserRuntimeWorkload> - </PropertyGroup> - - <PropertyGroup Condition="'$(BrowserWorkloadDisabled)' == 'true'"> - <UsingBrowserRuntimeWorkload>false</UsingBrowserRuntimeWorkload> - <WasmNativeWorkload>false</WasmNativeWorkload> - </PropertyGroup> - - <PropertyGroup Condition="'$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true' and '$(UsingBrowserRuntimeWorkload)' == 'true'"> - <WasmGenerateAppBundle>false</WasmGenerateAppBundle> - <UsingBlazorAOTWorkloadManifest>true</UsingBlazorAOTWorkloadManifest> - </PropertyGroup> - - <Import Condition="'$(RunAOTCompilation)' == 'true' and '$(BrowserWorkloadDisabled)' != 'true'" Project="Sdk.props" Sdk="Microsoft.NET.Runtime.MonoAOTCompiler.Task" /> - - <ImportGroup Condition="'$(TargetPlatformIdentifier)' == 'android'"> - <Import Project="Sdk.props" Sdk="Microsoft.NET.Runtime.MonoTargets.Sdk" /> - <Import Project="Sdk.targets" Sdk="Microsoft.NET.Runtime.MonoTargets.Sdk" /> - </ImportGroup> - <ImportGroup Condition="'$(TargetPlatformIdentifier)' == 'android' and '$(RunAOTCompilation)' == 'true'"> - <Import Project="Sdk.props" Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.android-x86" /> - <Import Project="Sdk.props" Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.android-x64" /> - <Import Project="Sdk.props" Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.android-arm" /> - <Import Project="Sdk.props" Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.android-arm64" /> - </ImportGroup> - - <ImportGroup Condition="'$(TargetPlatformIdentifier)' == 'macOS'"> - <Import Project="Sdk.props" Sdk="Microsoft.NET.Runtime.MonoTargets.Sdk" /> - <Import Project="Sdk.targets" Sdk="Microsoft.NET.Runtime.MonoTargets.Sdk" /> - </ImportGroup> - - <ImportGroup Condition="'$(TargetPlatformIdentifier)' == 'ios'"> - <Import Project="Sdk.props" Sdk="Microsoft.NET.Runtime.MonoTargets.Sdk" /> - <Import Project="Sdk.targets" Sdk="Microsoft.NET.Runtime.MonoTargets.Sdk" /> - </ImportGroup> - <ImportGroup Condition="'$(TargetPlatformIdentifier)' == 'ios' and $([MSBuild]::IsOSPlatform('osx'))"> - <Import Project="Sdk.props" Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.ios-arm" /> - <Import Project="Sdk.props" Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.ios-arm64" /> - <Import Project="Sdk.props" Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.iossimulator-arm64" /> - <Import Project="Sdk.props" Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.iossimulator-x64" /> - <Import Project="Sdk.props" Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.iossimulator-x86" /> - </ImportGroup> - - <ImportGroup Condition="'$(TargetPlatformIdentifier)' == 'maccatalyst'"> - <Import Project="Sdk.props" Sdk="Microsoft.NET.Runtime.MonoTargets.Sdk" /> - <Import Project="Sdk.targets" Sdk="Microsoft.NET.Runtime.MonoTargets.Sdk" /> - </ImportGroup> - <ImportGroup Condition="'$(TargetPlatformIdentifier)' == 'maccatalyst' and $([MSBuild]::IsOSPlatform('osx'))"> - <Import Project="Sdk.props" Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.maccatalyst-arm64" /> - <Import Project="Sdk.props" Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.maccatalyst-x64" /> - </ImportGroup> - - <ImportGroup Condition="'$(TargetPlatformIdentifier)' == 'tvos'"> - <Import Project="Sdk.props" Sdk="Microsoft.NET.Runtime.MonoTargets.Sdk" /> - <Import Project="Sdk.targets" Sdk="Microsoft.NET.Runtime.MonoTargets.Sdk" /> - </ImportGroup> - <ImportGroup Condition="'$(TargetPlatformIdentifier)' == 'tvos' and $([MSBuild]::IsOSPlatform('osx'))"> - <Import Project="Sdk.props" Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.tvos-arm64" /> - <Import Project="Sdk.props" Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.tvossimulator-arm64" /> - <Import Project="Sdk.props" Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.tvossimulator-x64" /> - </ImportGroup> - - <ImportGroup Condition="'$(RuntimeIdentifier)' == 'browser-wasm' and '$(UsingBrowserRuntimeWorkload)' == 'true'"> - <Import Project="Sdk.props" Sdk="Microsoft.NET.Runtime.MonoTargets.Sdk" /> - <Import Project="Sdk.props" Sdk="Microsoft.NET.Runtime.WebAssembly.Sdk" /> - <Import Project="Sdk.targets" Sdk="Microsoft.NET.Runtime.WebAssembly.Sdk" /> - <Import Project="Sdk.props" Sdk="Microsoft.NETCore.App.Runtime.AOT.Cross.browser-wasm" /> - <Import Project="Sdk.targets" Sdk="Microsoft.NET.Runtime.MonoTargets.Sdk" /> - </ImportGroup> - - <PropertyGroup Condition="'$(TargetPlatformIdentifier)' == 'android' or '$(TargetPlatformIdentifier)' == 'macOS' or '$(TargetPlatformIdentifier)' == 'ios' or '$(TargetPlatformIdentifier)' == 'maccatalyst' or '$(TargetPlatformIdentifier)' == 'tvos' or ('$(RuntimeIdentifier)' == 'browser-wasm' and '$(UsingBrowserRuntimeWorkload)' == 'true')"> - <_MonoWorkloadTargetsMobile>true</_MonoWorkloadTargetsMobile> - <_MonoWorkloadRuntimePackPackageVersion>$(RuntimePackInWorkloadVersion)</_MonoWorkloadRuntimePackPackageVersion> - </PropertyGroup> - - <ItemGroup Condition="'$(_MonoWorkloadTargetsMobile)' == 'true'"> - <KnownRuntimePack Update="@(KnownRuntimePack)"> - <LatestRuntimeFrameworkVersion Condition="'%(KnownRuntimePack.TargetFramework)' == '${NetCoreAppCurrent}' and '%(KnownRuntimePack.RuntimePackLabels)' == 'Mono'">**FromWorkload**</LatestRuntimeFrameworkVersion> - <!-- Overrides for wasm threading support --> - <RuntimePackNamePatterns Condition="'$(RuntimeIdentifier)' == 'browser-wasm' and '$(WasmEnableThreading)' == 'true'">Microsoft.NETCore.App.Runtime.Mono.multithread.**RID**</RuntimePackNamePatterns> - <RuntimePackNamePatterns Condition="'$(RuntimeIdentifier)' == 'browser-wasm' and '$(WasmEnablePerfTrace)' == 'true'">Microsoft.NETCore.App.Runtime.Mono.perftrace.**RID**</RuntimePackNamePatterns> - </KnownRuntimePack> - </ItemGroup> - - <!-- we can't condition sdk imports on the item @(NativeFileReference). Instead, explicitly check before the build - and emit a warning --> - <Target Name="_CheckBrowserWorkloadNeededButNotAvailable" - Condition="'$(RuntimeIdentifier)' == 'browser-wasm' and '$(BrowserWorkloadDisabled)' != 'true' and '$(WasmNativeWorkload)' != 'true'" - BeforeTargets="Build"> - - <Warning Condition="@(NativeFileReference->Count()) > 0" - Text="%40(NativeFileReference) is not empty, but the native references won't be linked in, because neither %24(WasmBuildNative), nor %24(RunAOTCompilation) are 'true'. NativeFileReference=@(NativeFileReference)" /> - </Target> - - <Target Name="_ErrorDisabledWorkload" Condition="'$(BrowserWorkloadDisabled)' == 'true'" BeforeTargets="Build"> - <Error Condition="'$(RunAOTCompilation)' == 'true'" - Text="WebAssembly workloads, required for AOT, are only supported for projects targeting net6.0+ . Set %24(RunAOTCompilation)=false to disable it." /> - - <Error Condition="@(NativeFileReference->Count()) > 0" - Text="WebAssembly workloads, required for linking native files (from %40(NativeFileReference)), are only supported for projects targeting net6.0+ ." /> - </Target> - - <Target Name="_ErrorDualWasmThreadProps" - Condition="'$(RuntimeIdentifier)' == 'browser-wasm' and '$(BrowserWorkloadDisabled)' != 'true' and '$(WasmEnableThreading)' == 'true' and '$(WasmEnablePerfTrace)' == 'true'" - BeforeTargets="Build"> - <Error Text="WebAssembly workloads can only support one active threading mode at a time. Either set WasmEnableThreading or WasmEnablePerfTrace to true, but not both." /> - </Target> -</Project> |