[Lldb-commits] [PATCH] D48993: [CMake] Give Python module install command a component name

Alex Langford via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 5 13:39:14 PDT 2018


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)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48993.154303.patch
Type: text/x-patch
Size: 448 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180705/974e1dea/attachment.bin>


More information about the lldb-commits mailing list