diff --git a/appveyor.yml b/appveyor.yml index eaf1aee..a42990f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,3 +1,7 @@ +image: +- Visual Studio 2015 +- Visual Studio 2017 + version: "{branch}-{build}" install: @@ -7,10 +11,10 @@ install: - ps: Import-Module CoApp build_script: - - ps: .\scripts\nuget_build.bat + - ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2017"){.\scripts\nuget_build.ps1} test_script: - - ps: .\tests\autotest-appveyor.ps1 + - ps: if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015"){.\tests\autotest-appveyor.ps1} artifacts: - path: .\scripts\*.nupkg \ No newline at end of file diff --git a/scripts/nuget.autopkg b/scripts/nuget.autopkg index 2a620a2..27f0ec8 100644 --- a/scripts/nuget.autopkg +++ b/scripts/nuget.autopkg @@ -1,7 +1,7 @@ configurations { Toolset { key: "PlatformToolset"; - choices: { v140, v120, v110, v100 }; + choices: { v141, v140, v120, v110, v100 }; } } nuget { @@ -38,5 +38,9 @@ nuget { [x86,v140,debug] { lib: vs2015\Win32_Debug\pugixml.lib; } [x64,v140,release] { lib: vs2015\x64_Release\pugixml.lib; } [x64,v140,debug] { lib: vs2015\x64_Debug\pugixml.lib; } + [x86,v141,release] { lib: vs2017\Win32_Release\pugixml.lib; } + [x86,v141,debug] { lib: vs2017\Win32_Debug\pugixml.lib; } + [x64,v141,release] { lib: vs2017\x64_Release\pugixml.lib; } + [x64,v141,debug] { lib: vs2017\x64_Debug\pugixml.lib; } } } diff --git a/scripts/nuget_build.bat b/scripts/nuget_build.bat deleted file mode 100644 index 588f036..0000000 --- a/scripts/nuget_build.bat +++ /dev/null @@ -1,13 +0,0 @@ -@echo off -cd %~dp0 - -"%VS140COMNTOOLS%\VsMSBuildCmd.bat" && ^ -msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x86 /v:minimal /nologo && ^ -msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal /nologo && ^ -msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x64 /v:minimal /nologo && ^ -msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x64 /v:minimal /nologo && ^ -msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x86 /v:minimal /nologo && ^ -msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal /nologo && ^ -msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x64 /v:minimal /nologo && ^ -msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x64 /v:minimal /nologo && ^ -powershell Write-NuGetPackage nuget.autopkg diff --git a/scripts/nuget_build.ps1 b/scripts/nuget_build.ps1 new file mode 100644 index 0000000..bcb774f --- /dev/null +++ b/scripts/nuget_build.ps1 @@ -0,0 +1,33 @@ +Push-Location +$scriptdir = Split-Path $MyInvocation.MyCommand.Path +cd $scriptdir + +"%VS141COMNTOOLS%\VsMSBuildCmd.bat" +msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x86 /v:minimal /nologo +If(!$?){exit 1} +msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal /nologo +If(!$?){exit 1} +msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x64 /v:minimal /nologo +If(!$?){exit 1} +msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x64 /v:minimal /nologo +If(!$?){exit 1} +msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x86 /v:minimal /nologo +If(!$?){exit 1} +msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal /nologo +If(!$?){exit 1} +msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x64 /v:minimal /nologo +If(!$?){exit 1} +msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x64 /v:minimal /nologo +If(!$?){exit 1} +msbuild pugixml_vs2017.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x86 /v:minimal /nologo +If(!$?){exit 1} +msbuild pugixml_vs2017.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal /nologo +If(!$?){exit 1} +msbuild pugixml_vs2017.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x64 /v:minimal /nologo +If(!$?){exit 1} +msbuild pugixml_vs2017.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x64 /v:minimal /nologo +If(!$?){exit 1} +Write-NuGetPackage nuget.autopkg +If(!$?){exit 1} + +Pop-Location diff --git a/scripts/pugixml_vs2017.vcxproj b/scripts/pugixml_vs2017.vcxproj new file mode 100644 index 0000000..c1c9745 --- /dev/null +++ b/scripts/pugixml_vs2017.vcxproj @@ -0,0 +1,172 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + {07CF01C0-B887-499D-AD9C-799CB6A9FE64} + Win32Proj + pugixml + 8.1 + + + + StaticLibrary + true + v141 + Unicode + + + StaticLibrary + false + v141 + true + Unicode + + + StaticLibrary + true + v141 + Unicode + + + StaticLibrary + false + v141 + true + Unicode + + + + + + + + + + + + + + + + + + + + + vs2017\$(Platform)_$(Configuration)\ + vs2017\$(Platform)_$(Configuration)\ + pugixml + + + vs2017\$(Platform)_$(Configuration)\ + vs2017\$(Platform)_$(Configuration)\ + pugixml + + + vs2017\$(Platform)_$(Configuration)\ + vs2017\$(Platform)_$(Configuration)\ + pugixml + + + vs2017\$(Platform)_$(Configuration)\ + vs2017\$(Platform)_$(Configuration)\ + pugixml + + + + + + Level3 + Disabled + WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions) + $(IntDir)$(TargetName).pdb + OldStyle + false + + + Windows + true + + + + + + + Level3 + Disabled + _DEBUG;_LIB;%(PreprocessorDefinitions) + $(IntDir)$(TargetName).pdb + OldStyle + false + + + Windows + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) + $(IntDir)$(TargetName).pdb + OldStyle + + + Windows + true + true + true + + + + + Level3 + + + MaxSpeed + true + true + NDEBUG;_LIB;%(PreprocessorDefinitions) + $(IntDir)$(TargetName).pdb + OldStyle + + + Windows + true + true + true + + + + + + + + + + + + + \ No newline at end of file