@@ -298,8 +298,8 @@ Copyright (C) 2011-2012 Xamarin. All rights reserved.
298
298
<_AndroidFastDeployEnvironmentFiles Condition =" '$(_AndroidFastDeployEnvironmentFiles)' == '' And '$(EmbedAssembliesIntoApk)' == 'False' " >True</_AndroidFastDeployEnvironmentFiles >
299
299
<_AndroidFastDeployEnvironmentFiles Condition =" '$(_AndroidFastDeployEnvironmentFiles)' == '' " >False</_AndroidFastDeployEnvironmentFiles >
300
300
301
- <_AndroidUseCLR Condition =" '$(AndroidRuntime )' == 'CoreCLR' " >True</_AndroidUseCLR >
302
- <_AndroidUseCLR Condition =" '$(AndroidRuntime )' != 'CoreCLR' " >False</_AndroidUseCLR >
301
+ <_AndroidUseCLR Condition =" '$(_AndroidRuntime )' == 'CoreCLR' " >True</_AndroidUseCLR >
302
+ <_AndroidUseCLR Condition =" '$(_AndroidRuntime )' != 'CoreCLR' " >False</_AndroidUseCLR >
303
303
</PropertyGroup >
304
304
305
305
<Choose >
@@ -331,9 +331,9 @@ Copyright (C) 2011-2012 Xamarin. All rights reserved.
331
331
<AndroidUseAssemblyStore Condition =" '$(AndroidUseAssemblyStore)' == '' " >true</AndroidUseAssemblyStore >
332
332
<AndroidAotEnableLazyLoad Condition =" '$(AndroidAotEnableLazyLoad)' == '' And '$(AotAssemblies)' == 'true' And '$(AndroidIncludeDebugSymbols)' != 'true' " >True</AndroidAotEnableLazyLoad >
333
333
<AndroidEnableMarshalMethods Condition =" '$(AndroidEnableMarshalMethods)' == '' and ('$(UsingMicrosoftNETSdkRazor)' == 'true') " >False</AndroidEnableMarshalMethods >
334
- <AndroidEnableMarshalMethods Condition =" '$(AndroidEnableMarshalMethods)' == '' and '$(_AndroidNativeAot )' != 'true ' " >True</AndroidEnableMarshalMethods >
334
+ <AndroidEnableMarshalMethods Condition =" '$(AndroidEnableMarshalMethods)' == '' and '$(_AndroidRuntime )' != 'NativeAOT ' " >True</AndroidEnableMarshalMethods >
335
335
<!-- NOTE: temporarily disable for NativeAOT for now, to get build passing -->
336
- <AndroidEnableMarshalMethods Condition =" '$(AndroidEnableMarshalMethods)' == '' and '$(_AndroidNativeAot )' == 'true ' " >False</AndroidEnableMarshalMethods >
336
+ <AndroidEnableMarshalMethods Condition =" '$(AndroidEnableMarshalMethods)' == '' and '$(_AndroidRuntime )' == 'NativeAOT ' " >False</AndroidEnableMarshalMethods >
337
337
<_AndroidUseMarshalMethods Condition =" '$(AndroidIncludeDebugSymbols)' == 'True' " >False</_AndroidUseMarshalMethods >
338
338
<_AndroidUseMarshalMethods Condition =" '$(AndroidIncludeDebugSymbols)' != 'True' " >$(AndroidEnableMarshalMethods)</_AndroidUseMarshalMethods >
339
339
</PropertyGroup >
@@ -1359,12 +1359,12 @@ because xbuild doesn't support framework reference assemblies.
1359
1359
</Target >
1360
1360
1361
1361
<Target Name =" _CollectRuntimeJarFilenames" >
1362
- <PropertyGroup Condition =" '$(AndroidRuntime )' == 'Mono' Or '$(AndroidRuntime )' == '' " >
1362
+ <PropertyGroup Condition =" '$(_AndroidRuntime )' == 'Mono' Or '$(_AndroidRuntime )' == '' " >
1363
1363
<_RuntimeJar >$(MSBuildThisFileDirectory)\java_runtime_net6.jar</_RuntimeJar >
1364
1364
<_RuntimeDex >$(MSBuildThisFileDirectory)\java_runtime_net6.dex</_RuntimeDex >
1365
1365
</PropertyGroup >
1366
1366
1367
- <PropertyGroup Condition =" '$(AndroidRuntime )' == 'CoreCLR' " >
1367
+ <PropertyGroup Condition =" '$(_AndroidRuntime )' == 'CoreCLR' " >
1368
1368
<_RuntimeJar >$(MSBuildThisFileDirectory)\java_runtime_clr.jar</_RuntimeJar >
1369
1369
<_RuntimeDex >$(MSBuildThisFileDirectory)\java_runtime_clr.dex</_RuntimeDex >
1370
1370
</PropertyGroup >
@@ -1386,7 +1386,7 @@ because xbuild doesn't support framework reference assemblies.
1386
1386
DependsOnTargets=" _CollectRuntimeJarFilenames;$(_BeforeAddStaticResources);_GetMonoPlatformJarPath" >
1387
1387
<CopyResource ResourceName =" machine.config" OutputPath =" $(MonoAndroidIntermediateAssemblyDir)machine.config" />
1388
1388
<CopyResource
1389
- Condition =" '$(_AndroidNativeAot )' != 'true ' "
1389
+ Condition =" '$(_AndroidRuntime )' == 'MonoVM ' "
1390
1390
ResourceName =" MonoRuntimeProvider.Bundled.java"
1391
1391
OutputPath =" $(_AndroidIntermediateJavaSourceDirectory)mono\MonoRuntimeProvider.java"
1392
1392
/>
@@ -1505,7 +1505,7 @@ because xbuild doesn't support framework reference assemblies.
1505
1505
</ItemGroup >
1506
1506
1507
1507
<GenerateJavaStubs
1508
- NativeAot =" $(_AndroidNativeAot )"
1508
+ AndroidRuntime =" $(_AndroidRuntime )"
1509
1509
ResolvedAssemblies =" @(_ResolvedAssemblies)"
1510
1510
ResolvedUserAssemblies =" @(_ResolvedUserMonoAndroidAssemblies)"
1511
1511
ErrorOnCustomJavaObject =" $(AndroidErrorOnCustomJavaObject)"
@@ -1735,7 +1735,7 @@ because xbuild doesn't support framework reference assemblies.
1735
1735
</Target >
1736
1736
1737
1737
<Target Name =" _GeneratePackageManagerJava"
1738
- Condition =" '$(_AndroidNativeAot )' != 'true ' "
1738
+ Condition =" '$(_AndroidRuntime )' != 'NativeAOT ' "
1739
1739
DependsOnTargets =" $(_GeneratePackageManagerJavaDependsOn)"
1740
1740
Inputs =" @(_GeneratePackageManagerJavaInputs)"
1741
1741
Outputs =" $(_AndroidStampDirectory)_GeneratePackageManagerJava.stamp" >
@@ -1955,7 +1955,7 @@ because xbuild doesn't support framework reference assemblies.
1955
1955
1956
1956
<!-- Shrink Mono.Android.dll by removing attribute only needed for GenerateJavaStubs -->
1957
1957
<RemoveRegisterAttribute
1958
- Condition =" '$(AndroidLinkMode)' != 'None' and '$(AndroidIncludeDebugSymbols)' != 'true' and '$(AndroidStripILAfterAOT)' != 'true' and '$(_AndroidNativeAot )' != 'true ' "
1958
+ Condition =" '$(AndroidLinkMode)' != 'None' and '$(AndroidIncludeDebugSymbols)' != 'true' and '$(AndroidStripILAfterAOT)' != 'true' and '$(_AndroidRuntime )' != 'NativeAOT ' "
1959
1959
ShrunkFrameworkAssemblies =" @(_ShrunkAssemblies)" />
1960
1960
1961
1961
<MakeDir Directories =" $(MonoAndroidIntermediateAssemblyDir)shrunk" />
@@ -2032,13 +2032,13 @@ because xbuild doesn't support framework reference assemblies.
2032
2032
</Target >
2033
2033
2034
2034
<Target Name =" _PrepareApplicationSharedLibraryItems" >
2035
- <ItemGroup Condition =" '$(AndroidRuntime )' != 'CoreCLR' " >
2035
+ <ItemGroup Condition =" '$(_AndroidRuntime )' != 'CoreCLR' " >
2036
2036
<_ApplicationSharedLibrary Include =" $(_AndroidApplicationSharedLibraryPath)%(_BuildTargetAbis.Identity)\libxamarin-app.so" >
2037
2037
<abi >%(_BuildTargetAbis.Identity)</abi >
2038
2038
</_ApplicationSharedLibrary >
2039
2039
</ItemGroup >
2040
2040
2041
- <ItemGroup Condition =" '$(AndroidRuntime )' == 'CoreCLR' " >
2041
+ <ItemGroup Condition =" '$(_AndroidRuntime )' == 'CoreCLR' " >
2042
2042
<_ApplicationSharedLibrary Include =" $(_AndroidApplicationSharedLibraryPath)%(_BuildTargetAbis.Identity)\libxamarin-app-clr.so" >
2043
2043
<abi >%(_BuildTargetAbis.Identity)</abi >
2044
2044
</_ApplicationSharedLibrary >
0 commit comments