[Lldb-commits] [PATCH] D24749: [CMake] Initial support for LLDB.framework

Chris Bieneman via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 19 17:11:06 PDT 2016


beanz created this revision.
beanz added reviewers: zturner, tfiala.
beanz added a subscriber: lldb-commits.
Herald added subscribers: mgorny, beanz.

This patch adds a CMake option LLDB_BUILD_FRAMEWORK, which builds libLLDB as a macOS framework instead of as a *nix shared library.

With this patch any LLDB executable that has the INCLUDE_IN_FRAMEWORK option set will be built into the Framework's resources directory, and a symlink to the exeuctable will be placed under the build directory's bin folder. Creating the symlinks allows users to run commands from the build directory without altering the workflow.

The framework generated by this patch passes the LLDB test suite, but has not been tested beyond that. It is not expected to be fully ready to ship, but it is a first step.

With this patch binaries that are placed inside the framework aren't being properly installed. Fixing that would increase the patch size significantly, so I'd like to do that in a follow-up.

https://reviews.llvm.org/D24749

Files:
  CMakeLists.txt
  cmake/LLDBDependencies.cmake
  cmake/modules/AddLLDB.cmake
  cmake/modules/LLDBConfig.cmake
  scripts/CMakeLists.txt
  scripts/Python/finishSwigPythonLLDB.py
  source/API/CMakeLists.txt
  tools/argdumper/CMakeLists.txt
  tools/darwin-debug/CMakeLists.txt
  tools/debugserver/source/MacOSX/CMakeLists.txt
  tools/lldb-server/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24749.71892.patch
Type: text/x-patch
Size: 13415 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160920/118c781b/attachment-0001.bin>


More information about the lldb-commits mailing list