|
5 | 5 | AddRuntimeFilesToPackage;
|
6 | 6 | AddFrameworkFilesToPackage
|
7 | 7 | </GetSharedFrameworkFilesForReadyToRunDependsOn>
|
8 |
| - <PublishReadyToRun Condition="'$(RuntimeFlavor)' != 'Mono'">true</PublishReadyToRun> |
9 |
| - <PublishReadyToRun Condition="'$(RuntimeFlavor)' == 'Mono'">false</PublishReadyToRun> |
| 8 | + <PublishReadyToRun Condition="'$(RuntimeFlavor)' != 'Mono' and '$(BuildNativeAOTRuntimePack)' != 'true'">true</PublishReadyToRun> |
| 9 | + <PublishReadyToRun Condition="'$(RuntimeFlavor)' == 'Mono' or '$(BuildNativeAOTRuntimePack)' == 'true'">false</PublishReadyToRun> |
10 | 10 | <!-- Disable crossgen on NetBSD, illumos and Solaris for now. This can be revisited when we have full support. -->
|
11 | 11 | <PublishReadyToRun Condition="'$(TargetOS)' == 'netbsd' or '$(TargetOS)' == 'illumos' or '$(TargetOS)' == 'solaris'">false</PublishReadyToRun>
|
12 | 12 | <!-- Disable crossgen on FreeBSD when cross building from Linux. -->
|
|
17 | 17 | <MacOSPackageDescription>The .NET Shared Framework</MacOSPackageDescription>
|
18 | 18 | </PropertyGroup>
|
19 | 19 |
|
| 20 | + <PropertyGroup Condition="'$(BuildNativeAOTRuntimePack)' == 'true'"> |
| 21 | + <RuntimeSpecificFrameworkSuffix>NativeAOT</RuntimeSpecificFrameworkSuffix> |
| 22 | + </PropertyGroup> |
20 | 23 | <PropertyGroup Condition="'$(RuntimeFlavor)' == 'Mono' and '$(RuntimeFlavor)' != '$(PrimaryRuntimeFlavor)'">
|
21 | 24 | <RuntimeSpecificFrameworkSuffix>Mono</RuntimeSpecificFrameworkSuffix>
|
22 | 25 | </PropertyGroup>
|
|
38 | 41 | We add the entries here to ensure that we don't fail the validation that every file included in the runtime pack is in the platform manifest
|
39 | 42 | without adding the entries to the manifest in the ref pack.
|
40 | 43 | -->
|
41 |
| - <ItemGroup> |
| 44 | + <ItemGroup Condition="'$(BuildNativeAOTRuntimePack)' != 'true'"> |
42 | 45 | <PlatformManifestFileEntry Include="hostpolicy.dll" IsNative="true" />
|
43 | 46 | <PlatformManifestFileEntry Include="libhostpolicy.so" IsNative="true" />
|
44 | 47 | <PlatformManifestFileEntry Include="libhostpolicy.dylib" IsNative="true" />
|
|
47 | 50 | <PlatformManifestFileEntry Include="libhostfxr.dylib" IsNative="true" />
|
48 | 51 | </ItemGroup>
|
49 | 52 |
|
| 53 | + <ItemGroup Condition="'$(BuildNativeAOTRuntimePack)' == 'true'"> |
| 54 | + <IgnoredDuplicateType Include="Internal.Runtime.CompilerHelpers.LibraryInitializer" /> |
| 55 | + </ItemGroup> |
| 56 | + |
50 | 57 | <Target Name="AddLinuxPackageInformation" BeforeTargets="GetDebInstallerJsonProperties;GetRpmInstallerJsonProperties">
|
51 | 58 | <ItemGroup>
|
52 | 59 | <LinuxPackageDependency Include="dotnet-hostfxr-$(MajorVersion).$(MinorVersion);dotnet-runtime-deps-$(MajorVersion).$(MinorVersion)" Version="$(InstallerPackageVersion)" />
|
53 | 60 | </ItemGroup>
|
54 | 61 | </Target>
|
55 | 62 |
|
56 |
| - <!-- Mobile uses a different hosting model, so we don't include the .NET host components. --> |
57 |
| - <ItemGroup Condition="'$(TargetsMobile)' != 'true'"> |
| 63 | + <!-- Mobile and NativeAOT use a different hosting model, so we don't include the .NET host components. --> |
| 64 | + <ItemGroup Condition="'$(TargetsMobile)' != 'true' and '$(BuildNativeAOTRuntimePack)' != 'true'"> |
58 | 65 | <NativeRuntimeAsset Include="$(DotNetHostBinDir)/$(LibPrefix)hostpolicy$(LibSuffix)" />
|
59 | 66 | <NativeRuntimeAsset Include="$(DotNetHostBinDir)/$(LibPrefix)hostfxr$(LibSuffix)" PackOnly="true" />
|
60 | 67 | </ItemGroup>
|
|
64 | 71 | <RuntimeFiles Condition="'%(RuntimeFiles.IsNative)' == 'true'">
|
65 | 72 | <TargetPath>runtimes/$(RuntimeIdentifier)/native</TargetPath>
|
66 | 73 | </RuntimeFiles>
|
67 |
| - |
| 74 | + </ItemGroup> |
| 75 | + <ItemGroup Condition="'$(BuildNativeAOTRuntimePack)' != 'true'"> |
68 | 76 | <RuntimeFiles Condition="'%(FileName)' == 'crossgen'">
|
69 | 77 | <TargetPath>tools</TargetPath>
|
70 | 78 | </RuntimeFiles>
|
|
87 | 95 | <TargetPath>runtimes/$(RuntimeIdentifier)/native/Mono.debug.framework/%(RecursiveDir)</TargetPath>
|
88 | 96 | </RuntimeFiles>
|
89 | 97 |
|
90 |
| - <RuntimeFiles Condition="'$(RuntimeFlavor)' == 'mono'" |
| 98 | + <RuntimeFiles Condition="'$(RuntimeFlavor)' == 'Mono'" |
91 | 99 | Include="$(MonoArtifactsPath)\build\**\*.*"
|
92 | 100 | ExcludeFromDataFiles="true">
|
93 | 101 | <TargetPath>runtimes/$(RuntimeIdentifier)/build/%(RecursiveDir)</TargetPath>
|
|
110 | 118 | Condition="Exists('$(CoreCLRArtifactsPath)StandardOptimizationData.mibc')">
|
111 | 119 | <TargetPath>tools</TargetPath>
|
112 | 120 | </CoreCLROptimizationFiles>
|
| 121 | + </ItemGroup> |
| 122 | + <ItemGroup> |
113 | 123 | <ReferenceCopyLocalPaths Include="@(RuntimeFiles);@(CoreCLRCrossTargetFiles);@(CoreCLROptimizationFiles)" />
|
114 | 124 | </ItemGroup>
|
115 | 125 | </Target>
|
|
123 | 133 | </ItemGroup>
|
124 | 134 | </Target>
|
125 | 135 |
|
126 |
| - <PropertyGroup Condition="'$(TargetOS)' == 'windows'"> |
| 136 | + <PropertyGroup Condition="'$(BuildNativeAOTRuntimePack)' != 'true' and '$(TargetOS)' == 'windows'"> |
127 | 137 | <!-- DiaSymReader for the host architecture, which is used for [cross-]compilation -->
|
128 | 138 | <_diaSymArch>$(_hostArch)</_diaSymArch>
|
129 | 139 | <_diaSymReaderPath>$(PkgMicrosoft_DiaSymReader_Native)/runtimes/win/native/Microsoft.DiaSymReader.Native.$(_diaSymArch).dll</_diaSymReaderPath>
|
|
134 | 144 | <_diaSymReaderTargetArchPath>$(PkgMicrosoft_DiaSymReader_Native)/runtimes/win/native/Microsoft.DiaSymReader.Native.$(_diaSymTargetArch).dll</_diaSymReaderTargetArchPath>
|
135 | 145 | </PropertyGroup>
|
136 | 146 |
|
137 |
| - <ItemGroup Condition="'$(TargetOS)' == 'windows'"> |
| 147 | + <ItemGroup Condition="'$(BuildNativeAOTRuntimePack)' != 'true' and '$(TargetOS)' == 'windows'"> |
138 | 148 | <NativeRuntimeAsset Include="$(_diaSymReaderTargetArchPath)" />
|
139 | 149 | <NativeRuntimeAsset Include="$(_diaSymReaderPath)" Condition="'$(CoreCLRCrossTargetComponentDirName)' != ''">
|
140 | 150 | <TargetPath>runtimes/$(CoreCLRCrossTargetComponentDirName)_$(TargetArchitecture)/native</TargetPath>
|
|
160 | 170 | </ItemGroup>
|
161 | 171 | </Target>
|
162 | 172 |
|
163 |
| - <Import Project="$(Crossgen2SdkOverridePropsPath)" Condition="'$(Crossgen2SdkOverridePropsPath)' != ''" /> |
| 173 | + <Import Project="$(Crossgen2SdkOverridePropsPath)" Condition="'$(BuildNativeAOTRuntimePack)' != 'true' and '$(Crossgen2SdkOverridePropsPath)' != ''" /> |
164 | 174 | <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
|
165 | 175 | <Import Project="Sdk.targets" Sdk="Microsoft.DotNet.SharedFramework.Sdk" />
|
166 |
| - <Import Project="$(Crossgen2SdkOverrideTargetsPath)" Condition="'$(Crossgen2SdkOverrideTargetsPath)' != ''" /> |
| 176 | + <Import Project="$(Crossgen2SdkOverrideTargetsPath)" Condition="'$(BuildNativeAOTRuntimePack)' != 'true' and '$(Crossgen2SdkOverrideTargetsPath)' != ''" /> |
167 | 177 | <PropertyGroup>
|
168 | 178 | <PublishReadyToRunComposite Condition="$(ForcePublishReadyToRunComposite) == 'true'">true</PublishReadyToRunComposite>
|
169 | 179 | </PropertyGroup>
|
|
0 commit comments