From eb5a6207840a0c9169f97fbfe7b92c6720616dc6 Mon Sep 17 00:00:00 2001 From: blue3k Date: Sat, 13 Apr 2019 15:24:21 -0700 Subject: [PATCH] Support VS2017 --- NppPlugin/project/NppPlugin.vcxproj | 19 ++++--- PythonScript.Tests/PythonScript.Tests.vcxproj | 31 ++++++------ .../PythonScript.Tests.vcxproj.filters | 1 + PythonScript.Tests/gtest.proj/gtest.vcxproj | 13 ++--- PythonScript.Tests/packages.config | 4 +- PythonScript/project/PythonScript2010.vcxproj | 47 +++++++++++------- .../project/PythonScript2010.vcxproj.filters | 6 +++ PythonScript/res/PythonScript.rc | 4 +- PythonScript/res/PythonScriptVersion.rc | Bin 4968 -> 5054 bytes VSProp/PythonScriptCompile.props | 15 ++++++ 10 files changed, 91 insertions(+), 49 deletions(-) create mode 100644 VSProp/PythonScriptCompile.props diff --git a/NppPlugin/project/NppPlugin.vcxproj b/NppPlugin/project/NppPlugin.vcxproj index 5cf9e0b8..04ee7a15 100644 --- a/NppPlugin/project/NppPlugin.vcxproj +++ b/NppPlugin/project/NppPlugin.vcxproj @@ -30,60 +30,67 @@ {69CC76EB-0183-4622-929C-02E860A66A23} NppPlugin Win32Proj + 8.1 StaticLibrary Unicode true - v140_xp + v141 StaticLibrary Unicode true - v140_xp + v141 StaticLibrary Unicode - v140_xp + v141 StaticLibrary Unicode - v140_xp + v141 StaticLibrary Unicode - v140_xp + v141 StaticLibrary Unicode - v140_xp + v141 + + + + + + diff --git a/PythonScript.Tests/PythonScript.Tests.vcxproj b/PythonScript.Tests/PythonScript.Tests.vcxproj index 333379de..8dfe2c46 100644 --- a/PythonScript.Tests/PythonScript.Tests.vcxproj +++ b/PythonScript.Tests/PythonScript.Tests.vcxproj @@ -30,45 +30,46 @@ {141C090A-DF76-456E-8B54-1E2C9E5AE75A} Win32Proj PythonScriptTests + 8.1 Application true Unicode - v140_xp + v141 Application true Unicode - v140_xp + v141 Application true Unicode - v140_xp + v141 Application true Unicode - v140_xp + v141 Application false true Unicode - v140_xp + v141 Application false true Unicode - v140_xp + v141 @@ -76,26 +77,32 @@ + + + + + + @@ -143,8 +150,6 @@ Console true bin\$(Configuration)\gtest.lib;shlwapi.lib;%(AdditionalDependencies) - - $(TargetDir)$(TargetFileName) @@ -165,8 +170,6 @@ Console true bin64\$(Configuration)\gtest.lib;shlwapi.lib;%(AdditionalDependencies) - - $(TargetDir)$(TargetFileName) @@ -187,8 +190,6 @@ Console true bin\$(Configuration)\gtest.lib;shlwapi.lib;%(AdditionalDependencies) - - $(TargetDir)$(TargetFileName) @@ -209,8 +210,6 @@ Console true bin64\$(Configuration)\gtest.lib;shlwapi.lib;%(AdditionalDependencies) - - $(TargetDir)$(TargetFileName) @@ -257,7 +256,9 @@ - + + Designer + diff --git a/PythonScript.Tests/PythonScript.Tests.vcxproj.filters b/PythonScript.Tests/PythonScript.Tests.vcxproj.filters index 6d279e19..5da4f9a8 100644 --- a/PythonScript.Tests/PythonScript.Tests.vcxproj.filters +++ b/PythonScript.Tests/PythonScript.Tests.vcxproj.filters @@ -22,6 +22,7 @@ + diff --git a/PythonScript.Tests/gtest.proj/gtest.vcxproj b/PythonScript.Tests/gtest.proj/gtest.vcxproj index a12df5ca..d7e3ccf9 100644 --- a/PythonScript.Tests/gtest.proj/gtest.vcxproj +++ b/PythonScript.Tests/gtest.proj/gtest.vcxproj @@ -30,45 +30,46 @@ {2DDE822D-E7AC-4650-B875-D33FADC0EED9} Win32Proj gtestvcxproj + 8.1 StaticLibrary true Unicode - v140_xp + v141 StaticLibrary true Unicode - v140_xp + v141 StaticLibrary true Unicode - v140_xp + v141 StaticLibrary true Unicode - v140_xp + v141 StaticLibrary false true Unicode - v140_xp + v141 StaticLibrary false true Unicode - v140_xp + v141 diff --git a/PythonScript.Tests/packages.config b/PythonScript.Tests/packages.config index 6b12f9da..cc530cc6 100644 --- a/PythonScript.Tests/packages.config +++ b/PythonScript.Tests/packages.config @@ -1,6 +1,6 @@  - - + + \ No newline at end of file diff --git a/PythonScript/project/PythonScript2010.vcxproj b/PythonScript/project/PythonScript2010.vcxproj index 50346a8b..f082e92f 100644 --- a/PythonScript/project/PythonScript2010.vcxproj +++ b/PythonScript/project/PythonScript2010.vcxproj @@ -39,57 +39,58 @@ Win32Proj PythonScript2010 PythonScript + 8.1 DynamicLibrary true Unicode - v140_xp + v141 DynamicLibrary true Unicode - v140_xp + v141 DynamicLibrary true Unicode - v140_xp + v141 DynamicLibrary true Unicode - v140_xp + v141 DynamicLibrary true Unicode - v140_xp + v141 DynamicLibrary true Unicode - v140_xp + v141 DynamicLibrary false true Unicode - v140_xp + v141 DynamicLibrary false true Unicode - v140_xp + v141 @@ -97,34 +98,42 @@ + + + + + + + + @@ -189,7 +198,7 @@ Windows true NppPlugin.lib;shlwapi.lib;comctl32.lib;htmlhelp.lib;dbghelp.lib;%(AdditionalDependencies) - $(HtmlHelpBase)\lib;$(BoostLibPath) + $(HtmlHelpBase)\lib;%(AdditionalLibraryDirectories) LinkVerbose @@ -212,7 +221,7 @@ xcopy $(ProjectDir)..\python_tests\*.* "e:\notepadtest\unicode\plugins\config\py Windows true NppPlugin.lib;shlwapi.lib;comctl32.lib;htmlhelp.lib;dbghelp.lib;%(AdditionalDependencies) - $(HtmlHelpBase)\lib;$(BoostLibPath) + $(HtmlHelpBase)\lib;%(AdditionalLibraryDirectories) LinkVerbose @@ -236,7 +245,7 @@ xcopy $(ProjectDir)..\python_tests\*.* "e:\notepadtest\unicode\plugins\config\py Windows true NppPlugin.lib;shlwapi.lib;comctl32.lib;htmlhelp.lib;dbghelp.lib;%(AdditionalDependencies) - $(HtmlHelpBase)\lib;$(BoostLibPath) + $(HtmlHelpBase)\lib;%(AdditionalLibraryDirectories) LinkVerbose @@ -260,7 +269,7 @@ xcopy $(ProjectDir)..\python_tests\*.* "e:\notepadtest\unicode\plugins\config\py Windows true NppPlugin.lib;shlwapi.lib;comctl32.lib;htmlhelp.lib;dbghelp.lib;%(AdditionalDependencies) - $(HtmlHelpBase)\lib;$(BoostLibPath) + $(HtmlHelpBase)\lib;%(AdditionalLibraryDirectories) LinkVerbose @@ -283,7 +292,7 @@ xcopy $(ProjectDir)..\python_tests\*.* "e:\notepadtest\unicode\plugins\config\py Windows true python27.lib;NppPlugin.lib;shlwapi.lib;comctl32.lib;htmlhelp.lib;%(AdditionalDependencies) - $(HtmlHelpBase)\lib + $(HtmlHelpBase)\lib;%(AdditionalLibraryDirectories) copy $(OutDir)$(TargetFileName) "C:\Program Files (x86)\Notepad++\plugins" @@ -304,7 +313,7 @@ xcopy $(ProjectDir)..\python_tests\*.* "e:\notepadtest\unicode\plugins\config\py Windows true python27.lib;NppPlugin.lib;shlwapi.lib;comctl32.lib;htmlhelp.lib;%(AdditionalDependencies) - $(HtmlHelpBase)\lib + $(HtmlHelpBase)\lib;%(AdditionalLibraryDirectories) copy $(OutDir)$(TargetFileName) "C:\Program Files (x86)\Notepad++\plugins" @@ -319,7 +328,7 @@ xcopy $(ProjectDir)..\python_tests\*.* "e:\notepadtest\unicode\plugins\config\py true WIN32;NDEBUG;_WINDOWS;_USRDLL;PYTHONSCRIPT2010_EXPORTS;BOOST_PYTHON_STATIC_LIB;%(PreprocessorDefinitions) MultiThreaded - ../include;../res;%(AdditionalIncludeDirectories) + ../include;../res;%(AdditionalIncludeDirectories); true @@ -328,7 +337,7 @@ xcopy $(ProjectDir)..\python_tests\*.* "e:\notepadtest\unicode\plugins\config\py true true python27.lib;NppPlugin.lib;shlwapi.lib;comctl32.lib;htmlhelp.lib;%(AdditionalDependencies) - $(HtmlHelpBase)\lib + $(HtmlHelpBase)\lib;%(AdditionalLibraryDirectories) @@ -349,7 +358,7 @@ xcopy $(ProjectDir)..\python_tests\*.* "e:\notepadtest\unicode\plugins\config\py true true python27.lib;NppPlugin.lib;shlwapi.lib;comctl32.lib;htmlhelp.lib;%(AdditionalDependencies) - $(HtmlHelpBase)\lib + $(HtmlHelpBase)\lib;%(AdditionalLibraryDirectories) @@ -426,7 +435,7 @@ xcopy $(ProjectDir)..\python_tests\*.* "e:\notepadtest\unicode\plugins\config\py - + @@ -483,7 +492,7 @@ xcopy $(ProjectDir)..\python_tests\*.* "e:\notepadtest\unicode\plugins\config\py - + diff --git a/PythonScript/project/PythonScript2010.vcxproj.filters b/PythonScript/project/PythonScript2010.vcxproj.filters index 717324d7..e7456807 100644 --- a/PythonScript/project/PythonScript2010.vcxproj.filters +++ b/PythonScript/project/PythonScript2010.vcxproj.filters @@ -172,6 +172,9 @@ Source Files + + Source Files + @@ -378,6 +381,9 @@ Header Files + + Header Files + diff --git a/PythonScript/res/PythonScript.rc b/PythonScript/res/PythonScript.rc index cf52dfb8..105c570d 100644 --- a/PythonScript/res/PythonScript.rc +++ b/PythonScript/res/PythonScript.rc @@ -7,7 +7,9 @@ // // Generated from the TEXTINCLUDE 2 resource. // -#include "afxres.h" +//#include "afxres.h" +#include +#include ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS diff --git a/PythonScript/res/PythonScriptVersion.rc b/PythonScript/res/PythonScriptVersion.rc index 523a6ce7f8131020f0cf72b3bb9ecc1bdcf80f2b..ca41f54249dd0c259693f35abfc2bfe36227324b 100644 GIT binary patch delta 101 zcmaE%woiS77ZbBSgZ{)q(aCX4V!p}@nGAUh$qYFRr3@(ysSGv@ + + + + + + + C:\Python27\include + + + C:\Python27\libs;$(SolutionDir)packages\boost_python-vc141.1.66.0.0\lib\native;$(SolutionDir)packages\boost_regex-vc141.1.66.0.0\lib\native;$(SolutionDir)packages\boost.1.66.0.0\lib\native + + + + \ No newline at end of file