summaryrefslogtreecommitdiffstats
path: root/lldb/source/Initialization
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2017-01-31 20:43:05 +0000
committerChris Bieneman <beanz@apple.com>2017-01-31 20:43:05 +0000
commit494f277af5226ecb9d9309da969b29ade93c53f7 (patch)
treea4c589ee70fb8afdb506bc6ef328c8266b08b177 /lldb/source/Initialization
parenteb1ad400f9f500f8a191f4953655422b96dda91a (diff)
downloadbcm5719-llvm-494f277af5226ecb9d9309da969b29ade93c53f7.tar.gz
bcm5719-llvm-494f277af5226ecb9d9309da969b29ade93c53f7.zip
[CMake] Add accurate dependency specifications
Summary: This patch adds accurate dependency specifications to the mail LLDB libraries and tools. In all cases except lldb-server, these dependencies are added in addition to existing dependencies (making this low risk), and I performed some code cleanup along the way. For lldb-server I've cleaned up the LLVM dependencies down to just the minimum actually required. This is more than lldb-server actually directly references, and I've left a todo in the code to clean that up. Reviewers: labath, zturner Subscribers: lldb-commits, danalbert, srhines, ki.stfu, mgorny, jgosnell Differential Revision: https://reviews.llvm.org/D29333 llvm-svn: 293686
Diffstat (limited to 'lldb/source/Initialization')
-rw-r--r--lldb/source/Initialization/CMakeLists.txt31
1 files changed, 31 insertions, 0 deletions
diff --git a/lldb/source/Initialization/CMakeLists.txt b/lldb/source/Initialization/CMakeLists.txt
index f23a2b4339b..7c7ee52fb2e 100644
--- a/lldb/source/Initialization/CMakeLists.txt
+++ b/lldb/source/Initialization/CMakeLists.txt
@@ -1,5 +1,36 @@
+if ( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
+ list(APPEND EXTRA_PLUGINS lldbPluginObjectFileMachO)
+endif()
+
+if ( CMAKE_SYSTEM_NAME MATCHES "Linux|Android|FreeBSD|NetBSD" )
+ list(APPEND EXTRA_PLUGINS lldbPluginProcessPOSIX)
+endif()
+
+if ( CMAKE_SYSTEM_NAME MATCHES "Windows" )
+ list(APPEND LLDB_USED_LIBS
+ lldbPluginProcessWindowsCommon
+ ws2_32
+ rpcrt4
+ )
+endif ()
+
add_lldb_library(lldbInitialization
SystemInitializerCommon.cpp
SystemInitializer.cpp
SystemLifetimeManager.cpp
+
+ LINK_LIBS
+ lldbCore
+ lldbHost
+ lldbPluginInstructionARM
+ lldbPluginInstructionMIPS
+ lldbPluginInstructionMIPS64
+ lldbPluginObjectContainerBSDArchive
+ lldbPluginObjectContainerMachOArchive
+ lldbPluginObjectFileELF
+ lldbPluginObjectFilePECOFF
+ lldbPluginProcessGDBRemote
+ ${EXTRA_PLUGINS}
+ LINK_COMPONENTS
+ Support
)
OpenPOWER on IntegriCloud