summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib/CreateRuntimeRootILLinkDescriptorFile.targets
diff options
context:
space:
mode:
authorMaryam Ariyan <maryam.ariyan@microsoft.com>2018-05-08 20:30:54 -0700
committerJan Kotas <jkotas@microsoft.com>2018-05-08 20:30:54 -0700
commit85374ceaed177f71472cc4c23c69daf7402e5048 (patch)
treec8cf93827b59f7121a3a702521862917217ab3cf /src/System.Private.CoreLib/CreateRuntimeRootILLinkDescriptorFile.targets
parentbaf64be6d069c842c0f4df3cae376c5a14ec1ab0 (diff)
downloadcoreclr-85374ceaed177f71472cc4c23c69daf7402e5048.tar.gz
coreclr-85374ceaed177f71472cc4c23c69daf7402e5048.tar.bz2
coreclr-85374ceaed177f71472cc4c23c69daf7402e5048.zip
Rename mscorlib to System.Private.Corelib (#17926)
* diff from just renaming folder mscorlib to System.Private.CoreLib * Updating build.proj to reflect name change Fixes: #17905
Diffstat (limited to 'src/System.Private.CoreLib/CreateRuntimeRootILLinkDescriptorFile.targets')
-rw-r--r--src/System.Private.CoreLib/CreateRuntimeRootILLinkDescriptorFile.targets33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/System.Private.CoreLib/CreateRuntimeRootILLinkDescriptorFile.targets b/src/System.Private.CoreLib/CreateRuntimeRootILLinkDescriptorFile.targets
new file mode 100644
index 0000000000..967d71cb8d
--- /dev/null
+++ b/src/System.Private.CoreLib/CreateRuntimeRootILLinkDescriptorFile.targets
@@ -0,0 +1,33 @@
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+
+ <PropertyGroup>
+ <CompileDependsOn>_CreateILLinkRuntimeRootDescriptorFile;$(CompileDependsOn)</CompileDependsOn>
+ </PropertyGroup>
+
+ <PropertyGroup>
+ <_ILLinkRuntimeRootDescriptorFileName Condition=" '$(_ILLinkRuntimeRootDescriptorFileName)' == '' ">System.Private.CoreLib.xml</_ILLinkRuntimeRootDescriptorFileName>
+ <_ILLinkRuntimeRootDescriptorFilePath Condition=" '$(_ILLinkRuntimeRootDescriptorFilePath)' == '' ">$(IntermediateOutputPath)$(_ILLinkRuntimeRootDescriptorFileName)</_ILLinkRuntimeRootDescriptorFilePath>
+ <_NamespaceFilePath Condition=" '$(_NamespaceFilePath)' == '' ">$(MSBuildThisFileDirectory)..\vm\namespace.h</_NamespaceFilePath>
+ <_MscorlibFilePath Condition=" '$(_MscorlibFilePath)' == '' ">$(MSBuildThisFileDirectory)..\vm\mscorlib.h</_MscorlibFilePath>
+ <_CortypeFilePath Condition=" '$(_CortypeFilePath)' == '' ">$(MSBuildThisFileDirectory)..\inc\cortypeinfo.h</_CortypeFilePath>
+ <_RexcepFilePath Condition=" '$(_RexcepFilePath)' == '' ">$(MSBuildThisFileDirectory)..\vm\rexcep.h</_RexcepFilePath>
+ <_ILLinkTrimXmlFilePath Condition=" '$(_ILLinkTrimXmlFilePath)' == '' ">$(MSBuildThisFileDirectory)ILLinkTrim.xml</_ILLinkTrimXmlFilePath>
+ <_ILLinkTasksToolsDir>$(PackagesDir)/illink.tasks/$(ILLinkTasksPackageVersion)/tools</_ILLinkTasksToolsDir>
+ <_ILLinkTasksDir>$(_ILLinkTasksToolsDir)/net46/</_ILLinkTasksDir>
+ <_ILLinkTasksDir Condition="'$(MSBuildRuntimeType)' == 'Core'">$(_ILLinkTasksToolsDir)/netcoreapp2.0/</_ILLinkTasksDir>
+ </PropertyGroup>
+
+ <!-- Generates the xml root descriptor file for ILLink. The file contains roots required by the runtime. -->
+ <UsingTask TaskName="CreateRuntimeRootILLinkDescriptorFile" AssemblyFile="$(_ILLinkTasksDir)ILLink.Tasks.dll" />
+ <Target Name="_CreateILLinkRuntimeRootDescriptorFile"
+ Inputs="$(_NamespaceFilePath);$(_MscorlibFilePath);$(_CortypeFilePath);$(_RexcepFilePath);$(_ILLinkTrimXmlFilePath)"
+ Outputs="$(_ILLinkRuntimeRootDescriptorFilePath)">
+ <Message Text="Generating ILLink roots file: $(_ILLinkRuntimeRootDescriptorFilePath)" />
+ <CreateRuntimeRootILLinkDescriptorFile NamespaceFilePath="$(_NamespaceFilePath)"
+ MscorlibFilePath="$(_MscorlibFilePath)"
+ CortypeFilePath="$(_CortypeFilePath)"
+ RexcepFilePath="$(_RexcepFilePath)"
+ ILLinkTrimXmlFilePath="$(_ILLinkTrimXmlFilePath)"
+ RuntimeRootDescriptorFilePath="$(_ILLinkRuntimeRootDescriptorFilePath)" />
+ </Target>
+</Project>