xiaobai created this revision.
xiaobai added reviewers: sas, smeenai, labath, davide.
Herald added a subscriber: mgorny.
This install command is used to install all the python modules and
python bindings. Currently the only way to install it is this:
`cmake -P build/tools/lldb/tools/scripts/cmake_install.cmake`
However with my change you should be able to add "lldb-python-bindings" to
LLVM_DISTRIBUTION_COMPONENTS and invoke `ninja install-distribution`.
Alternatively, you can do something like
`cmake -DCMAKE_INSTALL_COMPONENT="lldb-python-modules" -P
build/cmake_install.cmake` yourself.
https://reviews.llvm.org/D48993
Files:
scripts/CMakeLists.txt
Index: scripts/CMakeLists.txt
===================================================================
--- scripts/CMakeLists.txt
+++ scripts/CMakeLists.txt
@@ -56,7 +56,9 @@
# Install the LLDB python module
-install(DIRECTORY ${SWIG_PYTHON_DIR} DESTINATION ${SWIG_INSTALL_DIR})
+install(DIRECTORY ${SWIG_PYTHON_DIR}
+ COMPONENT "lldb-python-modules"
+ DESTINATION ${SWIG_INSTALL_DIR})
# build Python modules
add_subdirectory(Python/modules)
Index: scripts/CMakeLists.txt
===================================================================
--- scripts/CMakeLists.txt
+++ scripts/CMakeLists.txt
@@ -56,7 +56,9 @@
# Install the LLDB python module
-install(DIRECTORY ${SWIG_PYTHON_DIR} DESTINATION ${SWIG_INSTALL_DIR})
+install(DIRECTORY ${SWIG_PYTHON_DIR}
+ COMPONENT "lldb-python-modules"
+ DESTINATION ${SWIG_INSTALL_DIR})
# build Python modules
add_subdirectory(Python/modules)
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits