summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver
diff options
context:
space:
mode:
authorStefan Granitz <stefan.graenitz@gmail.com>2019-05-29 11:26:06 +0000
committerStefan Granitz <stefan.graenitz@gmail.com>2019-05-29 11:26:06 +0000
commit5dc90367464853bb2830c9e4e4875e1588ba7096 (patch)
tree55a34e29d56c68b3c14d9689e9b7b09c61f77257 /lldb/tools/debugserver
parent5b363c14d7bd83523caa66013d4200459b71abc4 (diff)
downloadbcm5719-llvm-5dc90367464853bb2830c9e4e4875e1588ba7096.tar.gz
bcm5719-llvm-5dc90367464853bb2830c9e4e4875e1588ba7096.zip
[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
Diffstat (limited to 'lldb/tools/debugserver')
-rw-r--r--lldb/tools/debugserver/source/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/tools/debugserver/source/CMakeLists.txt b/lldb/tools/debugserver/source/CMakeLists.txt
index 2b8e737d536..e0d834799f8 100644
--- a/lldb/tools/debugserver/source/CMakeLists.txt
+++ b/lldb/tools/debugserver/source/CMakeLists.txt
@@ -265,6 +265,10 @@ if(build_and_sign_debugserver)
${entitlements}
)
+ if(LLDB_BUILD_FRAMEWORK)
+ lldb_add_to_framework(debugserver)
+ endif()
+
if(IOS)
set_property(TARGET lldbDebugserverCommon APPEND PROPERTY COMPILE_DEFINITIONS
WITH_LOCKDOWN
OpenPOWER on IntegriCloud