mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
3d7ff268e4
* Add Triton port * Delete debugging * add versioning * add port-version * run x-add-version --all * reverse port-version * Fix build * Fix usage * Not support arm triplets * Update to the fix commit * Disable examples and tests * version * fix feature python * version * require specifig features of capstone to build Triton * remove static-crt feature from capstone * add versioning Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
28 lines
1.5 KiB
Diff
28 lines
1.5 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 966ded8..baf0ec3 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -52,7 +52,6 @@ if(PYTHON_BINDINGS)
|
|
find_package(PythonInterp ${PYTHON_VERSION} REQUIRED)
|
|
find_package(PythonLibs ${PYTHON_VERSION} REQUIRED)
|
|
include_directories(${PYTHON_INCLUDE_DIRS})
|
|
- add_definitions("-DPYTHON_LIBRARIES=\"${PYTHON_LIBRARIES}\"")
|
|
add_custom_target(test-python
|
|
COMMAND ${PYTHONPATH_CMD} ${PYTHON_EXECUTABLE} -m unittest discover ${TRITON_ROOT}/src/testers/unittests
|
|
DEPENDS python-triton
|
|
diff --git a/src/libtriton/CMakeLists.txt b/src/libtriton/CMakeLists.txt
|
|
index 6770b08..701d55b 100644
|
|
--- a/src/libtriton/CMakeLists.txt
|
|
+++ b/src/libtriton/CMakeLists.txt
|
|
@@ -326,8 +326,8 @@ if(PYTHON_BINDINGS)
|
|
)
|
|
execute_process (COMMAND ${PYTHON_EXECUTABLE} -c "from sysconfig import get_path; print(get_path('platlib'))" OUTPUT_VARIABLE PYTHON_SITE_PACKAGES OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows" AND NOT ${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
|
|
- install (FILES ${CMAKE_CURRENT_BINARY_DIR}/\${CMAKE_INSTALL_CONFIG_NAME}/triton${PYTHON_SUFFIX} DESTINATION ${PYTHON_SITE_PACKAGES})
|
|
+ install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_CONFIG_NAME}/triton${PYTHON_SUFFIX} DESTINATION share/triton)
|
|
else()
|
|
- install (FILES ${CMAKE_CURRENT_BINARY_DIR}/triton${PYTHON_SUFFIX} DESTINATION ${PYTHON_SITE_PACKAGES})
|
|
+ install (FILES ${CMAKE_CURRENT_BINARY_DIR}/triton${PYTHON_SUFFIX} DESTINATION share/triton)
|
|
endif()
|
|
endif()
|