summaryrefslogtreecommitdiff
path: root/source/Plugins/Platform/MacOSX/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'source/Plugins/Platform/MacOSX/CMakeLists.txt')
-rw-r--r--source/Plugins/Platform/MacOSX/CMakeLists.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/source/Plugins/Platform/MacOSX/CMakeLists.txt b/source/Plugins/Platform/MacOSX/CMakeLists.txt
new file mode 100644
index 0000000000000..02566ab3db06d
--- /dev/null
+++ b/source/Plugins/Platform/MacOSX/CMakeLists.txt
@@ -0,0 +1,27 @@
+list(APPEND PLUGIN_PLATFORM_MACOSX_SOURCES
+ PlatformDarwin.cpp
+ PlatformDarwinKernel.cpp
+ PlatformMacOSX.cpp
+ PlatformRemoteiOS.cpp
+ PlatformRemoteAppleTV.cpp
+ PlatformRemoteAppleWatch.cpp
+ )
+
+list(APPEND PLUGIN_PLATFORM_MACOSX_DARWIN_ONLY_SOURCES
+ PlatformAppleSimulator.cpp
+ PlatformiOSSimulator.cpp
+ PlatformiOSSimulatorCoreSimulatorSupport.mm
+ PlatformAppleTVSimulator.cpp
+ PlatformAppleWatchSimulator.cpp
+ )
+
+if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
+ include_directories(${LIBXML2_INCLUDE_DIR})
+ list(APPEND PLUGIN_PLATFORM_MACOSX_SOURCES
+ ${PLUGIN_PLATFORM_MACOSX_DARWIN_ONLY_SOURCES})
+else()
+ list(APPEND LLVM_OPTIONAL_SOURCES
+ ${PLUGIN_PLATFORM_MACOSX_DARWIN_ONLY_SOURCES})
+endif()
+
+add_lldb_library(lldbPluginPlatformMacOSX ${PLUGIN_PLATFORM_MACOSX_SOURCES})