From 3080101ba026f0888b6f3e4f2c206c9b407c2d89 Mon Sep 17 00:00:00 2001 From: nanoric Date: Mon, 18 Feb 2019 03:41:16 -0400 Subject: [PATCH] =?UTF-8?q?[Mod]=20Include=E7=9A=84=E7=9B=B8=E5=AF=B9?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E6=94=B9=E4=B8=BA=E7=BB=9D=E5=AF=B9=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=EF=BC=88Python=E9=99=A4=E5=A4=96=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/api/ctp/vnctp/vnctp.h | 3 -- vnpy/api/ctp/vnctp/vnctpmd/vnctpmd.vcxproj | 39 ++++++++++++++-------- vnpy/api/ctp/vnctp/vnctptd/vnctptd.vcxproj | 38 +++++++++++++++------ 3 files changed, 53 insertions(+), 27 deletions(-) diff --git a/vnpy/api/ctp/vnctp/vnctp.h b/vnpy/api/ctp/vnctp/vnctp.h index 236e9c82..d70bfd78 100644 --- a/vnpy/api/ctp/vnctp/vnctp.h +++ b/vnpy/api/ctp/vnctp/vnctp.h @@ -1,6 +1,3 @@ -#define NOMINMAX -#define _CRT_SECURE_NO_WARNINGS - #include #include #include diff --git a/vnpy/api/ctp/vnctp/vnctpmd/vnctpmd.vcxproj b/vnpy/api/ctp/vnctp/vnctpmd/vnctpmd.vcxproj index 7a830fb8..d5c4473c 100644 --- a/vnpy/api/ctp/vnctp/vnctpmd/vnctpmd.vcxproj +++ b/vnpy/api/ctp/vnctp/vnctpmd/vnctpmd.vcxproj @@ -23,7 +23,7 @@ {F00054FF-282F-4826-848E-D58BFB9E9D9F} Win32Proj vnctpmd - 10.0.17134.0 + 10.0.17763.0 @@ -72,21 +72,29 @@ true + C:\Python37\include;$(SolutionDir);$(SolutionDir)..\include;$(SolutionDir)..\include\ctp;$(IncludePath) + C:\Python37\libs;$(SolutionDir)..\libs;$(LibraryPath) + .pyd true + C:\Python37\include;$(SolutionDir);$(SolutionDir)..\include;$(SolutionDir)..\include\ctp;$(IncludePath) + C:\Python37\libs;$(SolutionDir)..\libs;$(LibraryPath) + .pyd false .pyd - C:\GitHub\vnpy\vnpy\api\ctp\pybind11;C:\GitHub\vnpy\vnpy\api\ctp\ctpapi;$(IncludePath) + C:\Python37\include;$(SolutionDir);$(SolutionDir)..\include;$(SolutionDir)..\include\ctp;$(IncludePath) C:\GitHub\vnpy\vnpy\api\ctp\ctpapi;$(ReferencePath) + C:\Python37\libs;$(SolutionDir)..\libs;$(LibraryPath) false - $(IncludePath) + C:\Python37\include;$(SolutionDir);$(SolutionDir)..\include;$(SolutionDir)..\include\ctp;$(IncludePath) $(ReferencePath) .pyd + C:\Python37\libs;$(SolutionDir)..\libs;$(LibraryPath) @@ -94,11 +102,12 @@ Level3 Disabled true - WIN32;_DEBUG;VNCTPMD_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + NOMINMAX;_CRT_SECURE_NO_WARNINGS;NOMINMAX;_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;VNCTPMD_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true + stdafx.h - Windows + Console true @@ -108,11 +117,12 @@ Level3 Disabled true - _DEBUG;VNCTPMD_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + NOMINMAX;_CRT_SECURE_NO_WARNINGS;NOMINMAX;_CRT_SECURE_NO_WARNINGS;_DEBUG;VNCTPMD_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true + stdafx.h - Windows + Console true @@ -124,11 +134,12 @@ true true true - WIN32;NDEBUG;VNCTPMD_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + NOMINMAX;_CRT_SECURE_NO_WARNINGS;NOMINMAX;_CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;VNCTPMD_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true + stdafx.h - Windows + Console true true true @@ -136,18 +147,20 @@ - NotUsing + Use Level3 MaxSpeed true true true - NDEBUG;VNCTPMD_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + NOMINMAX;_CRT_SECURE_NO_WARNINGS;NDEBUG;VNCTPMD_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true - C:\GitHub\vnpy\vnpy\api\ctp\vnctp;C:\Miniconda3\include;C:\GitHub\vnpy\vnpy\api\ctp\include;%(AdditionalIncludeDirectories) + + + stdafx.h - Windows + Console true true true diff --git a/vnpy/api/ctp/vnctp/vnctptd/vnctptd.vcxproj b/vnpy/api/ctp/vnctp/vnctptd/vnctptd.vcxproj index d0acf4ac..625a5bb9 100644 --- a/vnpy/api/ctp/vnctp/vnctptd/vnctptd.vcxproj +++ b/vnpy/api/ctp/vnctp/vnctptd/vnctptd.vcxproj @@ -23,7 +23,7 @@ {016732E6-5789-4F7C-9A1C-C46A249080CF} Win32Proj vnctptd - 10.0.17134.0 + 10.0.17763.0 @@ -72,16 +72,27 @@ true + C:\Python37\include;$(SolutionDir);$(SolutionDir)..\include;$(SolutionDir)..\include\ctp;$(IncludePath) + C:\Python37\libs;$(SolutionDir)..\libs;$(LibraryPath) + .pyd true + C:\Python37\include;$(SolutionDir);$(SolutionDir)..\include;$(SolutionDir)..\include\ctp;$(IncludePath) + C:\Python37\libs;$(SolutionDir)..\libs;$(LibraryPath) + .pyd false + C:\Python37\include;$(SolutionDir);$(SolutionDir)..\include;$(SolutionDir)..\include\ctp;$(IncludePath) + C:\Python37\libs;$(SolutionDir)..\libs;$(LibraryPath) + .pyd false .pyd + C:\Python37\include;$(SolutionDir);$(SolutionDir)..\include;$(SolutionDir)..\include\ctp;$(IncludePath) + C:\Python37\libs;$(SolutionDir)..\libs;$(LibraryPath) @@ -89,11 +100,12 @@ Level3 Disabled true - WIN32;_DEBUG;VNCTPTD_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + NOMINMAX;_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;VNCTPTD_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true + stdafx.h - Windows + Console true @@ -103,11 +115,12 @@ Level3 Disabled true - _DEBUG;VNCTPTD_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + NOMINMAX;_CRT_SECURE_NO_WARNINGS;_DEBUG;VNCTPTD_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true + stdafx.h - Windows + Console true @@ -119,11 +132,12 @@ true true true - WIN32;NDEBUG;VNCTPTD_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + NOMINMAX;_CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;VNCTPTD_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true + stdafx.h - Windows + Console true true true @@ -131,18 +145,20 @@ - NotUsing + Use Level3 MaxSpeed true true true - NDEBUG;VNCTPTD_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + NOMINMAX;_CRT_SECURE_NO_WARNINGS;NDEBUG;VNCTPTD_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true - C:\Miniconda3\include;C:\GitHub\vnpy\vnpy\api\ctp\include;C:\GitHub\vnpy\vnpy\api\ctp\vnctp;%(AdditionalIncludeDirectories) + + + stdafx.h - Windows + Console true true true