Skip to content

Commit e540873

Browse files
authored
NuGet: Create a packages based on data from an XML file (chakra-core#6665)
1 parent f5296a1 commit e540873

18 files changed

+609
-193
lines changed

Build/NuGet/Microsoft.ChakraCore.ARM.props

-10
This file was deleted.

Build/NuGet/Microsoft.ChakraCore.Symbols.nuspec

-20
This file was deleted.

Build/NuGet/Microsoft.ChakraCore.X64.nuspec

-18
This file was deleted.

Build/NuGet/Microsoft.ChakraCore.X86.props

-10
This file was deleted.

Build/NuGet/Microsoft.ChakraCore.vc140.nuspec

-64
This file was deleted.
+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
3+
<metadata>
4+
<id>$id$</id>
5+
<version>$version$</version>
6+
<description>$description$</description>
7+
<releaseNotes>$releaseNotes$</releaseNotes>
8+
<tags>$tags$</tags>
9+
$CommonMetadataElements$
10+
</metadata>
11+
<files>
12+
<!--Build-->
13+
<file src="Items.targets" target="build\native\$id$.targets"/>
14+
15+
<!--Include-->
16+
<file src="..\..\..\lib\Jsrt\ChakraCommon.h" target="build\native\include\ChakraCommon.h"/>
17+
<file src="..\..\..\lib\Jsrt\ChakraCommonWindows.h" target="build\native\include\ChakraCommonWindows.h"/>
18+
<file src="..\..\..\lib\Jsrt\ChakraCore.h" target="build\native\include\ChakraCore.h"/>
19+
<file src="..\..\..\lib\Jsrt\ChakraCoreWindows.h" target="build\native\include\ChakraCoreWindows.h"/>
20+
<file src="..\..\..\lib\Jsrt\ChakraDebug.h" target="build\native\include\ChakraDebug.h"/>
21+
22+
<!--Lib-->
23+
<file src="..\..\VcBuild\bin\x86_release\ChakraCore.dll" target="lib\native\v140\x86\release\ChakraCore.dll" />
24+
<file src="..\..\VcBuild\bin\x86_release\ChakraCore.lib" target="lib\native\v140\x86\release\ChakraCore.lib" />
25+
<file src="..\..\VcBuild\bin\x86_release\ChakraCore.pdb" target="lib\native\v140\x86\release\ChakraCore.pdb" />
26+
<file src="..\..\VcBuild\bin\x86_release\ch.exe" target="lib\native\v140\x86\release\ch.exe" />
27+
<file src="..\..\VcBuild\bin\x86_release\ch.pdb" target="lib\native\v140\x86\release\ch.pdb" />
28+
29+
<!--Copying Release to Debug for now to save on build time-->
30+
<file src="..\..\VcBuild\bin\x86_release\ChakraCore.dll" target="lib\native\v140\x86\debug\ChakraCore.dll" />
31+
<file src="..\..\VcBuild\bin\x86_release\ChakraCore.lib" target="lib\native\v140\x86\debug\ChakraCore.lib" />
32+
<file src="..\..\VcBuild\bin\x86_release\ChakraCore.pdb" target="lib\native\v140\x86\debug\ChakraCore.pdb" />
33+
<file src="..\..\VcBuild\bin\x86_release\ch.exe" target="lib\native\v140\x86\debug\ch.exe" />
34+
<file src="..\..\VcBuild\bin\x86_release\ch.pdb" target="lib\native\v140\x86\debug\ch.pdb" />
35+
36+
<file src="..\..\VcBuild\bin\x64_release\ChakraCore.dll" target="lib\native\v140\x64\release\ChakraCore.dll" />
37+
<file src="..\..\VcBuild\bin\x64_release\ChakraCore.lib" target="lib\native\v140\x64\release\ChakraCore.lib" />
38+
<file src="..\..\VcBuild\bin\x64_release\ChakraCore.pdb" target="lib\native\v140\x64\release\ChakraCore.pdb" />
39+
<file src="..\..\VcBuild\bin\x64_release\ch.exe" target="lib\native\v140\x64\release\ch.exe" />
40+
<file src="..\..\VcBuild\bin\x64_release\ch.pdb" target="lib\native\v140\x64\release\ch.pdb" />
41+
42+
<!--Copying Release to Debug for now to save on build time-->
43+
<file src="..\..\VcBuild\bin\x64_release\ChakraCore.dll" target="lib\native\v140\x64\debug\ChakraCore.dll" />
44+
<file src="..\..\VcBuild\bin\x64_release\ChakraCore.lib" target="lib\native\v140\x64\debug\ChakraCore.lib" />
45+
<file src="..\..\VcBuild\bin\x64_release\ChakraCore.pdb" target="lib\native\v140\x64\debug\ChakraCore.pdb" />
46+
<file src="..\..\VcBuild\bin\x64_release\ch.exe" target="lib\native\v140\x64\debug\ch.exe" />
47+
<file src="..\..\VcBuild\bin\x64_release\ch.pdb" target="lib\native\v140\x64\debug\ch.pdb" />
48+
49+
<file src="..\..\VcBuild\bin\arm_release\ChakraCore.dll" target="lib\native\v140\arm\release\ChakraCore.dll" />
50+
<file src="..\..\VcBuild\bin\arm_release\ChakraCore.lib" target="lib\native\v140\arm\release\ChakraCore.lib" />
51+
<file src="..\..\VcBuild\bin\arm_release\ChakraCore.pdb" target="lib\native\v140\arm\release\ChakraCore.pdb" />
52+
<file src="..\..\VcBuild\bin\arm_release\ch.exe" target="lib\native\v140\arm\release\ch.exe" />
53+
<file src="..\..\VcBuild\bin\arm_release\ch.pdb" target="lib\native\v140\arm\release\ch.pdb" />
54+
55+
<!--Copying Release to Debug for now to save on build time-->
56+
<file src="..\..\VcBuild\bin\arm_release\ChakraCore.dll" target="lib\native\v140\arm\debug\ChakraCore.dll" />
57+
<file src="..\..\VcBuild\bin\arm_release\ChakraCore.lib" target="lib\native\v140\arm\debug\ChakraCore.lib" />
58+
<file src="..\..\VcBuild\bin\arm_release\ChakraCore.pdb" target="lib\native\v140\arm\debug\ChakraCore.pdb" />
59+
<file src="..\..\VcBuild\bin\arm_release\ch.exe" target="lib\native\v140\arm\debug\ch.exe" />
60+
<file src="..\..\VcBuild\bin\arm_release\ch.pdb" target="lib\native\v140\arm\debug\ch.pdb" />
61+
62+
$CommonFileElements$
63+
</files>
64+
</package>

Build/NuGet/Microsoft.ChakraCore.nuspec Build/NuGet/Windows.DotNet.All/Primary.nuspec

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
$CommonMetadataElements$
1010
</metadata>
1111
<files>
12-
<file src="Microsoft.ChakraCore.Shared.props" target="build\$id$.props" />
12+
<file src="Items.props" target="build\$id$.props" />
1313

14-
<file src="..\VcBuild\bin\x86_release\ChakraCore.dll" target="runtimes\win7-x86\native\ChakraCore.dll" />
15-
<file src="..\VcBuild\bin\x64_release\ChakraCore.dll" target="runtimes\win7-x64\native\ChakraCore.dll" />
16-
<file src="..\VcBuild\bin\arm_release\ChakraCore.dll" target="runtimes\win8-arm\native\ChakraCore.dll" />
14+
<file src="..\..\VcBuild\bin\x86_release\ChakraCore.dll" target="runtimes\win7-x86\native\ChakraCore.dll" />
15+
<file src="..\..\VcBuild\bin\x64_release\ChakraCore.dll" target="runtimes\win7-x64\native\ChakraCore.dll" />
16+
<file src="..\..\VcBuild\bin\arm_release\ChakraCore.dll" target="runtimes\win8-arm\native\ChakraCore.dll" />
1717

1818
$CommonFileElements$
1919
</files>

Build/NuGet/Microsoft.ChakraCore.X86.nuspec Build/NuGet/Windows.DotNet.All/Symbols.nuspec

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
$CommonMetadataElements$
1010
</metadata>
1111
<files>
12-
<file src="$id$.props" target="build" />
12+
<file src="Items.props" target="build\$id$.props" />
1313

14-
<file src="..\VcBuild\bin\x86_release\ChakraCore.dll" target="runtimes\win7-x86\native\ChakraCore.dll" />
14+
<file src="..\..\VcBuild\bin\x86_release\ChakraCore.pdb" target="runtimes\win7-x86\native\ChakraCore.pdb" />
15+
<file src="..\..\VcBuild\bin\x64_release\ChakraCore.pdb" target="runtimes\win7-x64\native\ChakraCore.pdb" />
16+
<file src="..\..\VcBuild\bin\arm_release\ChakraCore.pdb" target="runtimes\win8-arm\native\ChakraCore.pdb" />
1517

1618
$CommonFileElements$
1719
</files>

Build/NuGet/Microsoft.ChakraCore.X64.props Build/NuGet/Windows.DotNet.Arch/Items.props.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<ItemGroup>
4-
<Content Include="$(MSBuildThisFileDirectory)..\runtimes\win7-x64\native\*">
4+
<Content Include="$(MSBuildThisFileDirectory)..\runtimes\{{runtimeIdentifier}}\native\*">
55
<Link>%(Filename)%(Extension)</Link>
66
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
77
<Visible>False</Visible>

Build/NuGet/Microsoft.ChakraCore.ARM.nuspec Build/NuGet/Windows.DotNet.Arch/Primary.nuspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
$CommonMetadataElements$
1010
</metadata>
1111
<files>
12-
<file src="$id$.props" target="build" />
12+
<file src="Items.$platformArchitecture$.props" target="build\$id$.props" />
1313

14-
<file src="..\VcBuild\bin\arm_release\ChakraCore.dll" target="runtimes\win8-arm\native\ChakraCore.dll" />
14+
<file src="..\..\VcBuild\bin\$platformArchitecture$_release\ChakraCore.dll" target="runtimes\$runtimeIdentifier$\native\ChakraCore.dll" />
1515

1616
$CommonFileElements$
1717
</files>

0 commit comments

Comments
 (0)