Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaurav Khanna <gkhanna@microsoft.com>2015-10-23 10:14:57 +0300
committerGaurav Khanna <gkhanna@microsoft.com>2015-10-23 23:40:03 +0300
commitb7d40512245ac2fea4898747f621ed8c1c173748 (patch)
tree29288e2e2b08442cd8ad5eae611767414e798e09 /src/dirs.proj
parentc34a6b462cb48cf629909c30ec74c79d77e2f4cf (diff)
Generate Microsoft.DotNet.ILToNative and Microsoft.Dotnet.ILToNative.Development nuget packages.
Diffstat (limited to 'src/dirs.proj')
-rw-r--r--src/dirs.proj21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/dirs.proj b/src/dirs.proj
index f710e44ea..d3dff45d8 100644
--- a/src/dirs.proj
+++ b/src/dirs.proj
@@ -16,6 +16,27 @@
<Import Project="$(ToolsDir)packages.targets" Condition="Exists('$(ToolsDir)packages.targets') and '$(ImportGetNuGetPackageVersions)' != 'false'" />
<Import Project="$(ToolsDir)UpdateBuildValues.targets" Condition="Exists('$(ToolsDir)UpdateBuildValues.targets')" />
+ <!-- Have a task to copy ILToNative.exe to ILToNative.dll for inclusion into the NoDep nuget package -->
+ <ItemGroup>
+ <SourceName Include="$(OutputPath)ILToNative.exe"/>
+ <TargetName Include="$(OutputPath)ILToNative.dll"/>
+ </ItemGroup>
+
+ <Target Name="RenameILToNative" AfterTargets="Build">
+ <Copy SourceFiles="@(SourceName)" DestinationFiles="@(TargetName)" />
+ </Target>
+
+ <!--
+ Generate Microsoft.Dotnet.CoreRT nuget package and associated development package
+ TODO: For now, we will generate Nuget packages only for Windows.
+ -->
+
+ <Target Name="BuildNuGetPackages" Condition="'$(BuildNugetPackage)' != 'false' and '$(OSGroup)' == 'Windows_NT'" AfterTargets="RenameILToNative">
+ <MakeDir Directories="$(ProductPackageDir)" Condition="!Exists('$(ProductPackageDir)')" />
+ <Copy SourceFiles="@(NuSpecSrcs)" DestinationFolder="$(ProductPackageDir)" />
+ <Exec Command="&quot;$(NuGetToolPath)&quot; pack &quot;%(NuSpecs.Identity)&quot; -NoPackageAnalysis -NoDefaultExcludes -OutputDirectory &quot;$(ProductPackageDir)&quot;" />
+ </Target>
+
<PropertyGroup Condition="Exists('$(ToolsDir)packages.targets') and '$(ImportGetNuGetPackageVersions)' != 'false'">
<TraversalBuildDependsOn>
$(TraversalBuildDependsOn);