forked from dotnet/installer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminate runtime portable build (backport dotnet#14549)
- Loading branch information
Showing
11 changed files
with
89 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletions
47
src/SourceBuild/tarball/content/repos/runtime-portable.proj
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
src/SourceBuild/tarball/content/repos/runtime.common.props
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
src/SourceBuild/tarball/content/repos/runtime.common.targets
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,103 @@ | ||
<Project> | ||
<Import Project="runtime.common.props"/> | ||
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" /> | ||
|
||
<!-- Build arguments --> | ||
<PropertyGroup> | ||
<LogVerbosityOptOut>true</LogVerbosityOptOut> | ||
|
||
<CleanCommand>$(ProjectDirectory)/clean$(ShellExtension)</CleanCommand> | ||
|
||
<OverrideTargetRid>$(TargetRid)</OverrideTargetRid> | ||
<OverrideTargetRid Condition="'$(TargetOS)' == 'OSX'">osx-x64</OverrideTargetRid> | ||
<OverrideTargetRid Condition="'$(TargetOS)' == 'FreeBSD'">freebsd-x64</OverrideTargetRid> | ||
<OverrideTargetRid Condition="'$(TargetOS)' == 'Windows_NT'">win-x64</OverrideTargetRid> | ||
|
||
<_platformIndex>$(NETCoreSdkRuntimeIdentifier.LastIndexOf('-'))</_platformIndex> | ||
<RuntimeOS>$(NETCoreSdkRuntimeIdentifier.Substring(0, $(_platformIndex)))</RuntimeOS> | ||
|
||
<_platformIndex>$(NETCoreSdkPortableRuntimeIdentifier.LastIndexOf('-'))</_platformIndex> | ||
<BaseOS>$(NETCoreSdkPortableRuntimeIdentifier.Substring(0, $(_platformIndex)))</BaseOS> | ||
|
||
<BuildCommandArgs>$(StandardSourceBuildArgs)</BuildCommandArgs> | ||
<BuildCommandArgs>$(BuildCommandArgs) /p:TargetRid=$(OverrideTargetRid)</BuildCommandArgs> | ||
<BuildCommandArgs>$(BuildCommandArgs) /p:RuntimeOS=$(RuntimeOS)</BuildCommandArgs> | ||
<BuildCommandArgs>$(BuildCommandArgs) /p:BaseOS=$(BaseOS)</BuildCommandArgs> | ||
<BuildCommandArgs>$(BuildCommandArgs) /p:SourceBuildNonPortable=true</BuildCommandArgs> | ||
<BuildCommand>$(StandardSourceBuildCommand) $(BuildCommandArgs)</BuildCommand> | ||
</PropertyGroup> | ||
|
||
<!-- Output / source-build flags --> | ||
<PropertyGroup> | ||
<GlobalJsonFile>$(ProjectDirectory)global.json</GlobalJsonFile> | ||
<NuGetConfigFile>$(ProjectDirectory)NuGet.config</NuGetConfigFile> | ||
<OutputPlacementRepoApiImplemented>false</OutputPlacementRepoApiImplemented> | ||
<DependencyVersionInputRepoApiImplemented>true</DependencyVersionInputRepoApiImplemented> | ||
</PropertyGroup> | ||
|
||
<!-- SDK Overrides --> | ||
<ItemGroup> | ||
<UseSourceBuiltSdkOverride Include="@(ArcadeSdkOverride)" /> | ||
<UseSourceBuiltSdkOverride Include="@(ArcadeCoreFxTestingOverride)" /> | ||
<UseSourceBuiltSdkOverride Include="@(ArcadePackagingOverride)" /> | ||
<UseSourceBuiltSdkOverride Include="@(ArcadeTargetFrameworkSdkOverride)" /> | ||
<UseSourceBuiltSdkOverride Include="@(ArcadeSharedFrameworkSdkOverride)" /> | ||
</ItemGroup> | ||
|
||
<!-- Environment Variables --> | ||
<ItemGroup> | ||
<EnvironmentVariables Include="BuildInParallel=false" /> | ||
</ItemGroup> | ||
|
||
<!-- Repository References --> | ||
<ItemGroup> | ||
<RepositoryReference Include="arcade" /> | ||
<RepositoryReference Include="symreader" /> | ||
<RepositoryReference Include="linker" /> | ||
<RepositoryReference Include="source-build" /> | ||
<RepositoryReference Include="source-build-externals" /> | ||
<RepositoryReference Include="roslyn" /> | ||
<RepositoryReference Include="runtime-portable" /> | ||
</ItemGroup> | ||
|
||
<Import Project="runtime.common.targets" /> | ||
<UsingTask AssemblyFile="$(XPlatSourceBuildTasksAssembly)" TaskName="AddRidToRuntimeJson" /> | ||
<UsingTask AssemblyFile="$(XPlatSourceBuildTasksAssembly)" TaskName="PublishCoreSetupBinaries" /> | ||
|
||
<Target Name="SetOutputList" AfterTargets="Package" BeforeTargets="GatherBuiltPackages"> | ||
<ItemGroup> | ||
<PackagesOutputList Include="$(ShippingPackagesOutput)" /> | ||
<PackagesOutputList Include="$(NonShippingPackagesOutput)" /> | ||
</ItemGroup> | ||
</Target> | ||
|
||
<Target Name="UpdateRuntimeGraph" | ||
BeforeTargets="Build" | ||
Condition="'$(_IsBootstrapping)' == 'true'"> | ||
<PropertyGroup> | ||
<RuntimeJsonFile>$(ProjectDirectory)pkg/Microsoft.NETCore.Platforms/runtime.json</RuntimeJsonFile> | ||
</PropertyGroup> | ||
|
||
<Message Importance="High" Text="Adding rid, $(TargetRid), to $(RuntimeJsonFile)" /> | ||
<AddRidToRuntimeJson RuntimeJson="$(RuntimeJsonFile)" | ||
Rid="$(TargetRid)-$(Platform)" /> | ||
</Target> | ||
|
||
<Target Name="CopyBinariesToBinFolder" | ||
AfterTargets="ExtractIntermediatePackages" | ||
Inputs="$(MSBuildProjectFullPath)" | ||
Outputs="$(RepoCompletedSemaphorePath)CopyBinariesToBinFolder.complete"> | ||
<ItemGroup> | ||
<_builtRuntimePackages Include="$(SourceBuiltAssetsDir)*.symbols.nupkg" /> | ||
<_builtRuntimePackages> | ||
<TransformedFileName>$([System.String]::Copy('%(FileName)').Replace('symbols', 'nupkg'))</TransformedFileName> | ||
</_builtRuntimePackages> | ||
<BinariesToCopy Include="$(SourceBuiltAssetsDir)*.*" Exclude="$(SourceBuiltAssetsDir)*.nupkg;$(SourceBuiltAssetsDir)*.requires_nupkg_signing" /> | ||
<BinariesToCopy Include="@(_builtRuntimePackages->'$(SourceBuiltPackagesPath)%(TransformedFileName)')" /> | ||
</ItemGroup> | ||
|
||
<Copy SourceFiles="@(BinariesToCopy)" | ||
DestinationFolder="$(OutputPath)runtime" | ||
Condition="'@(BinariesToCopy)'!=''" /> | ||
|
||
<WriteLinesToFile File="$(RepoCompletedSemaphorePath)CopyBinariesToBinFolder.complete" Overwrite="true" /> | ||
</Target> | ||
|
||
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters