summaryrefslogtreecommitdiffstats
path: root/lldb/cmake
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2017-07-25 20:31:15 +0000
committerChris Bieneman <beanz@apple.com>2017-07-25 20:31:15 +0000
commit3769777f11a3334e6d5904445940f600e6619162 (patch)
tree8fe9339d032f57c18fd59c63a6a9b0f5057c35c1 /lldb/cmake
parent7f47b85c52e6cd379b7924f42c5f3a93e7c1bdaf (diff)
downloadbcm5719-llvm-3769777f11a3334e6d5904445940f600e6619162.tar.gz
bcm5719-llvm-3769777f11a3334e6d5904445940f600e6619162.zip
[CMake] Update Framework construction for iOS
On iOS frameworks don't have versions or resources, they are flatter bundles. This updates the LLDB framework build to accommodate the flatter bundles. llvm-svn: 309025
Diffstat (limited to 'lldb/cmake')
-rw-r--r--lldb/cmake/modules/AddLLDB.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/cmake/modules/AddLLDB.cmake b/lldb/cmake/modules/AddLLDB.cmake
index 4c6f1efd673..e56b06b5b2f 100644
--- a/lldb/cmake/modules/AddLLDB.cmake
+++ b/lldb/cmake/modules/AddLLDB.cmake
@@ -101,11 +101,15 @@ function(add_lldb_executable name)
if(LLDB_BUILD_FRAMEWORK)
if(ARG_INCLUDE_IN_FRAMEWORK)
+ if(NOT IOS)
+ set(resource_dir "/Resources")
+ set(resource_dots "../")
+ endif()
string(REGEX REPLACE "[^/]+" ".." _dots ${LLDB_FRAMEWORK_INSTALL_DIR})
set_target_properties(${name} PROPERTIES
- RUNTIME_OUTPUT_DIRECTORY $<TARGET_FILE_DIR:liblldb>/Resources
+ RUNTIME_OUTPUT_DIRECTORY $<TARGET_FILE_DIR:liblldb>${resource_dir}
BUILD_WITH_INSTALL_RPATH On
- INSTALL_RPATH "@loader_path/../../../../${_dots}/${LLDB_FRAMEWORK_INSTALL_DIR}")
+ INSTALL_RPATH "@loader_path/../../../${resource_dots}${_dots}/${LLDB_FRAMEWORK_INSTALL_DIR}")
# For things inside the framework we don't need functional install targets
# because CMake copies the resources and headers from the build directory.
# But we still need this target to exist in order to use the
OpenPOWER on IntegriCloud