From 5a7f0b03eeee6d9d2b35fe3fe8bb818b0c96081f Mon Sep 17 00:00:00 2001 From: Colin Xu Date: Wed, 22 Feb 2023 00:35:09 -0800 Subject: [PATCH] Enable pykd for python 3.11. Signed-off-by: Colin Xu --- pykd.sln | 40 +++++ pykd/boost.python/object/class.cpp | 25 ++- pykd/boost.python/object/enum.cpp | 4 + pykd/boost.python/object/function.cpp | 4 + pykd/boost.python/object/life_support.cpp | 4 + pykd/packages.config | 4 +- pykd/pykd.vcxproj | 190 ++++++++++++++++++++++ 7 files changed, 265 insertions(+), 6 deletions(-) diff --git a/pykd.sln b/pykd.sln index 8f208fc..919b4c1 100644 --- a/pykd.sln +++ b/pykd.sln @@ -44,6 +44,8 @@ Global Debug_2.7|x64 = Debug_2.7|x64 Debug_3.10|Win32 = Debug_3.10|Win32 Debug_3.10|x64 = Debug_3.10|x64 + Debug_3.11|Win32 = Debug_3.11|Win32 + Debug_3.11|x64 = Debug_3.11|x64 Debug_3.5|Win32 = Debug_3.5|Win32 Debug_3.5|x64 = Debug_3.5|x64 Debug_3.6|Win32 = Debug_3.6|Win32 @@ -58,6 +60,8 @@ Global Release_2.7|x64 = Release_2.7|x64 Release_3.10|Win32 = Release_3.10|Win32 Release_3.10|x64 = Release_3.10|x64 + Release_3.11|Win32 = Release_3.11|Win32 + Release_3.11|x64 = Release_3.11|x64 Release_3.5|Win32 = Release_3.5|Win32 Release_3.5|x64 = Release_3.5|x64 Release_3.6|Win32 = Release_3.6|Win32 @@ -75,6 +79,8 @@ Global {3F0BE77E-19B0-4192-B432-44A25805BCB8}.Debug_2.7|x64.ActiveCfg = Debug|Any CPU {3F0BE77E-19B0-4192-B432-44A25805BCB8}.Debug_3.10|Win32.ActiveCfg = Debug|Any CPU {3F0BE77E-19B0-4192-B432-44A25805BCB8}.Debug_3.10|x64.ActiveCfg = Debug|Any CPU + {3F0BE77E-19B0-4192-B432-44A25805BCB8}.Debug_3.11|Win32.ActiveCfg = Debug|Any CPU + {3F0BE77E-19B0-4192-B432-44A25805BCB8}.Debug_3.11|x64.ActiveCfg = Debug|Any CPU {3F0BE77E-19B0-4192-B432-44A25805BCB8}.Debug_3.5|Win32.ActiveCfg = Debug|Any CPU {3F0BE77E-19B0-4192-B432-44A25805BCB8}.Debug_3.5|x64.ActiveCfg = Debug|Any CPU {3F0BE77E-19B0-4192-B432-44A25805BCB8}.Debug_3.6|Win32.ActiveCfg = Debug|Any CPU @@ -89,6 +95,8 @@ Global {3F0BE77E-19B0-4192-B432-44A25805BCB8}.Release_2.7|x64.ActiveCfg = Release|Any CPU {3F0BE77E-19B0-4192-B432-44A25805BCB8}.Release_3.10|Win32.ActiveCfg = Release|Any CPU {3F0BE77E-19B0-4192-B432-44A25805BCB8}.Release_3.10|x64.ActiveCfg = Release|Any CPU + {3F0BE77E-19B0-4192-B432-44A25805BCB8}.Release_3.11|Win32.ActiveCfg = Release|Any CPU + {3F0BE77E-19B0-4192-B432-44A25805BCB8}.Release_3.11|x64.ActiveCfg = Release|Any CPU {3F0BE77E-19B0-4192-B432-44A25805BCB8}.Release_3.5|Win32.ActiveCfg = Release|Any CPU {3F0BE77E-19B0-4192-B432-44A25805BCB8}.Release_3.5|x64.ActiveCfg = Release|Any CPU {3F0BE77E-19B0-4192-B432-44A25805BCB8}.Release_3.6|Win32.ActiveCfg = Release|Any CPU @@ -103,6 +111,8 @@ Global {6471FEDC-3129-410F-BFFC-4BC89707E5EC}.Debug_2.7|x64.ActiveCfg = Debug|Any CPU {6471FEDC-3129-410F-BFFC-4BC89707E5EC}.Debug_3.10|Win32.ActiveCfg = Debug|Any CPU {6471FEDC-3129-410F-BFFC-4BC89707E5EC}.Debug_3.10|x64.ActiveCfg = Debug|Any CPU + {6471FEDC-3129-410F-BFFC-4BC89707E5EC}.Debug_3.11|Win32.ActiveCfg = Debug|Any CPU + {6471FEDC-3129-410F-BFFC-4BC89707E5EC}.Debug_3.11|x64.ActiveCfg = Debug|Any CPU {6471FEDC-3129-410F-BFFC-4BC89707E5EC}.Debug_3.5|Win32.ActiveCfg = Debug|Any CPU {6471FEDC-3129-410F-BFFC-4BC89707E5EC}.Debug_3.5|x64.ActiveCfg = Debug|Any CPU {6471FEDC-3129-410F-BFFC-4BC89707E5EC}.Debug_3.6|Win32.ActiveCfg = Debug|Any CPU @@ -117,6 +127,8 @@ Global {6471FEDC-3129-410F-BFFC-4BC89707E5EC}.Release_2.7|x64.ActiveCfg = Release|Any CPU {6471FEDC-3129-410F-BFFC-4BC89707E5EC}.Release_3.10|Win32.ActiveCfg = Release|Any CPU {6471FEDC-3129-410F-BFFC-4BC89707E5EC}.Release_3.10|x64.ActiveCfg = Release|Any CPU + {6471FEDC-3129-410F-BFFC-4BC89707E5EC}.Release_3.11|Win32.ActiveCfg = Release|Any CPU + {6471FEDC-3129-410F-BFFC-4BC89707E5EC}.Release_3.11|x64.ActiveCfg = Release|Any CPU {6471FEDC-3129-410F-BFFC-4BC89707E5EC}.Release_3.5|Win32.ActiveCfg = Release|Any CPU {6471FEDC-3129-410F-BFFC-4BC89707E5EC}.Release_3.5|x64.ActiveCfg = Release|Any CPU {6471FEDC-3129-410F-BFFC-4BC89707E5EC}.Release_3.6|Win32.ActiveCfg = Release|Any CPU @@ -131,6 +143,8 @@ Global {D78837DC-BF31-4FC4-88A5-7F2FADAFA795}.Debug_2.7|x64.ActiveCfg = Debug|Any CPU {D78837DC-BF31-4FC4-88A5-7F2FADAFA795}.Debug_3.10|Win32.ActiveCfg = Debug|Any CPU {D78837DC-BF31-4FC4-88A5-7F2FADAFA795}.Debug_3.10|x64.ActiveCfg = Debug|Any CPU + {D78837DC-BF31-4FC4-88A5-7F2FADAFA795}.Debug_3.11|Win32.ActiveCfg = Debug|Any CPU + {D78837DC-BF31-4FC4-88A5-7F2FADAFA795}.Debug_3.11|x64.ActiveCfg = Debug|Any CPU {D78837DC-BF31-4FC4-88A5-7F2FADAFA795}.Debug_3.5|Win32.ActiveCfg = Debug|Any CPU {D78837DC-BF31-4FC4-88A5-7F2FADAFA795}.Debug_3.5|x64.ActiveCfg = Debug|Any CPU {D78837DC-BF31-4FC4-88A5-7F2FADAFA795}.Debug_3.6|Win32.ActiveCfg = Debug|Any CPU @@ -145,6 +159,8 @@ Global {D78837DC-BF31-4FC4-88A5-7F2FADAFA795}.Release_2.7|x64.ActiveCfg = Release|Any CPU {D78837DC-BF31-4FC4-88A5-7F2FADAFA795}.Release_3.10|Win32.ActiveCfg = Release|Any CPU {D78837DC-BF31-4FC4-88A5-7F2FADAFA795}.Release_3.10|x64.ActiveCfg = Release|Any CPU + {D78837DC-BF31-4FC4-88A5-7F2FADAFA795}.Release_3.11|Win32.ActiveCfg = Release|Any CPU + {D78837DC-BF31-4FC4-88A5-7F2FADAFA795}.Release_3.11|x64.ActiveCfg = Release|Any CPU {D78837DC-BF31-4FC4-88A5-7F2FADAFA795}.Release_3.5|Win32.ActiveCfg = Release|Any CPU {D78837DC-BF31-4FC4-88A5-7F2FADAFA795}.Release_3.5|x64.ActiveCfg = Release|Any CPU {D78837DC-BF31-4FC4-88A5-7F2FADAFA795}.Release_3.6|Win32.ActiveCfg = Release|Any CPU @@ -163,6 +179,10 @@ Global {3E9C538F-F060-4E86-AB7D-D44439615B63}.Debug_3.10|Win32.Build.0 = Debug|Win32 {3E9C538F-F060-4E86-AB7D-D44439615B63}.Debug_3.10|x64.ActiveCfg = Debug|x64 {3E9C538F-F060-4E86-AB7D-D44439615B63}.Debug_3.10|x64.Build.0 = Debug|x64 + {3E9C538F-F060-4E86-AB7D-D44439615B63}.Debug_3.11|Win32.ActiveCfg = Debug|Win32 + {3E9C538F-F060-4E86-AB7D-D44439615B63}.Debug_3.11|Win32.Build.0 = Debug|Win32 + {3E9C538F-F060-4E86-AB7D-D44439615B63}.Debug_3.11|x64.ActiveCfg = Debug|x64 + {3E9C538F-F060-4E86-AB7D-D44439615B63}.Debug_3.11|x64.Build.0 = Debug|x64 {3E9C538F-F060-4E86-AB7D-D44439615B63}.Debug_3.5|Win32.ActiveCfg = Debug|Win32 {3E9C538F-F060-4E86-AB7D-D44439615B63}.Debug_3.5|Win32.Build.0 = Debug|Win32 {3E9C538F-F060-4E86-AB7D-D44439615B63}.Debug_3.5|x64.ActiveCfg = Debug|x64 @@ -191,6 +211,10 @@ Global {3E9C538F-F060-4E86-AB7D-D44439615B63}.Release_3.10|Win32.Build.0 = Release_Static|Win32 {3E9C538F-F060-4E86-AB7D-D44439615B63}.Release_3.10|x64.ActiveCfg = Release_Static|x64 {3E9C538F-F060-4E86-AB7D-D44439615B63}.Release_3.10|x64.Build.0 = Release_Static|x64 + {3E9C538F-F060-4E86-AB7D-D44439615B63}.Release_3.11|Win32.ActiveCfg = Release_Static|Win32 + {3E9C538F-F060-4E86-AB7D-D44439615B63}.Release_3.11|Win32.Build.0 = Release_Static|Win32 + {3E9C538F-F060-4E86-AB7D-D44439615B63}.Release_3.11|x64.ActiveCfg = Release_Static|x64 + {3E9C538F-F060-4E86-AB7D-D44439615B63}.Release_3.11|x64.Build.0 = Release_Static|x64 {3E9C538F-F060-4E86-AB7D-D44439615B63}.Release_3.5|Win32.ActiveCfg = Release_Static|Win32 {3E9C538F-F060-4E86-AB7D-D44439615B63}.Release_3.5|Win32.Build.0 = Release_Static|Win32 {3E9C538F-F060-4E86-AB7D-D44439615B63}.Release_3.5|x64.ActiveCfg = Release_Static|x64 @@ -219,6 +243,10 @@ Global {C4C45791-0201-4406-BC5C-A384B01E3BF5}.Debug_3.10|Win32.Build.0 = Debug_3.10|Win32 {C4C45791-0201-4406-BC5C-A384B01E3BF5}.Debug_3.10|x64.ActiveCfg = Debug_3.10|x64 {C4C45791-0201-4406-BC5C-A384B01E3BF5}.Debug_3.10|x64.Build.0 = Debug_3.10|x64 + {C4C45791-0201-4406-BC5C-A384B01E3BF5}.Debug_3.11|Win32.ActiveCfg = Debug_3.11|Win32 + {C4C45791-0201-4406-BC5C-A384B01E3BF5}.Debug_3.11|Win32.Build.0 = Debug_3.11|Win32 + {C4C45791-0201-4406-BC5C-A384B01E3BF5}.Debug_3.11|x64.ActiveCfg = Debug_3.11|x64 + {C4C45791-0201-4406-BC5C-A384B01E3BF5}.Debug_3.11|x64.Build.0 = Debug_3.11|x64 {C4C45791-0201-4406-BC5C-A384B01E3BF5}.Debug_3.5|Win32.ActiveCfg = Debug_3.5|Win32 {C4C45791-0201-4406-BC5C-A384B01E3BF5}.Debug_3.5|Win32.Build.0 = Debug_3.5|Win32 {C4C45791-0201-4406-BC5C-A384B01E3BF5}.Debug_3.5|x64.ActiveCfg = Debug_3.5|x64 @@ -247,6 +275,10 @@ Global {C4C45791-0201-4406-BC5C-A384B01E3BF5}.Release_3.10|Win32.Build.0 = Release_3.10|Win32 {C4C45791-0201-4406-BC5C-A384B01E3BF5}.Release_3.10|x64.ActiveCfg = Release_3.10|x64 {C4C45791-0201-4406-BC5C-A384B01E3BF5}.Release_3.10|x64.Build.0 = Release_3.10|x64 + {C4C45791-0201-4406-BC5C-A384B01E3BF5}.Release_3.11|Win32.ActiveCfg = Release_3.11|Win32 + {C4C45791-0201-4406-BC5C-A384B01E3BF5}.Release_3.11|Win32.Build.0 = Release_3.11|Win32 + {C4C45791-0201-4406-BC5C-A384B01E3BF5}.Release_3.11|x64.ActiveCfg = Release_3.11|x64 + {C4C45791-0201-4406-BC5C-A384B01E3BF5}.Release_3.11|x64.Build.0 = Release_3.11|x64 {C4C45791-0201-4406-BC5C-A384B01E3BF5}.Release_3.5|Win32.ActiveCfg = Release_3.5|Win32 {C4C45791-0201-4406-BC5C-A384B01E3BF5}.Release_3.5|Win32.Build.0 = Release_3.5|Win32 {C4C45791-0201-4406-BC5C-A384B01E3BF5}.Release_3.5|x64.ActiveCfg = Release_3.5|x64 @@ -275,6 +307,10 @@ Global {0E4CC688-F2F5-499F-9C07-0F2CAEE0D3EF}.Debug_3.10|Win32.Build.0 = Debug|Win32 {0E4CC688-F2F5-499F-9C07-0F2CAEE0D3EF}.Debug_3.10|x64.ActiveCfg = Debug|x64 {0E4CC688-F2F5-499F-9C07-0F2CAEE0D3EF}.Debug_3.10|x64.Build.0 = Debug|x64 + {0E4CC688-F2F5-499F-9C07-0F2CAEE0D3EF}.Debug_3.11|Win32.ActiveCfg = Debug|Win32 + {0E4CC688-F2F5-499F-9C07-0F2CAEE0D3EF}.Debug_3.11|Win32.Build.0 = Debug|Win32 + {0E4CC688-F2F5-499F-9C07-0F2CAEE0D3EF}.Debug_3.11|x64.ActiveCfg = Debug|x64 + {0E4CC688-F2F5-499F-9C07-0F2CAEE0D3EF}.Debug_3.11|x64.Build.0 = Debug|x64 {0E4CC688-F2F5-499F-9C07-0F2CAEE0D3EF}.Debug_3.5|Win32.ActiveCfg = Debug|Win32 {0E4CC688-F2F5-499F-9C07-0F2CAEE0D3EF}.Debug_3.5|Win32.Build.0 = Debug|Win32 {0E4CC688-F2F5-499F-9C07-0F2CAEE0D3EF}.Debug_3.5|x64.ActiveCfg = Debug|x64 @@ -303,6 +339,10 @@ Global {0E4CC688-F2F5-499F-9C07-0F2CAEE0D3EF}.Release_3.10|Win32.Build.0 = Release|Win32 {0E4CC688-F2F5-499F-9C07-0F2CAEE0D3EF}.Release_3.10|x64.ActiveCfg = Release|x64 {0E4CC688-F2F5-499F-9C07-0F2CAEE0D3EF}.Release_3.10|x64.Build.0 = Release|x64 + {0E4CC688-F2F5-499F-9C07-0F2CAEE0D3EF}.Release_3.11|Win32.ActiveCfg = Release|Win32 + {0E4CC688-F2F5-499F-9C07-0F2CAEE0D3EF}.Release_3.11|Win32.Build.0 = Release|Win32 + {0E4CC688-F2F5-499F-9C07-0F2CAEE0D3EF}.Release_3.11|x64.ActiveCfg = Release|x64 + {0E4CC688-F2F5-499F-9C07-0F2CAEE0D3EF}.Release_3.11|x64.Build.0 = Release|x64 {0E4CC688-F2F5-499F-9C07-0F2CAEE0D3EF}.Release_3.5|Win32.ActiveCfg = Debug|Win32 {0E4CC688-F2F5-499F-9C07-0F2CAEE0D3EF}.Release_3.5|Win32.Build.0 = Debug|Win32 {0E4CC688-F2F5-499F-9C07-0F2CAEE0D3EF}.Release_3.5|x64.ActiveCfg = Debug|x64 diff --git a/pykd/boost.python/object/class.cpp b/pykd/boost.python/object/class.cpp index aeef688..3d4a6d5 100644 --- a/pykd/boost.python/object/class.cpp +++ b/pykd/boost.python/object/class.cpp @@ -208,7 +208,11 @@ namespace objects { if (static_data_object.tp_dict == 0) { +#if PY_VERSION_HEX >= 0x030b0000 + Py_SET_TYPE(&static_data_object, &PyType_Type); +#else Py_TYPE(&static_data_object) = &PyType_Type; +#endif static_data_object.tp_base = &PyProperty_Type; if (PyType_Ready(&static_data_object)) return 0; @@ -316,7 +320,11 @@ namespace objects { if (class_metatype_object.tp_dict == 0) { +#if PY_VERSION_HEX >= 0x030b0000 + Py_SET_TYPE(&class_metatype_object, &PyType_Type); +#else Py_TYPE(&class_metatype_object) = &PyType_Type; +#endif class_metatype_object.tp_base = &PyType_Type; if (PyType_Ready(&class_metatype_object)) return type_handle(); @@ -374,12 +382,13 @@ namespace objects // like, so we'll store the total size of the object // there. A negative number indicates that the extra // instance memory is not yet allocated to any holders. -#if PY_VERSION_HEX >= 0x02060000 - Py_SIZE(result) = +#if PY_VERSION_HEX >= 0x030b0000 + Py_SET_SIZE(result, -(static_cast(offsetof(instance<>, storage) + instance_size))); +#elif PY_VERSION_HEX >= 0x02060000 + Py_SIZE(result) = -(static_cast(offsetof(instance<>, storage) + instance_size)); #else - result->ob_size = + result->ob_size = -(static_cast(offsetof(instance<>, storage) + instance_size)); #endif - -(static_cast(offsetof(instance<>,storage) + instance_size)); } return (PyObject*)result; } @@ -470,7 +479,11 @@ namespace objects { if (class_type_object.tp_dict == 0) { +#if PY_VERSION_HEX >= 0x030b0000 + Py_SET_TYPE(&class_type_object, incref(class_metatype().get())); +#else Py_TYPE(&class_type_object) = incref(class_metatype().get()); +#endif class_type_object.tp_base = &PyBaseObject_Type; if (PyType_Ready(&class_type_object)) return type_handle(); @@ -739,7 +752,11 @@ void* instance_holder::allocate(PyObject* self_, std::size_t holder_offset, std: assert(holder_offset >= offsetof(objects::instance<>,storage)); // Record the fact that the storage is occupied, noting where it starts +#if PY_VERSION_HEX >= 0x030b0000 + Py_SET_SIZE(self, holder_offset); +#else Py_SIZE(self) = holder_offset; +#endif return (char*)self + holder_offset; } else diff --git a/pykd/boost.python/object/enum.cpp b/pykd/boost.python/object/enum.cpp index 10122ad..c59eb48 100644 --- a/pykd/boost.python/object/enum.cpp +++ b/pykd/boost.python/object/enum.cpp @@ -153,7 +153,11 @@ namespace { if (enum_type_object.tp_dict == 0) { +#if PY_VERSION_HEX >= 0x030b0000 + Py_SET_TYPE(&enum_type_object, incref(&PyType_Type)); +#else Py_TYPE(&enum_type_object) = incref(&PyType_Type); +#endif #if PY_VERSION_HEX >= 0x03000000 enum_type_object.tp_base = &PyLong_Type; #else diff --git a/pykd/boost.python/object/function.cpp b/pykd/boost.python/object/function.cpp index 5c59cc7..6184bb8 100644 --- a/pykd/boost.python/object/function.cpp +++ b/pykd/boost.python/object/function.cpp @@ -107,7 +107,11 @@ function::function( PyObject* p = this; if (Py_TYPE(&function_type) == 0) { +#if PY_VERSION_HEX >= 0x030b0000 + Py_SET_TYPE(&function_type, &PyType_Type); +#else Py_TYPE(&function_type) = &PyType_Type; +#endif ::PyType_Ready(&function_type); } diff --git a/pykd/boost.python/object/life_support.cpp b/pykd/boost.python/object/life_support.cpp index b7e9aa8..98cd9d0 100644 --- a/pykd/boost.python/object/life_support.cpp +++ b/pykd/boost.python/object/life_support.cpp @@ -93,7 +93,11 @@ PyObject* make_nurse_and_patient(PyObject* nurse, PyObject* patient) if (Py_TYPE(&life_support_type) == 0) { +#if PY_VERSION_HEX >= 0x030b0000 + Py_SET_TYPE(&life_support_type, &PyType_Type); +#else Py_TYPE(&life_support_type) = &PyType_Type; +#endif PyType_Ready(&life_support_type); } diff --git a/pykd/packages.config b/pykd/packages.config index 38778f4..e032ab9 100644 --- a/pykd/packages.config +++ b/pykd/packages.config @@ -13,8 +13,8 @@ - - + + diff --git a/pykd/pykd.vcxproj b/pykd/pykd.vcxproj index ac48de1..8adfd36 100644 --- a/pykd/pykd.vcxproj +++ b/pykd/pykd.vcxproj @@ -17,6 +17,14 @@ Debug_3.10 x64 + + Debug_3.11 + Win32 + + + Debug_3.11 + x64 + Debug_3.5 Win32 @@ -73,6 +81,14 @@ Release_3.10 x64 + + Release_3.11 + Win32 + + + Release_3.11 + x64 + Release_3.5 Win32 @@ -180,6 +196,15 @@ 3.10 MDd + + DynamicLibrary + true + Unicode + v141 + 3.11 + 3.11.2 + MDd + DynamicLibrary true @@ -236,6 +261,15 @@ 3.10 MDd + + DynamicLibrary + true + Unicode + v141 + 3.11 + 3.11.2 + MDd + DynamicLibrary false @@ -299,6 +333,16 @@ 3.10 MT + + DynamicLibrary + false + true + Unicode + v141 + 3.11 + 3.11.2 + MT + DynamicLibrary false @@ -362,6 +406,16 @@ 3.10 MT + + DynamicLibrary + false + true + Unicode + v141 + 3.11 + 3.11.2 + MT + @@ -386,6 +440,9 @@ + + + @@ -407,6 +464,9 @@ + + + @@ -428,6 +488,12 @@ + + bb9fbdf7 + + + + @@ -452,6 +518,10 @@ bb9fbdf7 + + + + true .pyd @@ -508,6 +578,14 @@ $(Platform)\$(Configuration)\ $(SolutionDir)out\$(Platform)\$(Configuration)\ + + true + .pyd + true + $(ProjectName) + $(Platform)\$(Configuration)\ + $(SolutionDir)out\$(Platform)\$(Configuration)\ + true .pyd @@ -564,6 +642,14 @@ $(SolutionDir)out\$(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\ + + true + .pyd + true + $(ProjectName) + $(SolutionDir)out\$(Platform)\$(Configuration)\ + $(Platform)\$(Configuration)\ + false .pyd @@ -613,6 +699,13 @@ $(Platform)\$(Configuration)\ $(SolutionDir)out\$(Platform)\$(Configuration)\ + + false + .pyd + $(ProjectName) + $(Platform)\$(Configuration)\ + $(SolutionDir)out\$(Platform)\$(Configuration)\ + false .pyd @@ -662,6 +755,13 @@ $(SolutionDir)out\$(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\ + + false + .pyd + $(ProjectName) + $(SolutionDir)out\$(Platform)\$(Configuration)\ + $(Platform)\$(Configuration)\ + Use @@ -817,6 +917,28 @@ + + + Use + Level3 + Disabled + WIN32;BOOST_PYTHON_STATIC_LIB;BOOST_PYTHON_NO_LIB;_DEBUG;_WINDOWS;_USRDLL;PYKD_EXPORTS;%(PreprocessorDefinitions);BOOST_PYTHON_NUMPY_INTERNAL + $(SolutionDir)\kdlibcpp\kdlib\include;$(SolutionDir)\numpy\include;$(SolutionDir)packages\pythonx86.$(PythonVersionFull)\tools\include + + + Windows + DebugFull + pykd.def + $(SolutionDir)packages\pythonx86.$(PythonVersionFull)\tools\libs;%(AdditionalLibraryDirectories) + + + copy $(OutDir)..\Debug\targetapp.exe $(OutDir) + + + + + + Use @@ -971,6 +1093,28 @@ + + + Use + Level3 + Disabled + WIN32;BOOST_PYTHON_STATIC_LIB;BOOST_PYTHON_NO_LIB;_DEBUG;_WINDOWS;_USRDLL;PYKD_EXPORTS;%(PreprocessorDefinitions);BOOST_PYTHON_NUMPY_INTERNAL + $(SolutionDir)\kdlibcpp\kdlib\include;$(SolutionDir)\numpy\include;$(SolutionDir)packages\python.$(PythonVersionFull)\tools\include + + + Windows + DebugFull + pykd.def + $(SolutionDir)packages\python.$(PythonVersionFull)\tools\libs;%(AdditionalLibraryDirectories) + + + copy $(OutDir)..\Debug\targetapp.exe $(OutDir) + + + + + + Level3 @@ -1132,6 +1276,29 @@ copy $(OutDir)..\Release\targetapp.exe $(OutDir) + + + Level3 + Use + MaxSpeed + true + true + WIN32;BOOST_PYTHON_STATIC_LIB;BOOST_PYTHON_NO_LIB;NDEBUG;_WINDOWS;_USRDLL;PYKD_EXPORTS;%(PreprocessorDefinitions); + $(SolutionDir)\kdlibcpp\kdlib\include;$(SolutionDir)\numpy\include;$(SolutionDir)packages\pythonx86.$(PythonVersionFull)\tools\include + MultiThreaded + + + Windows + DebugFull + true + true + pykd.def + $(SolutionDir)packages\pythonx86.$(PythonVersionFull)\tools\libs;%(AdditionalLibraryDirectories) + + + copy $(OutDir)..\Release\targetapp.exe $(OutDir) + + Level3 @@ -1293,6 +1460,29 @@ copy $(OutDir)..\Release\targetapp.exe $(OutDir) + + + Level3 + Use + MaxSpeed + true + true + WIN32;BOOST_PYTHON_STATIC_LIB;BOOST_PYTHON_NO_LIB;NDEBUG;_WINDOWS;_USRDLL;PYKD_EXPORTS;%(PreprocessorDefinitions); + $(SolutionDir)\kdlibcpp\kdlib\include;$(SolutionDir)\numpy\include;$(SolutionDir)packages\python.$(PythonVersionFull)\tools\include + MultiThreaded + + + Windows + DebugFull + true + true + pykd.def + $(SolutionDir)packages\python.$(PythonVersionFull)\tools\libs;%(AdditionalLibraryDirectories) + + + copy $(OutDir)..\Release\targetapp.exe $(OutDir) + +