-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds Python 3 bindings and some new API: - GetDirectoryTableBase - TranslateVirtualToPhysical - GetVirtualPage - GetBugCheckParameters
- Loading branch information
Showing
11 changed files
with
774 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Mastho - 2020 | ||
link_libraries(kdmp-parser) | ||
find_package (Python3 COMPONENTS Interpreter Development) | ||
|
||
# Python on Windows Debug build only load $_d.pyd and require python_d.exe | ||
if(CMAKE_BUILD_TYPE STREQUAL "Debug" AND WIN32) | ||
set(PYMODULE kdmp_d CACHE INTERNAL "") | ||
else() | ||
set(PYMODULE kdmp CACHE INTERNAL "") | ||
endif() | ||
|
||
# Require Python3 interpreter and development libs | ||
if(NOT Python3_Interpreter_FOUND OR (NOT Python3_Development_FOUND) OR (CMAKE_BUILD_TYPE STREQUAL "Debug" AND WIN32 AND NOT Python3_LIBRARY_DEBUG)) | ||
message(WARNING "Python3 development library not found") | ||
set(PYMODULE "" CACHE INTERNAL "") | ||
return() | ||
endif() | ||
|
||
Python3_add_library(${PYMODULE} SHARED python-kdmp.cc) | ||
|
||
# On Windows Python load $.pyd :: On Linux remove lib$ prefix | ||
if(WIN32) | ||
set_target_properties(${PYMODULE} PROPERTIES SUFFIX ".pyd") | ||
else() | ||
set_target_properties(${PYMODULE} PROPERTIES PREFIX "") | ||
endif() | ||
|
Oops, something went wrong.