From 48beabdb3fb7864c87e912c9288750a953453468 Mon Sep 17 00:00:00 2001 From: Ivan Gagis Date: Wed, 7 Oct 2015 22:03:12 +0300 Subject: nuget package scripts --- scripts/build_nuget_package.bat | 11 +++++++++ scripts/nuget.autopkg | 50 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 scripts/build_nuget_package.bat create mode 100644 scripts/nuget.autopkg diff --git a/scripts/build_nuget_package.bat b/scripts/build_nuget_package.bat new file mode 100644 index 0000000..3715832 --- /dev/null +++ b/scripts/build_nuget_package.bat @@ -0,0 +1,11 @@ +msbuild vs2015/vs2015.sln /target:Clean /property:Configuration=Debug /property:Platform=x86 +msbuild vs2015/vs2015.sln /target:Clean /property:Configuration=Debug /property:Platform=x64 +msbuild vs2015/vs2015.sln /target:Clean /property:Configuration=Release /property:Platform=x86 +msbuild vs2015/vs2015.sln /target:Clean /property:Configuration=Release /property:Platform=x64 + +msbuild vs2015/vs2015.sln /property:Configuration=Debug /property:Platform=x86 +msbuild vs2015/vs2015.sln /property:Configuration=Debug /property:Platform=x64 +msbuild vs2015/vs2015.sln /property:Configuration=Release /property:Platform=x86 +msbuild vs2015/vs2015.sln /property:Configuration=Release /property:Platform=x64 + +powershell Write-NuGetPackage nuget.autopkg diff --git a/scripts/nuget.autopkg b/scripts/nuget.autopkg new file mode 100644 index 0000000..88379f8 --- /dev/null +++ b/scripts/nuget.autopkg @@ -0,0 +1,50 @@ +nuget{ + nuspec{ + id = libpugixml; + version : 1.6.0.1; + title: XML parser library in C++; + authors: {Arseny Kapoulkine}; + owners: {Ivan Gagis}; + licenseUrl: "http://pugixml.org/license.html"; + projectUrl: "http://pugixml.org/"; + iconUrl: "https://github.com/zeux/pugixml/logo.svg"; + requireLicenseAcceptance:false; + summary: XML parser library in C++; + + description: @"XML parser library in C++"; + releaseNotes: "Initial release"; + copyright: Copyright (c) 2006-2015 Arseny Kapoulkine; + tags: { native}; + } + dependencies { + packages : { + }; + } + files { + include: { "..\src\**\*.hpp" }; + + [x86,release] { + lib: vs2015\Release\libpugixml.lib; +// symbols: vs2015\Release\libpugixml.pdb; +// bin: vs2015\Release\libpugixml.dll; + } + + [x86,debug] { + lib: vs2015\Debug\libpugixml.lib; +// symbols: vs2015\Debug\libpugixml.pdb; +// bin: vs2015\Debug\libpugixml.dll; + } + + [x64,release] { + lib: vs2015\x64\Release\libpugixml.lib; +// symbols: vs2015\x64\Release\libpugixml.pdb; +// bin: vs2015\x64\Release\libpugixml.dll; + } + + [x64,debug] { + lib: vs2015\x64\Debug\libpugixml.lib; +// symbols: vs2015\x64\Debug\libpugixml.pdb; +// bin: vs2015\x64\Debug\libpugixml.dll; + } + } +} -- cgit v1.2.3