[CMake] LLDB.framework tools handling
authorStefan Granitz <stefan.graenitz@gmail.com>
Wed, 29 May 2019 11:26:06 +0000 (11:26 +0000)
committerStefan Granitz <stefan.graenitz@gmail.com>
Wed, 29 May 2019 11:26:06 +0000 (11:26 +0000)
commit5dc90367464853bb2830c9e4e4875e1588ba7096
tree55a34e29d56c68b3c14d9689e9b7b09c61f77257
parent5b363c14d7bd83523caa66013d4200459b71abc4
[CMake] LLDB.framework tools handling

Summary:
Modify the way LLDB.framework tools are collected. This allows for better fine-tuning of the install behavior downstream. Each target calls `lldb_add_to_framework()` individually. When entering the function, the target exists and we can tweak its very own post-build and install steps. This was not possible with the old `LLDB_FRAMEWORK_TOOLS` approach.

No function change otherwise.
This is a reduced follow-up from the proposal in D61952.

Reviewers: xiaobai, compnerd, JDevlieghere

Reviewed By: JDevlieghere

Subscribers: clayborg, friss, ki.stfu, mgorny, lldb-commits, labath, #lldb

Tags: #lldb

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

llvm-svn: 361946
lldb/CMakeLists.txt
lldb/cmake/modules/AddLLDB.cmake
lldb/cmake/modules/LLDBConfig.cmake
lldb/cmake/modules/LLDBFramework.cmake
lldb/tools/argdumper/CMakeLists.txt
lldb/tools/darwin-debug/CMakeLists.txt
lldb/tools/debugserver/source/CMakeLists.txt
lldb/tools/driver/CMakeLists.txt
lldb/tools/lldb-mi/CMakeLists.txt
lldb/tools/lldb-server/CMakeLists.txt
lldb/tools/lldb-vscode/CMakeLists.txt