Daniel Malea | 137c4d7 | 2013-02-28 23:11:46 +0000 | [diff] [blame] | 1 | set(LLVM_NO_RTTI 1)
|
| 2 |
|
| 3 | add_custom_command(
|
| 4 | OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapPython.cpp
|
| 5 | DEPENDS ${LLDB_SOURCE_DIR}/scripts/lldb.swig
|
| 6 | # swig was directly invoked on Windows (where the Python API is not being generated) but on other platforms, we need to run the *swig-wrapper-classes.sh shell-scripts.
|
| 7 | #COMMAND swig -c++ -shadow -python -I${LLDB_SOURCE_DIR}/include -I./. -outdir ${LLDB_SOURCE_DIR}/scripts/Python -o ${LLDB_SOURCE_DIR}/source/LLDBWrapPython.cpp ${LLDB_SOURCE_DIR}/scripts/lldb.swig
|
Sylvestre Ledru | b104986 | 2013-04-13 13:20:12 +0000 | [diff] [blame] | 8 | COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/build-swig-wrapper-classes.sh ${LLDB_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR} -m
|
| 9 | COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/finish-swig-wrapper-classes.sh ${LLDB_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR} -m
|
Daniel Malea | 137c4d7 | 2013-02-28 23:11:46 +0000 | [diff] [blame] | 10 | COMMENT "Building lldb python wrapper")
|
| 11 | set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapPython.cpp PROPERTIES GENERATED 1)
|
| 12 |
|
Daniel Malea | 3b75ec0 | 2013-03-07 00:52:25 +0000 | [diff] [blame] | 13 | ADD_CUSTOM_TARGET(swig_wrapper ALL echo -n
|
Daniel Malea | 137c4d7 | 2013-02-28 23:11:46 +0000 | [diff] [blame] | 14 | DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapPython.cpp
|
| 15 | )
|
Daniel Malea | e4c2022 | 2013-05-17 20:55:19 +0000 | [diff] [blame] | 16 |
|
| 17 | # Install the LLDB python module on all operating systems (except Windows)
|
| 18 | if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
|
| 19 | install(SCRIPT lldb_python_module.cmake -DCMAKE_INSTALL_PREFIX=\"${CMAKE_INSTALL_PREFIX}\" -DCMAKE_BUILD_DIR=\"${CMAKE_BUILD_DIR}\")
|
| 20 | endif()
|