HomePhabricator

[CMake] Revised LLDB.framework builds

Description

[CMake] Revised LLDB.framework builds

Summary:
Add features to LLDB CMake builds that have so far only been available in Xcode. Clean up a few inconveniences and prepare further improvements.

Options:

  • LLDB_FRAMEWORK_BUILD_DIR determines target directory (in build-tree)
  • LLDB_FRAMEWORK_INSTALL_DIR only determines target directory in install-tree
  • LLVM_EXTERNALIZE_DEBUGINFO allows externalized debug info (dSYM on Darwin, emitted to bin)
  • LLDB_FRAMEWORK_TOOLS determines which executables will be copied to the framework's Resources (dropped symlinking, removed INCLUDE_IN_SUITE, removed dummy targets)

Other changes:

  • clean up add_lldb_executable()
  • include LLDBFramework.cmake from source/API/CMakeLists.txt
  • use *.plist.in files, which are typical for CMake and independent from Xcode
  • add clang headers to the framework bundle

Reviewers: xiaobai, JDevlieghere, aprantl, davide, beanz, stella.stamenova, clayborg, labath

Reviewed By: aprantl

Subscribers: friss, mgorny, lldb-commits, #lldb

Differential Revision: https://reviews.llvm.org/D55328

Details

Committed
stefan.graenitzJan 4 2019, 4:46 AM
Reviewer
aprantl
Differential Revision
D55328: [CMake] Revised LLDB.framework builds
Parents
rL350390: [CMake] Move debugserver options to separate debugserverConfig.cmake
Branches
Unknown
Tags
Unknown