You've already forked linux-packaging-mono
Imported Upstream version 6.12.0.98
Former-commit-id: 066e1c5ebb0cc420bd293e60a01325420779fdd1
This commit is contained in:
parent
15e620f34f
commit
7d4706c3d7
205
external/llvm-project/nuget/Directory.Build.props
vendored
Normal file
205
external/llvm-project/nuget/Directory.Build.props
vendored
Normal file
@@ -0,0 +1,205 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
|
||||
<!-- Packaging projects (.pkgproj) are non-SDK-style, so they need to directly import Directory.Build.props -->
|
||||
<Import Project="../Directory.Build.props" />
|
||||
<Import Project="packaging.props" />
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- defined in Packaging.targets, but we need this before targets are imported -->
|
||||
<PackagePlatform>AnyCPU</PackagePlatform>
|
||||
|
||||
<!-- Distro rid is passed as runtimeos-arch-->
|
||||
<_parseDistroRid>$(__DistroRid)</_parseDistroRid>
|
||||
<_parseDistroRid Condition="'$(_parseDistroRid)' == '' and '$(__BuildOS)' == 'OSX'">osx.10.12-x64</_parseDistroRid>
|
||||
<_distroRidIndex>$(_parseDistroRid.IndexOfAny("-"))</_distroRidIndex>
|
||||
<_archRidIndex>$([MSBuild]::Add($(_distroRidIndex), 1))</_archRidIndex>
|
||||
<OSRid Condition="'$(OSRid)' == '' and '$(_distroRidIndex)' != '-1'">$(_parseDistroRid.SubString(0, $(_distroRidIndex)))</OSRid>
|
||||
<OSRid Condition="'$(OSRid)' == ''">linux</OSRid>
|
||||
<OSRid Condition="'$(OSRid)' == 'linux' AND '$(OS)' == 'Windows_NT'">win10</OSRid>
|
||||
|
||||
<ArchGroup Condition="'$(ArchGroup)' == '' and '$(_archRidIndex)' != '0'">$(_parseDistroRid.SubString($(_archRidIndex)))</ArchGroup>
|
||||
<ArchGroup Condition="'$(ArchGroup)' == '' and '$(Platform)' != ''">$(Platform)</ArchGroup>
|
||||
<ArchGroup Condition="'$(ArchGroup)' == ''">$(BuildArch)</ArchGroup>
|
||||
|
||||
<RuntimeOS Condition="'$(RuntimeOS)' == ''">$(OSRid)</RuntimeOS>
|
||||
|
||||
<SupportedPackageOSGroups Condition="'$(SupportedPackageOSGroups)' == ''">Windows_NT;OSX;Android;Linux;FreeBSD</SupportedPackageOSGroups>
|
||||
<SupportedPackageOSGroups>;$(SupportedPackageOSGroups);</SupportedPackageOSGroups>
|
||||
|
||||
<!-- Identify OS family based upon the RuntimeOS, which could be distro specific (e.g. osx.10.12) or
|
||||
portable (e.g. osx).
|
||||
-->
|
||||
<_runtimeOSVersionIndex>$(RuntimeOS.IndexOfAny(".-0123456789"))</_runtimeOSVersionIndex>
|
||||
<_runtimeOSFamily Condition="'$(_runtimeOSVersionIndex)' != '-1'">$(RuntimeOS.SubString(0, $(_runtimeOSVersionIndex)))</_runtimeOSFamily>
|
||||
<_runtimeOSFamily Condition="'$(_runtimeOSVersionIndex)' == '-1'">$(RuntimeOS)</_runtimeOSFamily>
|
||||
<_isSupportedOSGroup>true</_isSupportedOSGroup>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- derive an OS Group based on the OS Family -->
|
||||
<PropertyGroup>
|
||||
<_derivedPackageTargetOSGroup Condition="'$(_derivedPackageTargetOSGroup)' == '' and '$(_runtimeOSFamily)' == 'osx'">OSX</_derivedPackageTargetOSGroup>
|
||||
<_derivedPackageTargetOSGroup Condition="'$(_derivedPackageTargetOSGroup)' == '' and '$(_runtimeOSFamily)' == 'android'">Android</_derivedPackageTargetOSGroup>
|
||||
<_derivedPackageTargetOSGroup Condition="'$(_derivedPackageTargetOSGroup)' == '' and '$(_runtimeOSFamily)' == 'win'">Windows_NT</_derivedPackageTargetOSGroup>
|
||||
<_derivedPackageTargetOSGroup Condition="'$(_derivedPackageTargetOSGroup)' == '' and '$(__BuildOS)' != ''">$(__BuildOS)</_derivedPackageTargetOSGroup>
|
||||
<_derivedPackageTargetOSGroup Condition="'$(_derivedPackageTargetOSGroup)' == ''">Linux</_derivedPackageTargetOSGroup>
|
||||
|
||||
<_isSupportedOSGroup Condition="!$(SupportedPackageOSGroups.Contains(';$(_derivedPackageTargetOSGroup);'))">false</_isSupportedOSGroup>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- Android will use Linux package definitions -->
|
||||
<_packageTargetOSGroup>$(_derivedPackageTargetOSGroup)</_packageTargetOSGroup>
|
||||
<_packageTargetOSGroup Condition="'$(_derivedPackageTargetOSGroup)' == 'Android'">Linux</_packageTargetOSGroup>
|
||||
<_packageTargetOSGroup Condition="'$(Platform)' == 'x64-mxe'">Windows_NT</_packageTargetOSGroup>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<SkipPackageFileCheck>true</SkipPackageFileCheck>
|
||||
<OutputPath>$(PackageOutputPath)</OutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(IsLineupPackage)' == 'true'">
|
||||
<SkipValidatePackage>true</SkipValidatePackage>
|
||||
</PropertyGroup>
|
||||
|
||||
<Choose>
|
||||
<When Condition="'$(PackageRID)' != ''" />
|
||||
<When Condition="'$(OutputRID)' != ''">
|
||||
<PropertyGroup>
|
||||
<!-- If OutputRID is explicitly set use that as the PackageRID -->
|
||||
<PackageRID>$(OutputRID)</PackageRID>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(_runtimeOSFamily)' == 'win'">
|
||||
<PropertyGroup>
|
||||
<!-- Note: Windows builds are always portable (-PortableBuild=false is ignored) -->
|
||||
<PackageRID>win-$(ArchGroup)</PackageRID>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(_runtimeOSFamily)' == 'osx'">
|
||||
<PropertyGroup>
|
||||
<PackageRID>osx.10.12-$(ArchGroup)</PackageRID>
|
||||
<!-- Set the platform part of the RID if we are doing a portable build -->
|
||||
<PackageRID Condition="'$(PortableBuild)' == 'true'">osx-$(ArchGroup)</PackageRID>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(_runtimeOSFamily)' == 'freebsd'">
|
||||
<PropertyGroup>
|
||||
<PackageRID>freebsd.11-$(ArchGroup)</PackageRID>
|
||||
<!-- Set the platform part of the RID if we are doing a portable build -->
|
||||
<PackageRID Condition="'$(PortableBuild)' == 'true'">freebsd-$(ArchGroup)</PackageRID>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(_runtimeOSFamily)' == 'android'">
|
||||
<PropertyGroup>
|
||||
<PackageRID>android.21-$(ArchGroup)</PackageRID>
|
||||
<!-- Set the platform part of the RID if we are doing a portable build -->
|
||||
<PackageRID Condition="'$(PortableBuild)' == '1'">android-$(ArchGroup)</PackageRID>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(_runtimeOSFamily)' == 'rhel'">
|
||||
<PropertyGroup>
|
||||
<PackageRID>$(OSRid)-$(ArchGroup)</PackageRID>
|
||||
<!-- Set the platform part of the RID if we are doing a portable build -->
|
||||
<PackageRID Condition="'$(PortableBuild)' == 'true'">linux-$(ArchGroup)</PackageRID>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<PackageRID>$(RuntimeOS)-$(ArchGroup)</PackageRID>
|
||||
<!-- Set the platform part of the RID if we are doing a portable build -->
|
||||
<PackageRID Condition="'$(PortableBuild)' == 'true'">linux-$(ArchGroup)</PackageRID>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
<!-- Determine per-platform native binary extensions. -->
|
||||
<Choose>
|
||||
<When Condition="'$(_runtimeOSFamily)' == 'win'" />
|
||||
<When Condition="'$(_runtimeOSFamily)' == 'osx'">
|
||||
<PropertyGroup>
|
||||
<LibraryFileExtension>.dylib</LibraryFileExtension>
|
||||
<SymbolFileExtension>.dwarf</SymbolFileExtension>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(_runtimeOSFamily)' == 'android'">
|
||||
<PropertyGroup>
|
||||
<LibraryFileExtension>.so</LibraryFileExtension>
|
||||
<!--symbols included in .so, like Linux, but can be generated externally and if so, uses .debug ext-->
|
||||
<SymbolFileExtension>.debug</SymbolFileExtension>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<LibraryFileExtension>.so</LibraryFileExtension>
|
||||
<SymbolFileExtension>.dbg</SymbolFileExtension>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
<ItemGroup Condition="$(SupportedPackageOSGroups.Contains(';Linux;'))">
|
||||
<OfficialBuildRID Include="linux-x64" />
|
||||
<OfficialBuildRID Include="linux-musl-x64" />
|
||||
<OfficialBuildRID Include="rhel.6-x64" />
|
||||
<OfficialBuildRID Include="linux-arm">
|
||||
<Platform>arm</Platform>
|
||||
</OfficialBuildRID>
|
||||
<OfficialBuildRID Include="linux-arm64">
|
||||
<Platform>arm64</Platform>
|
||||
</OfficialBuildRID>
|
||||
<OfficialBuildRID Include="linux-musl-arm64">
|
||||
<Platform>arm64</Platform>
|
||||
</OfficialBuildRID>
|
||||
<OfficialBuildRID Include="tizen.4.0.0-armel">
|
||||
<Platform>armel</Platform>
|
||||
</OfficialBuildRID>
|
||||
<OfficialBuildRID Include="tizen.5.0.0-armel">
|
||||
<Platform>armel</Platform>
|
||||
</OfficialBuildRID>
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="$(SupportedPackageOSGroups.Contains(';OSX;'))">
|
||||
<OfficialBuildRID Include="osx-x64" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="$(SupportedPackageOSGroups.Contains(';FreeBSD;'))">
|
||||
<OfficialBuildRID Include="freebsd-x64" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="$(SupportedPackageOSGroups.Contains(';Windows_NT;'))">
|
||||
<OfficialBuildRID Include="win-x86">
|
||||
<Platform>x86</Platform>
|
||||
</OfficialBuildRID>
|
||||
<OfficialBuildRID Include="win-x64" />
|
||||
<OfficialBuildRID Include="win-arm">
|
||||
<Platform>arm</Platform>
|
||||
</OfficialBuildRID>
|
||||
<OfficialBuildRID Include="win-arm64">
|
||||
<Platform>arm64</Platform>
|
||||
</OfficialBuildRID>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<!-- Ensure we have a RID-specific package for the current build, even if it isn't in our official set, but
|
||||
don't build the RID-specific package if we're in an unsupported os family -->
|
||||
<BuildRID Include="@(OfficialBuildRID)" Exclude="$(PackageRID)"/>
|
||||
<BuildRID Include="$(PackageRID)"
|
||||
Condition="'$(_isSupportedOSGroup)' == 'true'">
|
||||
<Platform Condition="'$(ArchGroup)' == 'x64'">amd64</Platform>
|
||||
<Platform Condition="'$(ArchGroup)' != 'x64'">$(ArchGroup)</Platform>
|
||||
</BuildRID>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<_project Include="@(BuildRID)">
|
||||
<Platform Condition="'%(Platform)' == ''">amd64</Platform>
|
||||
<PackageTargetRuntime>%(Identity)</PackageTargetRuntime>
|
||||
<AdditionalProperties>PackageTargetRuntime=%(Identity);Platform=%(Platform)</AdditionalProperties>
|
||||
</_project>
|
||||
|
||||
<_buildRidProjects Include="@(_project->'$(MSBuildProjectName).pkgproj')" />
|
||||
<!-- Only include rid projects for a builds file, not for a lineup package -->
|
||||
<Project Condition="'$(IsLineupPackage)' != 'true'" Include="@(_buildRidProjects)" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(IsLineupPackage)' == 'true'">
|
||||
<!-- Include project references for a lineup package to generate the runtime.json file -->
|
||||
<ProjectReference Include="@(_buildRidProjects)" />
|
||||
</ItemGroup>
|
||||
</Project>
|
71
external/llvm-project/nuget/Directory.Build.targets
vendored
Normal file
71
external/llvm-project/nuget/Directory.Build.targets
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
|
||||
<Import Project="../Directory.Build.targets" />
|
||||
|
||||
<Import Project="$(NuGetPackageRoot)\microsoft.dotnet.build.tasks.packaging\$(MicrosoftDotNetBuildTasksPackagingVersion)\build\Microsoft.DotNet.Build.Tasks.Packaging.targets" />
|
||||
|
||||
<!--
|
||||
Finds symbol files and injects them into the package build.
|
||||
-->
|
||||
<Target Name="GetSymbolPackageFiles" BeforeTargets="GetPackageFiles">
|
||||
<ItemGroup Condition="'$(SymbolFileExtension)' != ''">
|
||||
<AdditionalLibPackageExcludes Include="%2A%2A\%2A$(SymbolFileExtension)"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<NativeWithSymbolFile Include="@(NativeBinary)">
|
||||
<TargetPath>runtimes/$(PackageTargetRuntime)/native</TargetPath>
|
||||
</NativeWithSymbolFile>
|
||||
<!-- Using lib/netstandard1.0 here. There is no TFM for this since it is a runtime itself. -->
|
||||
<NativeWithSymbolFile Include="@(ArchitectureSpecificLibFile)">
|
||||
<TargetPath>runtimes/$(PackageTargetRuntime)/lib/netstandard1.0</TargetPath>
|
||||
</NativeWithSymbolFile>
|
||||
<NativeWithSymbolFile Include="@(ArchitectureSpecificToolFile)">
|
||||
<TargetPath>tools</TargetPath>
|
||||
</NativeWithSymbolFile>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<File Include="@(NativeWithSymbolFile)" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!-- On Windows, trim ".dll" before adding ".pdb". -->
|
||||
<WindowsNativeFile Include="@(NativeWithSymbolFile)"
|
||||
Condition="'%(NativeWithSymbolFile.Extension)'=='.dll' OR '%(NativeWithSymbolFile.Extension)'=='.exe'" />
|
||||
<WindowsSymbolFile Include="@(WindowsNativeFile -> '%(RootDir)%(Directory)PDB\%(Filename).pdb')" />
|
||||
|
||||
<!--
|
||||
Search for all xplat symbol file extensions on every xplat native binary. Some binaries have
|
||||
no ".so" or ".dylib" extension, so we can't tell which convention its symbol files would
|
||||
use. On xplat, the symbol extension is simply appended.
|
||||
-->
|
||||
<NonWindowsNativeFile Include="@(NativeWithSymbolFile)"
|
||||
Exclude="@(WindowsNativeFile)" />
|
||||
|
||||
<NonWindowsSymbolFile Include="@(NonWindowsNativeFile -> '%(Identity)$(SymbolFileExtension)')" />
|
||||
|
||||
<ExistingWindowsSymbolFile Include="@(WindowsSymbolFile)" Condition="Exists('%(Identity)')" />
|
||||
<ExistingNonWindowsSymbolFile Include="@(NonWindowsSymbolFile)" Condition="Exists('%(Identity)') AND '$(SkipPackagingXplatSymbols)'!='true'" />
|
||||
|
||||
<!-- Include all found symbols. -->
|
||||
<File Include="@(ExistingWindowsSymbolFile);@(ExistingNonWindowsSymbolFile)">
|
||||
<IsSymbolFile>true</IsSymbolFile>
|
||||
</File>
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<NeedsPlaceholderPdb Condition="'@(ExistingNonWindowsSymbolFile)'!='' AND '@(ExistingWindowsSymbolFile)'==''">true</NeedsPlaceholderPdb>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<File Include="$(MSBuildThisFileDirectory)\_.pdb"
|
||||
Condition="'$(NeedsPlaceholderPdb)'=='true' AND '$(PackageTargetRuntime)'!=''">
|
||||
<TargetPath>runtimes/$(PackageTargetRuntime)/native</TargetPath>
|
||||
<IsSymbolFile>true</IsSymbolFile>
|
||||
</File>
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
</Project>
|
4
external/llvm-project/nuget/Microsoft.NETCore.Runtime.Mono.LLVM.Sdk/Directory.Build.props
vendored
Normal file
4
external/llvm-project/nuget/Microsoft.NETCore.Runtime.Mono.LLVM.Sdk/Directory.Build.props
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<Import Project="../Directory.Build.props" />
|
||||
</Project>
|
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project Sdk="Microsoft.Build.Traversal">
|
||||
<Import Project="$([MSBuild]::GetPathOfFileAbove(builds.targets))" />
|
||||
</Project>
|
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props))" />
|
||||
|
||||
<Import Condition="'$(_packageTargetOSGroup)' != ''" Project="$(MSBuildThisFileDirectory)runtime.$(_packageTargetOSGroup).$(MSBuildProjectName).props" />
|
||||
|
||||
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.targets))" />
|
||||
</Project>
|
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<ItemGroup>
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\bin\llvm-config" TargetPath="tools\$(PackageTargetRuntime)\bin\" />
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\bin\llvm-dis" TargetPath="tools\$(PackageTargetRuntime)\bin\" />
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\bin\llvm-tblgen" TargetPath="tools\$(PackageTargetRuntime)\bin\" />
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\lib\**" Exclude="libLTO*" TargetPath="tools\$(PackageTargetRuntime)\lib\%(RecursiveDir)%(Filename)%(Extension)" />
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\include\**" Exclude="libLTO*" TargetPath="tools\$(PackageTargetRuntime)\include\%(RecursiveDir)%(Filename)%(Extension)" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<ItemGroup>
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\bin\llvm-config" TargetPath="tools\$(PackageTargetRuntime)\bin\" />
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\bin\llvm-dis" TargetPath="tools\$(PackageTargetRuntime)\bin\" />
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\bin\llvm-tblgen" TargetPath="tools\$(PackageTargetRuntime)\bin\" />
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\lib\**" Exclude="libLTO*" TargetPath="tools\$(PackageTargetRuntime)\lib\%(RecursiveDir)%(Filename)%(Extension)" />
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\include\**" Exclude="libLTO*" TargetPath="tools\$(PackageTargetRuntime)\include\%(RecursiveDir)%(Filename)%(Extension)" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<ItemGroup>
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\bin\llvm-config.exe" TargetPath="tools\$(PackageTargetRuntime)\bin\" />
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\bin\llvm-dis.exe" TargetPath="tools\$(PackageTargetRuntime)\bin\" />
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\bin\llvm-tblgen.exe" TargetPath="tools\$(PackageTargetRuntime)\bin\" />
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\lib\**" Exclude="libLTO*" TargetPath="tools\$(PackageTargetRuntime)\lib\%(RecursiveDir)%(Filename)%(Extension)" />
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\include\**" Exclude="libLTO*" TargetPath="tools\$(PackageTargetRuntime)\include\%(RecursiveDir)%(Filename)%(Extension)" />
|
||||
</ItemGroup>
|
||||
</Project>
|
4
external/llvm-project/nuget/Microsoft.NETCore.Runtime.Mono.LLVM.Tools/Directory.Build.props
vendored
Normal file
4
external/llvm-project/nuget/Microsoft.NETCore.Runtime.Mono.LLVM.Tools/Directory.Build.props
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<Import Project="../Directory.Build.props" />
|
||||
</Project>
|
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project Sdk="Microsoft.Build.Traversal">
|
||||
<Import Project="$([MSBuild]::GetPathOfFileAbove(builds.targets))" />
|
||||
</Project>
|
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props))" />
|
||||
|
||||
<Import Condition="'$(_packageTargetOSGroup)' != ''" Project="$(MSBuildThisFileDirectory)runtime.$(_packageTargetOSGroup).$(MSBuildProjectName).props" />
|
||||
|
||||
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.targets))" />
|
||||
</Project>
|
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<ItemGroup>
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\bin\llc" TargetPath="tools\$(PackageTargetRuntime)\bin\" />
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\bin\llvm-as" TargetPath="tools\$(PackageTargetRuntime)\bin\" />
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\bin\opt" TargetPath="tools\$(PackageTargetRuntime)\bin\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<ItemGroup>
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\bin\llc" TargetPath="tools\$(PackageTargetRuntime)\bin\" />
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\bin\llvm-as" TargetPath="tools\$(PackageTargetRuntime)\bin\" />
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\bin\opt" TargetPath="tools\$(PackageTargetRuntime)\bin\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<ItemGroup>
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\bin\llc.exe" TargetPath="tools\$(PackageTargetRuntime)\bin\" />
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\bin\llvm-as.exe" TargetPath="tools\$(PackageTargetRuntime)\bin\" />
|
||||
<File Include="..\..\artifacts\tmp\InstallRoot\bin\opt.exe" TargetPath="tools\$(PackageTargetRuntime)\bin\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
31
external/llvm-project/nuget/builds.targets
vendored
Normal file
31
external/llvm-project/nuget/builds.targets
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<PropertyGroup Condition="'$(BuildIdentityPackage)' == ''">
|
||||
<BuildIdentityPackage>true</BuildIdentityPackage>
|
||||
|
||||
<!-- Used to determine if we should build some packages only once across multiple official build legs.
|
||||
For offline builds we still set OfficialBuildId but we need to build all the packages for a single
|
||||
leg only, so we also take DotNetBuildFromSource into account. -->
|
||||
<BuildingAnOfficialBuildLeg Condition="'$(OfficialBuildId)' != '' AND '$(DotNetBuildFromSource)' != 'true'">true</BuildingAnOfficialBuildLeg>
|
||||
|
||||
<!-- During an official build, only build identity packages on windows x64 legs -->
|
||||
<BuildIdentityPackage Condition="'$(BuildingAnOfficialBuildLeg)' == 'true' AND ('$(OS)' != 'Windows_NT' OR '$(BuildArch)' != 'x64')">false</BuildIdentityPackage>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="FilterProjects" BeforeTargets="Build">
|
||||
<Error Condition="'$(PackageRID)' == ''" Text="'PackageRID' property must be specified."/>
|
||||
|
||||
<!-- Only build packages for current RID or non-RID-specific -->
|
||||
<ItemGroup>
|
||||
<_projectsToBuild Include="@(Project)" Condition="'%(Project.PackageTargetRuntime)' == '$(PackageRID)'" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(BuildIdentityPackage)' == 'true'">
|
||||
<_projectsToBuild Include="@(Project)" Condition="'%(Project.PackageTargetRuntime)' == ''" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="@(_projectsToBuild)" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
</Project>
|
22
external/llvm-project/nuget/descriptions.json
vendored
Normal file
22
external/llvm-project/nuget/descriptions.json
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
[
|
||||
{
|
||||
"Name": "RuntimePackage",
|
||||
"Description": "Internal implementation package not meant for direct consumption. Please do not reference directly.",
|
||||
"CommonTypes": [ ]
|
||||
},
|
||||
{
|
||||
"Name": "NuGet3MinVersion",
|
||||
"Description": "When using NuGet 3.x this package requires at least version {0}.",
|
||||
"CommonTypes": [ ]
|
||||
},
|
||||
{
|
||||
"Name": "Microsoft.NETCore.Runtime.Mono.LLVM.Sdk",
|
||||
"Description": "The .NET Core fork of the LLVM project, used to compile the Mono .NET Core runtime in LLVM JIT mode. Internal implementation package not meant for direct consumption. Please do not reference directly.",
|
||||
"CommonTypes": [ ]
|
||||
},
|
||||
{
|
||||
"Name": "Microsoft.NETCore.Runtime.Mono.LLVM.Tools",
|
||||
"Description": "The llc and opt tools, used by the Mono .NET Core runtime in LLVM AOT mode.",
|
||||
"CommonTypes": [ ]
|
||||
}
|
||||
]
|
2
external/llvm-project/nuget/packageIndex.json
vendored
Normal file
2
external/llvm-project/nuget/packageIndex.json
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
38
external/llvm-project/nuget/packages.builds
vendored
Normal file
38
external/llvm-project/nuget/packages.builds
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
<Project Sdk="Microsoft.Build.Traversal">
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="Microsoft.NETCore.Runtime.Mono.LLVM.Sdk\Microsoft.NETCore.Runtime.Mono.LLVM.Sdk.builds" />
|
||||
<ProjectReference Include="Microsoft.NETCore.Runtime.Mono.LLVM.Tools\Microsoft.NETCore.Runtime.Mono.LLVM.Tools.builds" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Generate a version.txt file we include in our packages
|
||||
The InitializeSourceControlInformationFromSourceControlManager is part of Microsoft.Build.Tasks.Git
|
||||
and is responsible for setting SourceRevisionId -->
|
||||
<!-- TODO: doesn't work for some reason
|
||||
<Target Name="GenerateVersionInfoFileForPackages"
|
||||
BeforeTargets="Build"
|
||||
DependsOnTargets="InitializeSourceControlInformationFromSourceControlManager">
|
||||
|
||||
<Error Condition="'$(SourceRevisionId)' == ''" Text="SourceRevisionId is not set, which means the SourceLink targets are not included in the build. Those are needed to produce a correct sha for our build outputs." />
|
||||
|
||||
<MakeDir Directories="$([System.IO.Path]::GetDirectoryName($(VersionTxtFile)))" />
|
||||
<WriteLinesToFile
|
||||
File="$(VersionTxtFile)"
|
||||
Lines="$(SourceRevisionId)"
|
||||
Overwrite="true" />
|
||||
</Target>
|
||||
-->
|
||||
|
||||
<!-- Update the project references with additional properties calculated during the execution phase.
|
||||
_InitializeAssemblyVersion is provided by Arcade. It sets the AssemblyVersion and FileVersion properties.
|
||||
We depend on this private Arcade target instead of the SDK-defined GetAssemblyVersion since the packaging
|
||||
build does not use the .NET SDK -->
|
||||
<Target Name="UpdateAdditionalProperties"
|
||||
BeforeTargets="Build"
|
||||
DependsOnTargets="_InitializeAssemblyVersion">
|
||||
<ItemGroup>
|
||||
<!-- Pass the FileVersion calculated by _InitializeAssemblyVersion to referenced projects -->
|
||||
<ProjectReference Update="@(ProjectReference)"
|
||||
AdditionalProperties="%(AdditionalProperties);FileVersion=$(FileVersion)" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
</Project>
|
39
external/llvm-project/nuget/packaging.props
vendored
Normal file
39
external/llvm-project/nuget/packaging.props
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
|
||||
<PropertyGroup>
|
||||
<PackageDescriptionFile>$(MSBuildThisFileDirectory)/descriptions.json</PackageDescriptionFile>
|
||||
<PackageLicenseFile>$(RepoRoot)/llvm/LICENSE.TXT</PackageLicenseFile>
|
||||
<PackageThirdPartyNoticesFile>$(RepoRoot)/THIRD-PARTY-NOTICES.TXT</PackageThirdPartyNoticesFile>
|
||||
|
||||
<ReleaseNotes>https://go.microsoft.com/fwlink/?LinkID=799421</ReleaseNotes>
|
||||
|
||||
<ProjectUrl>https://dot.net</ProjectUrl>
|
||||
<LicenseUrl>https://github.com/dotnet/llvm-project/blob/master/llvm/LICENSE.TXT</LicenseUrl>
|
||||
|
||||
<PackageIndexFile>$(MSBuildThisFileDirectory)/packageIndex.json</PackageIndexFile>
|
||||
|
||||
<!-- mono doesn't currently use the index so don't force it to be in sync -->
|
||||
<SkipIndexCheck>true</SkipIndexCheck>
|
||||
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition="'$(MSBuildProjectExtension)' == '.pkgproj'">
|
||||
<!-- Add required legal files to packages -->
|
||||
<File Condition="Exists('$(PackageLicenseFile)')"
|
||||
Include="$(PackageLicenseFile)" >
|
||||
<SkipPackageFileCheck>true</SkipPackageFileCheck>
|
||||
</File>
|
||||
<File Condition="Exists('$(PackageThirdPartyNoticesFile)')"
|
||||
Include="$(PackageThirdPartyNoticesFile)" >
|
||||
<SkipPackageFileCheck>true</SkipPackageFileCheck>
|
||||
</File>
|
||||
<PackageIndex Include="$(PackageIndexFile)" />
|
||||
|
||||
<!-- Add version file to packages -->
|
||||
<File Include="$(VersionTxtFile)"
|
||||
Condition="Exists('$(VersionTxtFile)')">
|
||||
<SkipPackageFileCheck>true</SkipPackageFileCheck>
|
||||
</File>
|
||||
</ItemGroup>
|
||||
</Project>
|
Reference in New Issue
Block a user