summaryrefslogtreecommitdiff
path: root/src/.nuget
diff options
context:
space:
mode:
authorTanner Gooding <tagoo@outlook.com>2018-07-20 13:33:10 -0700
committerTanner Gooding <tagoo@outlook.com>2018-07-26 14:54:52 -0700
commit3077c95af36a074a8e00d45ebc576fa87520e536 (patch)
treef022f1b1796e353a0d922444c2c49c98eea090ab /src/.nuget
parentccf735e789dff2c3fce183c599c192a79bf64752 (diff)
downloadcoreclr-3077c95af36a074a8e00d45ebc576fa87520e536.tar.gz
coreclr-3077c95af36a074a8e00d45ebc576fa87520e536.tar.bz2
coreclr-3077c95af36a074a8e00d45ebc576fa87520e536.zip
Adding the Microsoft.NET.Sdk.IL pkgproj
Diffstat (limited to 'src/.nuget')
-rw-r--r--src/.nuget/Microsoft.NET.Sdk.IL/Microsoft.NET.Sdk.IL.pkgproj19
-rw-r--r--src/.nuget/Microsoft.NET.Sdk.IL/sdk/Sdk.props21
-rw-r--r--src/.nuget/Microsoft.NET.Sdk.IL/sdk/Sdk.targets22
-rw-r--r--src/.nuget/Microsoft.NET.Sdk.IL/targets/Microsoft.NET.Sdk.IL.targets94
-rw-r--r--src/.nuget/descriptions.json5
-rw-r--r--src/.nuget/packages.builds4
6 files changed, 165 insertions, 0 deletions
diff --git a/src/.nuget/Microsoft.NET.Sdk.IL/Microsoft.NET.Sdk.IL.pkgproj b/src/.nuget/Microsoft.NET.Sdk.IL/Microsoft.NET.Sdk.IL.pkgproj
new file mode 100644
index 0000000000..0a4d82ef78
--- /dev/null
+++ b/src/.nuget/Microsoft.NET.Sdk.IL/Microsoft.NET.Sdk.IL.pkgproj
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+
+ <PropertyGroup>
+ <PackageType>MSBuildSdk</PackageType>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <File Include="sdk/**/*">
+ <TargetPath>sdk</TargetPath>
+ </File>
+ <File Include="targets/**/*">
+ <TargetPath>targets</TargetPath>
+ </File>
+ </ItemGroup>
+
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+</Project>
diff --git a/src/.nuget/Microsoft.NET.Sdk.IL/sdk/Sdk.props b/src/.nuget/Microsoft.NET.Sdk.IL/sdk/Sdk.props
new file mode 100644
index 0000000000..d539c1d84b
--- /dev/null
+++ b/src/.nuget/Microsoft.NET.Sdk.IL/sdk/Sdk.props
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+***********************************************************************************************
+Sdk.props
+
+WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
+ created a backup copy. Incorrect changes to this file will make it
+ impossible to load or build your projects from the command-line or the IDE.
+
+Copyright (c) .NET Foundation. All rights reserved.
+***********************************************************************************************
+-->
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+
+ <PropertyGroup>
+ <MSBuildAllProjects>$(MSBuildThisFileFullPath);$(MSBuildAllProjects)</MSBuildAllProjects>
+ </PropertyGroup>
+
+ <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
+
+</Project>
diff --git a/src/.nuget/Microsoft.NET.Sdk.IL/sdk/Sdk.targets b/src/.nuget/Microsoft.NET.Sdk.IL/sdk/Sdk.targets
new file mode 100644
index 0000000000..7e4b39ebf4
--- /dev/null
+++ b/src/.nuget/Microsoft.NET.Sdk.IL/sdk/Sdk.targets
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+***********************************************************************************************
+Sdk.targets
+
+WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
+ created a backup copy. Incorrect changes to this file will make it
+ impossible to load or build your projects from the command-line or the IDE.
+
+Copyright (c) .NET Foundation. All rights reserved.
+***********************************************************************************************
+-->
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+
+ <PropertyGroup>
+ <MSBuildAllProjects>$(MSBuildThisFileFullPath);$(MSBuildAllProjects)</MSBuildAllProjects>
+ <LanguageTargets Condition="'$(MSBuildProjectExtension)' == '.ilproj'">$(MSBuildThisFileDirectory)..\targets\Microsoft.NET.Sdk.IL.targets</LanguageTargets>
+ </PropertyGroup>
+
+ <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
+
+</Project>
diff --git a/src/.nuget/Microsoft.NET.Sdk.IL/targets/Microsoft.NET.Sdk.IL.targets b/src/.nuget/Microsoft.NET.Sdk.IL/targets/Microsoft.NET.Sdk.IL.targets
new file mode 100644
index 0000000000..33f863414f
--- /dev/null
+++ b/src/.nuget/Microsoft.NET.Sdk.IL/targets/Microsoft.NET.Sdk.IL.targets
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+***********************************************************************************************
+Microsoft.NET.Sdk.IL.targets
+
+WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
+ created a backup copy. Incorrect changes to this file will make it
+ impossible to load or build your projects from the command-line or the IDE.
+
+Copyright (c) .NET Foundation. All rights reserved.
+***********************************************************************************************
+-->
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+
+ <PropertyGroup>
+ <MSBuildAllProjects>$(MSBuildThisFileFullPath);$(MSBuildAllProjects)</MSBuildAllProjects>
+ <DefaultLanguageSourceExtension>.il</DefaultLanguageSourceExtension>
+ <Language>IL</Language>
+ <TargetRuntime>Managed</TargetRuntime>
+ </PropertyGroup>
+
+ <PropertyGroup>
+ <_OSPlatform Condition="$([MSBuild]::IsOSPlatform('windows'))">win</_OSPlatform>
+ <_OSPlatform Condition="$([MSBuild]::IsOSPlatform('linux'))">linux</_OSPlatform>
+ <_OSPlatform Condition="$([MSBuild]::IsOSPlatform('osx'))">osx</_OSPlatform>
+ <_OSArchitecture>$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)</_OSArchitecture>
+
+ <MicrosoftNetCoreIlasmPackageRuntimeId Condition="'$(MicrosoftNetCoreIlasmPackageRuntimeId)' == ''">$(_OSPlatform)-$(_OSArchitecture.ToLower())</MicrosoftNetCoreIlasmPackageRuntimeId>
+ <MicrosoftNetCoreIlasmPackageVersion Condition="'$(MicrosoftNetCoreIlasmPackageVersion)' == ''">3.0.0</MicrosoftNetCoreIlasmPackageVersion>
+ <MicrosoftNetCoreIlasmPackageName>runtime.$(MicrosoftNetCoreIlasmPackageRuntimeId).microsoft.netcore.ilasm</MicrosoftNetCoreIlasmPackageName>
+ <MicrosoftNetCoreRuntimeCoreClrPackageName>runtime.$(MicrosoftNetCoreIlasmPackageRuntimeId).microsoft.netcore.runtime.coreclr</MicrosoftNetCoreRuntimeCoreClrPackageName>
+
+ <ToolsDir Condition="'$(ToolsDir)' == ''">$([System.IO.Path]::Combine($([System.IO.Path]::GetTempPath()), $([System.IO.Path]::GetRandomFileName())))</ToolsDir>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <PackageReference Include="$(MicrosoftNetCoreIlasmPackageName)" Version="$(MicrosoftNetCoreIlasmPackageVersion)" PrivateAssets="all" IsImplicitlyDefined="true" />
+ <PackageReference Include="$(MicrosoftNetCoreRuntimeCoreClrPackageName)" Version="$(MicrosoftNetCoreIlasmPackageVersion)" PrivateAssets="all" IsImplicitlyDefined="true" />
+ </ItemGroup>
+
+ <PropertyGroup>
+ <CreateManifestResourceNamesDependsOn></CreateManifestResourceNamesDependsOn>
+ </PropertyGroup>
+
+ <Target Name="CreateManifestResourceNames"
+ Condition="'@(EmbeddedResource)' != ''"
+ DependsOnTargets="$(CreateManifestResourceNamesDependsOn)">
+ <!-- Required by Microsoft.Common.targets -->
+ </Target>
+
+ <Target Name="CoreCompile"
+ Inputs="$(MSBuildAllProjects);
+ @(Compile)"
+ Outputs="@(IntermediateAssembly)"
+ Returns=""
+ DependsOnTargets="$(CoreCompileDependsOn)">
+ <ItemGroup>
+ <_IlasmSourceFiles Include="$(NuGetPackageRoot)\$(MicrosoftNetCoreIlasmPackageName)\$(MicrosoftNetCoreIlasmPackageVersion)\runtimes\$(MicrosoftNetCoreIlasmPackageRuntimeId)\native\**\*" />
+ <_IlasmSourceFiles Include="$(NuGetPackageRoot)\$(MicrosoftNetCoreRuntimeCoreClrPackageName)\$(MicrosoftNetCoreIlasmPackageVersion)\runtimes\$(MicrosoftNetCoreIlasmPackageRuntimeId)\native\**\*" />
+ </ItemGroup>
+
+ <PropertyGroup>
+ <_IlasmDir>$(ToolsDir)\ilasm</_IlasmDir>
+
+ <_OutputTypeArgument Condition="'$(OutputType)' == 'Library'">-DLL</_OutputTypeArgument>
+ <_OutputTypeArgument Condition="'$(OutputType)' == 'Exe'">-EXE</_OutputTypeArgument>
+
+ <_KeyFileArgument Condition="'$(KeyOriginatorFile)' != ''">-KEY=$(KeyOriginatorFile)</_KeyFileArgument>
+
+ <_IlasmSwitches>-QUIET -NOLOGO</_IlasmSwitches>
+ <_IlasmSwitches Condition="'$(FoldIdenticalMethods)' == 'True'">$(_IlasmSwitches) -FOLD</_IlasmSwitches>
+ <_IlasmSwitches Condition="'$(SizeOfStackReserve)' != ''">$(_IlasmSwitches) -STACK=$(SizeOfStackReserve)</_IlasmSwitches>
+ <_IlasmSwitches Condition="'$(DebugType)' == 'Full'">$(_IlasmSwitches) -DEBUG</_IlasmSwitches>
+ <_IlasmSwitches Condition="'$(DebugType)' == 'Impl'">$(_IlasmSwitches) -DEBUG=IMPL</_IlasmSwitches>
+ <_IlasmSwitches Condition="'$(DebugType)' == 'PdbOnly'">$(_IlasmSwitches) -DEBUG=OPT</_IlasmSwitches>
+ <_IlasmSwitches Condition="'$(Optimize)' == 'True'">$(_IlasmSwitches) -OPTIMIZE</_IlasmSwitches>
+ </PropertyGroup>
+
+ <!-- Having to copy these binaries is really inefficient. https://github.com/dotnet/coreclr/issues/18892 tracks making the ilasm tool self-contained -->
+ <MakeDir Directories="$(_IlasmDir)" />
+ <Copy DestinationFolder="$(_IlasmDir)" SourceFiles="@(_IlasmSourceFiles)" />
+
+ <Exec Command="$(_IlasmDir)\ilasm $(_IlasmSwitches) $(_OutputTypeArgument) $(IlasmFlags) -OUTPUT=@(IntermediateAssembly) $(_KeyFileArgument) @(Compile, ' ')">
+ <Output TaskParameter="ExitCode" PropertyName="_ILAsmExitCode" />
+ </Exec>
+
+ <Error Text="ILAsm failed" Condition="'$(_ILAsmExitCode)' != '0'" />
+
+ <CallTarget Targets="$(TargetsTriggeredByCompilation)" Condition="'$(TargetsTriggeredByCompilation)' != ''"/>
+ </Target>
+
+ <Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" />
+
+</Project>
diff --git a/src/.nuget/descriptions.json b/src/.nuget/descriptions.json
index a9038c0936..cde4d35416 100644
--- a/src/.nuget/descriptions.json
+++ b/src/.nuget/descriptions.json
@@ -40,6 +40,11 @@
"CommonTypes": [ ]
},
{
+ "Name": "Microsoft.NET.Sdk.IL",
+ "Description": "Provides support for building IL projects.",
+ "CommonTypes": [ ]
+ },
+ {
"Name": "Microsoft.NETCore.Native",
"Description": "Native shims for .NET Core runtime",
"CommonTypes": [ ]
diff --git a/src/.nuget/packages.builds b/src/.nuget/packages.builds
index 0c0f65d3c1..b695cf5776 100644
--- a/src/.nuget/packages.builds
+++ b/src/.nuget/packages.builds
@@ -25,6 +25,10 @@
<Project Include="Microsoft.NETCore.ILDAsm\Microsoft.NETCore.ILDAsm.builds" />
</ItemGroup>
+ <ItemGroup Condition="'$(BuildIdentityPackage)' == 'true'">
+ <Project Include="Microsoft.NET.Sdk.IL\Microsoft.NET.Sdk.IL.pkgproj" />
+ </ItemGroup>
+
<Import Project="$(ToolsDir)versioning.targets" />
<!-- Make sure we create version.txt file since it will be packaged -->
<Target Name="EnsureVersionInfoFileExists" BeforeTargets="Build" DependsOnTargets="CreateVersionInfoFile" />