[Lldb-commits] [lldb] r289842 - [CMake] Ensure Python files are inside the LLDB framework bundle

Chris Bieneman via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 15 10:19:10 PST 2016

Author: cbieneman
Date: Thu Dec 15 12:19:10 2016
New Revision: 289842

URL: http://llvm.org/viewvc/llvm-project?rev=289842&view=rev
[CMake] Ensure Python files are inside the LLDB framework bundle

When building the LLDB Framework we need to ensure that the Python files get put into the Framework before the Framework's install target can be invoked.

All files inside the Framework's Resources bundle will get copied over during the install action.


Modified: lldb/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/CMakeLists.txt?rev=289842&r1=289841&r2=289842&view=diff
--- lldb/trunk/CMakeLists.txt (original)
+++ lldb/trunk/CMakeLists.txt Thu Dec 15 12:19:10 2016
@@ -63,6 +63,12 @@ if (NOT LLDB_DISABLE_PYTHON)
     # Ensure we do the python post-build step when building lldb.
     add_dependencies(lldb finish_swig)
+      # The target to install libLLDB needs to depend on finish swig so that the
+      # framework build properly copies over the Python files.
+      add_dependencies(install-liblldb finish_swig)
+    endif()
     # Add a Post-Build Event to copy the custom Python DLL to the lldb binaries dir so that Windows can find it when launching
     # lldb.exe or any other executables that were linked with liblldb.

More information about the lldb-commits mailing list