File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,14 @@ if ( LLDB_ENABLE_PYTHON_SCRIPTS_SWIG_API_GENERATION )
18
18
19
19
# Install the LLDB python module on all operating systems
20
20
install (SCRIPT lldb_python_module.cmake -DCMAKE_INSTALL_PREFIX=\" ${CMAKE_INSTALL_PREFIX} \" -DCMAKE_BUILD_DIR=\" ${CMAKE_BUILD_DIR} \" )
21
+
22
+ # Add a Post-Build Event to copy over Python files and create the symlink to liblldb.so for the Python API(hardlink on Windows)
23
+ add_custom_command ( TARGET liblldb
24
+ POST_BUILD
25
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR} /finishSwigWrapperClasses.py
26
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR} /Python/finishSwigPythonLLDB.py
27
+ COMMAND python ${CMAKE_CURRENT_SOURCE_DIR} /finishSwigWrapperClasses.py -d "--srcRoot=${LLDB_SOURCE_DIR} " "--targetDir=${CMAKE_CURRENT_BINARY_DIR} " "--cfgBldDir=${CMAKE_CURRENT_BINARY_DIR} " "--prefix=${CMAKE_BINARY_DIR} " "--cmakeBuildConfiguration=${CMAKE_CFG_INTDIR} " -m
28
+ COMMENT "Python script sym-linking LLDB Python API" )
21
29
else ()
22
30
add_custom_command (
23
31
OUTPUT ${CMAKE_CURRENT_BINARY_DIR} /LLDBWrapPython.cpp
Original file line number Diff line number Diff line change @@ -327,16 +327,6 @@ endif ()
327
327
# FIXME: implement svn/git revision and repository parsing solution on Windows. There is an SVN-only
328
328
# revision parsing solution in tools/clang/lib/Basic/CMakelists.txt.
329
329
330
- if ( LLDB_ENABLE_PYTHON_SCRIPTS_SWIG_API_GENERATION )
331
- # Add a Post-Build Event to copy over Python files and create the symlink to liblldb.so for the Python API(hardlink on Windows)
332
- if ( NOT LLDB_DISABLE_PYTHON )
333
- add_custom_command ( TARGET liblldb
334
- POST_BUILD
335
- COMMAND python ${CMAKE_CURRENT_SOURCE_DIR} /../scripts/finishSwigWrapperClasses.py "--srcRoot=${LLDB_SOURCE_DIR} " "--targetDir=${CMAKE_CURRENT_BINARY_DIR} " "--cfgBldDir=${CMAKE_CURRENT_BINARY_DIR} " "--prefix=${CMAKE_BINARY_DIR} " "--cmakeBuildConfiguration=${CMAKE_CFG_INTDIR} " -m
336
- COMMENT "Python script sym-linking LLDB Python API" )
337
- endif ()
338
- endif ()
339
-
340
330
install (TARGETS liblldb
341
331
RUNTIME DESTINATION bin
342
332
LIBRARY DESTINATION lib
You can’t perform that action at this time.
0 commit comments