@@ -344,6 +344,9 @@ Copyright (C) 2011-2012 Xamarin. All rights reserved.
344
344
<AndroidUseAssemblyStore Condition =" '$(AndroidUseAssemblyStore)' == '' and ('$(EmbedAssembliesIntoApk)' != 'true' or '$(AndroidIncludeDebugSymbols)' == 'true') " >false</AndroidUseAssemblyStore >
345
345
<AndroidUseAssemblyStore Condition =" '$(AndroidUseAssemblyStore)' == '' " >true</AndroidUseAssemblyStore >
346
346
<_AndroidUseAssemblyStore >$(AndroidUseAssemblyStore)</_AndroidUseAssemblyStore >
347
+
348
+ <_EmbedAssemblyStoreInRuntime Condition =" '$(_AndroidUseAssemblyStore)' == 'True' And '$(_AndroidEmbedAssemblyStoreInRuntime)' == 'True' " >true</_EmbedAssemblyStoreInRuntime >
349
+ <_EmbedAssemblyStoreInRuntime Condition =" '$(_EmbedAssemblyStoreInRuntime)' != 'true' " >false</_EmbedAssemblyStoreInRuntime >
347
350
</PropertyGroup >
348
351
349
352
<!-- For CoreCLR assembly stores are always on, individual assembly entries in the APK aren't supported.
@@ -1881,7 +1884,7 @@ because xbuild doesn't support framework reference assemblies.
1881
1884
DependsOnTargets =" $(_GeneratePackageManagerJavaDependsOn)"
1882
1885
Inputs =" @(_GeneratePackageManagerJavaInputs)"
1883
1886
Outputs =" $(_AndroidStampDirectory)_GeneratePackageManagerJava.stamp" >
1884
-
1887
+
1885
1888
<!-- Create java needed for Mono runtime -->
1886
1889
<GeneratePackageManagerJava
1887
1890
MainAssembly =" $(TargetPath)"
@@ -1915,7 +1918,8 @@ because xbuild doesn't support framework reference assemblies.
1915
1918
EnableManagedMarshalMethodsLookup =" $(_AndroidUseManagedMarshalMethodsLookup)"
1916
1919
CustomBundleConfigFile =" $(AndroidBundleConfigurationFile)"
1917
1920
TargetsCLR =" $(_AndroidUseCLR)"
1918
- ProjectRuntimeConfigFilePath =" $(ProjectRuntimeConfigFilePath)" >
1921
+ ProjectRuntimeConfigFilePath =" $(ProjectRuntimeConfigFilePath)"
1922
+ AndroidBinUtilsDirectory =" $(AndroidBinUtilsDirectory)" >
1919
1923
</GenerateNativeApplicationConfigSources >
1920
1924
1921
1925
<GenerateNativeMarshalMethodSources
@@ -1927,7 +1931,7 @@ because xbuild doesn't support framework reference assemblies.
1927
1931
SatelliteAssemblies =" @(_AndroidResolvedSatellitePaths)"
1928
1932
SupportedAbis =" @(_BuildTargetAbis)" >
1929
1933
</GenerateNativeMarshalMethodSources >
1930
-
1934
+
1931
1935
<Touch Files =" $(_AndroidStampDirectory)_GeneratePackageManagerJava.stamp" AlwaysCreate =" True" />
1932
1936
<ItemGroup >
1933
1937
<FileWrites Include =" @(_EnvironmentAssemblySource)" />
@@ -2336,7 +2340,7 @@ because xbuild doesn't support framework reference assemblies.
2336
2340
in monodroid.
2337
2341
-->
2338
2342
<CreateAssemblyStore
2339
- Condition =" '$(_AndroidRuntime)' != 'NativeAOT' "
2343
+ Condition =" '$(_AndroidRuntime)' != 'NativeAOT' And '$(_EmbedAssemblyStoreInRuntime)' != 'True' "
2340
2344
AppSharedLibrariesDir =" $(_AndroidApplicationSharedLibraryPath)"
2341
2345
IncludeDebugSymbols =" $(AndroidIncludeDebugSymbols)"
2342
2346
ResolvedFrameworkAssemblies =" @(_BuildApkResolvedFrameworkAssemblies)"
@@ -2347,7 +2351,7 @@ because xbuild doesn't support framework reference assemblies.
2347
2351
</CreateAssemblyStore >
2348
2352
2349
2353
<WrapAssembliesAsSharedLibraries
2350
- Condition =" '$(_AndroidRuntime)' != 'NativeAOT' "
2354
+ Condition =" '$(_AndroidRuntime)' != 'NativeAOT' And '$(_EmbedAssemblyStoreInRuntime)' != 'True' "
2351
2355
AndroidBinUtilsDirectory =" $(AndroidBinUtilsDirectory)"
2352
2356
IncludeDebugSymbols =" $(AndroidIncludeDebugSymbols)"
2353
2357
IntermediateOutputPath =" $(IntermediateOutputPath)"
@@ -2374,17 +2378,6 @@ because xbuild doesn't support framework reference assemblies.
2374
2378
<Output TaskParameter =" FilesToAddToArchive" ItemName =" FilesToAddToArchive" />
2375
2379
</CollectJarContentFilesForArchive >
2376
2380
2377
- <!-- CoreCLR builds embed runtime config in libxamarin-app.so -->
2378
- <CollectRuntimeConfigFilesForArchive
2379
- Condition =" '$(_AndroidRuntime)' == 'MonoVM' "
2380
- AndroidBinUtilsDirectory =" $(AndroidBinUtilsDirectory)"
2381
- IntermediateOutputPath =" $(IntermediateOutputPath)"
2382
- RuntimeConfigBinFilePath =" $(_BinaryRuntimeConfigPath)"
2383
- SupportedAbis =" @(_BuildTargetAbis)"
2384
- RuntimePackLibraryDirectories =" @(_RuntimePackLibraryDirectory)" >
2385
- <Output TaskParameter =" FilesToAddToArchive" ItemName =" FilesToAddToArchive" />
2386
- </CollectRuntimeConfigFilesForArchive >
2387
-
2388
2381
<CollectNativeFilesForArchive
2389
2382
AndroidNdkDirectory =" $(_AndroidNdkDirectory)"
2390
2383
ApkOutputPath =" $(_ApkOutputPath)"
0 commit comments