Kaynağa Gözat

Merge pull request #6746 from Taritsyn/nuget-platform-specific-package-symbols

NuGet: Add a platform-specific “symbol” packages
Petr Penzin 4 yıl önce
ebeveyn
işleme
f743c7c4f1

+ 20 - 0
Build/NuGet/Windows.DotNet.Arch/Symbols.nuspec

@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
+  <metadata>
+    <id>$id$</id>
+    <version>$version$</version>
+    <description>$description$</description>
+    <releaseNotes>$releaseNotes$</releaseNotes>
+    <tags>$tags$</tags>
+    $CommonMetadataElements$
+  </metadata>
+  <files>
+    <file src="Items.$platformArchitecture$.symbols.props" target="build\$id$.props" />
+    <file src="Install.$platformArchitecture$.symbols.ps1" target="tools\Install.ps1" />
+    <file src="Uninstall.$platformArchitecture$.symbols.ps1" target="tools\Uninstall.ps1" />
+
+    <file src="..\..\VcBuild\bin\$platformArchitecture$_release\ChakraCore.pdb" target="runtimes\$runtimeIdentifier$\native" />
+
+    $CommonFileElements$
+  </files>
+</package>

+ 42 - 0
Build/NuGet/package-data.xml

@@ -40,6 +40,20 @@
               target="Windows.DotNet.Arch\Uninstall.{{{platformArchitecture}}}.ps1" />
       </preprocessableFiles>
     </package>
+    <package id="Microsoft.ChakraCore.win-x86.symbols" nuspecFile="Windows.DotNet.Arch\Symbols.nuspec">
+      <properties>
+        <platformArchitecture>x86</platformArchitecture>
+        <runtimeIdentifier>win-x86</runtimeIdentifier>
+      </properties>
+      <preprocessableFiles>
+        <file src="Windows.DotNet.Arch\Items.props.mustache"
+              target="Windows.DotNet.Arch\Items.{{{platformArchitecture}}}.symbols.props" />
+        <file src="Windows.DotNet.Arch\Install.ps1.mustache"
+              target="Windows.DotNet.Arch\Install.{{{platformArchitecture}}}.symbols.ps1" />
+        <file src="Windows.DotNet.Arch\Uninstall.ps1.mustache"
+              target="Windows.DotNet.Arch\Uninstall.{{{platformArchitecture}}}.symbols.ps1" />
+      </preprocessableFiles>
+    </package>
     <package id="Microsoft.ChakraCore.win-x64" nuspecFile="Windows.DotNet.Arch\Primary.nuspec">
       <properties>
         <platformArchitecture>x64</platformArchitecture>
@@ -54,6 +68,20 @@
               target="Windows.DotNet.Arch\Uninstall.{{{platformArchitecture}}}.ps1" />
       </preprocessableFiles>
     </package>
+    <package id="Microsoft.ChakraCore.win-x64.symbols" nuspecFile="Windows.DotNet.Arch\Symbols.nuspec">
+      <properties>
+        <platformArchitecture>x64</platformArchitecture>
+        <runtimeIdentifier>win-x64</runtimeIdentifier>
+      </properties>
+      <preprocessableFiles>
+        <file src="Windows.DotNet.Arch\Items.props.mustache"
+              target="Windows.DotNet.Arch\Items.{{{platformArchitecture}}}.symbols.props" />
+        <file src="Windows.DotNet.Arch\Install.ps1.mustache"
+              target="Windows.DotNet.Arch\Install.{{{platformArchitecture}}}.symbols.ps1" />
+        <file src="Windows.DotNet.Arch\Uninstall.ps1.mustache"
+              target="Windows.DotNet.Arch\Uninstall.{{{platformArchitecture}}}.symbols.ps1" />
+      </preprocessableFiles>
+    </package>
     <package id="Microsoft.ChakraCore.win-arm" nuspecFile="Windows.DotNet.Arch\Primary.nuspec">
       <properties>
         <platformArchitecture>arm</platformArchitecture>
@@ -68,6 +96,20 @@
               target="Windows.DotNet.Arch\Uninstall.{{{platformArchitecture}}}.ps1" />
       </preprocessableFiles>
     </package>
+    <package id="Microsoft.ChakraCore.win-arm.symbols" nuspecFile="Windows.DotNet.Arch\Symbols.nuspec">
+      <properties>
+        <platformArchitecture>arm</platformArchitecture>
+        <runtimeIdentifier>win-arm</runtimeIdentifier>
+      </properties>
+      <preprocessableFiles>
+        <file src="Windows.DotNet.Arch\Items.props.mustache"
+              target="Windows.DotNet.Arch\Items.{{{platformArchitecture}}}.symbols.props" />
+        <file src="Windows.DotNet.Arch\Install.ps1.mustache"
+              target="Windows.DotNet.Arch\Install.{{{platformArchitecture}}}.symbols.ps1" />
+        <file src="Windows.DotNet.Arch\Uninstall.ps1.mustache"
+              target="Windows.DotNet.Arch\Uninstall.{{{platformArchitecture}}}.symbols.ps1" />
+      </preprocessableFiles>
+    </package>
     <package id="Microsoft.ChakraCore.vc140" nuspecFile="Windows.Cpp.All\Primary.nuspec">
       <properties>
         <tags>{{{base}}},nativepackage,C++,vc140</tags>