mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-11 18:20:26 +09:00
Mdhwang/reduce mobile checks (#35105)
* [eng] Add TargetsMobile Property to Subsets.props * Replace TargetOS mobile conditions with TargetsMobile Property * [libraries] Remove leftover condition` Co-authored-by: Mitchell Hwang <mihw@microsoft.com>
This commit is contained in:
parent
6dfab97cf0
commit
5179706b74
7 changed files with 16 additions and 17 deletions
|
@ -48,6 +48,10 @@
|
||||||
<LibrariesTargetOS Condition="'$(LibrariesTargetOS)' == ''">$(TargetOS)</LibrariesTargetOS>
|
<LibrariesTargetOS Condition="'$(LibrariesTargetOS)' == ''">$(TargetOS)</LibrariesTargetOS>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetsMobile Condition="'$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'Android' or '$(TargetOS)' == 'tvOS'">true</TargetsMobile>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
<!--Feature switches -->
|
<!--Feature switches -->
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<EnableNgenOptimization Condition="'$(EnableNgenOptimization)' == '' and '$(Configuration)' == 'Release'">true</EnableNgenOptimization>
|
<EnableNgenOptimization Condition="'$(EnableNgenOptimization)' == '' and '$(Configuration)' == 'Release'">true</EnableNgenOptimization>
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<DefaultSubsets>clr+mono+libs+installer</DefaultSubsets>
|
<DefaultSubsets>clr+mono+libs+installer</DefaultSubsets>
|
||||||
<DefaultSubsets Condition="'$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'Android' or '$(TargetOS)' == 'tvOS'">mono+libs+installer</DefaultSubsets>
|
<DefaultSubsets Condition="'$(TargetsMobile)' == 'true'">mono+libs+installer</DefaultSubsets>
|
||||||
<DefaultSubsets Condition="'$(TargetOS)' == 'WebAssembly'">mono+libs</DefaultSubsets>
|
<DefaultSubsets Condition="'$(TargetOS)' == 'WebAssembly'">mono+libs</DefaultSubsets>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<RuntimeFlavor Condition="'$(TargetOS)' == 'tvOS' or '$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'Android' or '$(TargetOS)' == 'WebAssembly'">Mono</RuntimeFlavor>
|
<RuntimeFlavor Condition="'$(TargetsMobile)' == 'true' or '$(TargetOS)' == 'WebAssembly'">Mono</RuntimeFlavor>
|
||||||
<RuntimeFlavor Condition="'$(RuntimeFlavor)' == '' and ($(_subset.Contains('+mono+')) or $(_subset.Contains('+mono.runtime+'))) and (!$(_subset.Contains('+clr+')) and !$(_subset.Contains('+clr.runtime+')))">Mono</RuntimeFlavor>
|
<RuntimeFlavor Condition="'$(RuntimeFlavor)' == '' and ($(_subset.Contains('+mono+')) or $(_subset.Contains('+mono.runtime+'))) and (!$(_subset.Contains('+clr+')) and !$(_subset.Contains('+clr.runtime+')))">Mono</RuntimeFlavor>
|
||||||
<RuntimeFlavor Condition="'$(RuntimeFlavor)' == ''">CoreCLR</RuntimeFlavor>
|
<RuntimeFlavor Condition="'$(RuntimeFlavor)' == ''">CoreCLR</RuntimeFlavor>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
IBCMerge optimizations on Mac for now to unblock the offical build.
|
IBCMerge optimizations on Mac for now to unblock the offical build.
|
||||||
See issue https://github.com/dotnet/runtime/issues/33303
|
See issue https://github.com/dotnet/runtime/issues/33303
|
||||||
-->
|
-->
|
||||||
<IsEligibleForNgenOptimization Condition="'$(TargetOS)' == 'OSX' or '$(TargetOS)' == 'tvOS' or '$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'Android'">false</IsEligibleForNgenOptimization>
|
<IsEligibleForNgenOptimization Condition="'$(TargetOS)' == 'OSX' or '$(TargetsMobile)' == 'true'">false</IsEligibleForNgenOptimization>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<Target Name="SetApplyNgenOptimization"
|
<Target Name="SetApplyNgenOptimization"
|
||||||
|
|
|
@ -133,9 +133,9 @@
|
||||||
<IsNative>true</IsNative>
|
<IsNative>true</IsNative>
|
||||||
</RuntimeFiles>
|
</RuntimeFiles>
|
||||||
|
|
||||||
<MonoCrossFiles Condition="'$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'Android' or '$(TargetOS)' == 'tvOS'"
|
<MonoCrossFiles Condition="'$(TargetsMobile)' == 'true'"
|
||||||
Include="$(MonoArtifactsPath)\cross\*.*" />
|
Include="$(MonoArtifactsPath)\cross\*.*" />
|
||||||
<MonoIncludeFiles Condition="'$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'Android' or '$(TargetOS)' == 'tvOS'"
|
<MonoIncludeFiles Condition="'$(TargetsMobile)' == 'true'"
|
||||||
Include="$(MonoArtifactsPath)\include\**\*.*" />
|
Include="$(MonoArtifactsPath)\include\**\*.*" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
|
@ -357,7 +357,7 @@
|
||||||
<CrossGenSymbolExtension>.map</CrossGenSymbolExtension>
|
<CrossGenSymbolExtension>.map</CrossGenSymbolExtension>
|
||||||
<CrossGenSymbolExtension Condition="'$(TargetOS)' == 'Windows_NT'">.ni.pdb</CrossGenSymbolExtension>
|
<CrossGenSymbolExtension Condition="'$(TargetOS)' == 'Windows_NT'">.ni.pdb</CrossGenSymbolExtension>
|
||||||
<!-- OSX doesn't have crossgen symbols, yet -->
|
<!-- OSX doesn't have crossgen symbols, yet -->
|
||||||
<CrossGenSymbolExtension Condition="'$(TargetOS)' == 'OSX' or '$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'tvOS' or '$(TargetOS)' == 'Android'"></CrossGenSymbolExtension>
|
<CrossGenSymbolExtension Condition="'$(TargetOS)' == 'OSX' or '$(TargetsMobile)' == 'true'"></CrossGenSymbolExtension>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -67,11 +67,11 @@
|
||||||
<TargetPath>tools</TargetPath>
|
<TargetPath>tools</TargetPath>
|
||||||
</RuntimeFiles>
|
</RuntimeFiles>
|
||||||
|
|
||||||
<RuntimeFiles Condition="'$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'tvOS' or '$(TargetOS)' == 'Android'"
|
<RuntimeFiles Condition="'$(TargetsMobile)' == 'true'"
|
||||||
Include="@(MonoCrossFiles)">
|
Include="@(MonoCrossFiles)">
|
||||||
<TargetPath>runtimes/$(PackageRID)/native/cross</TargetPath>
|
<TargetPath>runtimes/$(PackageRID)/native/cross</TargetPath>
|
||||||
</RuntimeFiles>
|
</RuntimeFiles>
|
||||||
<RuntimeFiles Condition="'$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'tvOS' or '$(TargetOS)' == 'Android'"
|
<RuntimeFiles Condition="'$(TargetsMobile)' == 'true'"
|
||||||
Include="@(MonoIncludeFiles)">
|
Include="@(MonoIncludeFiles)">
|
||||||
<TargetPath>runtimes/$(PackageRID)/native/include/%(RecursiveDir)</TargetPath>
|
<TargetPath>runtimes/$(PackageRID)/native/include/%(RecursiveDir)</TargetPath>
|
||||||
</RuntimeFiles>
|
</RuntimeFiles>
|
||||||
|
|
|
@ -35,17 +35,12 @@
|
||||||
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(HostArch)' == 'arm'">arm</TargetArchitecture>
|
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(HostArch)' == 'arm'">arm</TargetArchitecture>
|
||||||
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(HostArch)' == 'arm64'">arm64</TargetArchitecture>
|
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(HostArch)' == 'arm64'">arm64</TargetArchitecture>
|
||||||
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(TargetOS)' == 'WebAssembly'">wasm</TargetArchitecture>
|
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(TargetOS)' == 'WebAssembly'">wasm</TargetArchitecture>
|
||||||
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(TargetOS)' == 'iOS'">x64</TargetArchitecture>
|
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(TargetsMobile)' == 'true'">x64</TargetArchitecture>
|
||||||
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(TargetOS)' == 'tvOS'">x64</TargetArchitecture>
|
|
||||||
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(TargetOS)' == 'Android'">x64</TargetArchitecture>
|
|
||||||
<TargetArchitecture Condition="'$(TargetArchitecture)' == ''">x64</TargetArchitecture>
|
<TargetArchitecture Condition="'$(TargetArchitecture)' == ''">x64</TargetArchitecture>
|
||||||
|
|
||||||
<!-- RuntimeOS is calculated based on the build system OS, however if building for WebAssembly/iOS/Android we need to let
|
<!-- RuntimeOS is calculated based on the build system OS, however if building for WebAssembly/iOS/Android we need to let
|
||||||
the build system to use webassembly/ios/android as the RuntimeOS for produced package RIDs. -->
|
the build system to use webassembly/ios/android as the RuntimeOS for produced package RIDs. -->
|
||||||
<RuntimeOS Condition="'$(TargetOS)' == 'WebAssembly'">$(TargetOS.ToLowerInvariant())</RuntimeOS>
|
<RuntimeOS Condition="'$(TargetOS)' == 'WebAssembly' or '$(TargetsMobile)' == 'true'">$(TargetOS.ToLowerInvariant())</RuntimeOS>
|
||||||
<RuntimeOS Condition="'$(TargetOS)' == 'iOS'">$(TargetOS.ToLowerInvariant())</RuntimeOS>
|
|
||||||
<RuntimeOS Condition="'$(TargetOS)' == 'tvOS'">$(TargetOS.ToLowerInvariant())</RuntimeOS>
|
|
||||||
<RuntimeOS Condition="'$(TargetOS)' == 'Android'">$(TargetOS.ToLowerInvariant())</RuntimeOS>
|
|
||||||
|
|
||||||
<!-- Initialize BuildSettings from the individual properties if it wasn't already explicitly set -->
|
<!-- Initialize BuildSettings from the individual properties if it wasn't already explicitly set -->
|
||||||
<Configuration Condition="'$(Configuration)'==''">Debug</Configuration>
|
<Configuration Condition="'$(Configuration)'==''">Debug</Configuration>
|
||||||
|
@ -309,10 +304,10 @@
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(BuildAllConfigurations)' != 'true'">
|
<PropertyGroup Condition="'$(BuildAllConfigurations)' != 'true'">
|
||||||
<!-- We add extra binplacing for the test shared framework until we can get hardlinking with the runtime directory working on all platforms -->
|
<!-- We add extra binplacing for the test shared framework until we can get hardlinking with the runtime directory working on all platforms -->
|
||||||
<BinPlaceTestSharedFramework Condition="'$(BuildTargetFramework)' == '$(NetCoreAppCurrent)' and '$(TargetsMobile)' != 'true'">true</BinPlaceTestSharedFramework>
|
<BinPlaceTestSharedFramework Condition="'$(BuildTargetFramework)' == '$(NetCoreAppCurrent)'">true</BinPlaceTestSharedFramework>
|
||||||
<BinPlaceNETFXRuntime Condition="'$(BuildTargetFramework)' == '$(NetFrameworkCurrent)'">true</BinPlaceNETFXRuntime>
|
<BinPlaceNETFXRuntime Condition="'$(BuildTargetFramework)' == '$(NetFrameworkCurrent)'">true</BinPlaceNETFXRuntime>
|
||||||
|
|
||||||
<BinPlaceTestRuntimePack Condition="'$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'tvOS' or '$(TargetOS)' == 'Android'">true</BinPlaceTestRuntimePack>
|
<BinPlaceTestRuntimePack Condition="'$(TargetsMobile)' == 'true'">true</BinPlaceTestRuntimePack>
|
||||||
|
|
||||||
<NETCoreAppTestSharedFrameworkPath>$([MSBuild]::NormalizeDirectory('$(TestHostRootPath)', 'shared', 'Microsoft.NETCore.App', '$(ProductVersion)'))</NETCoreAppTestSharedFrameworkPath>
|
<NETCoreAppTestSharedFrameworkPath>$([MSBuild]::NormalizeDirectory('$(TestHostRootPath)', 'shared', 'Microsoft.NETCore.App', '$(ProductVersion)'))</NETCoreAppTestSharedFrameworkPath>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue