• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1lldb_tablegen(PlatformMacOSXProperties.inc -gen-lldb-property-defs
2  SOURCE PlatformMacOSXProperties.td
3  TARGET LLDBPluginPlatformMacOSXPropertiesGen)
4
5lldb_tablegen(PlatformMacOSXPropertiesEnum.inc -gen-lldb-property-enum-defs
6  SOURCE PlatformMacOSXProperties.td
7  TARGET LLDBPluginPlatformMacOSXPropertiesEnumGen)
8
9list(APPEND PLUGIN_PLATFORM_MACOSX_SOURCES
10  PlatformDarwin.cpp
11  PlatformDarwinKernel.cpp
12  PlatformMacOSX.cpp
13  PlatformRemoteAppleBridge.cpp
14  PlatformRemoteAppleTV.cpp
15  PlatformRemoteAppleWatch.cpp
16  PlatformRemoteDarwinDevice.cpp
17  PlatformRemoteMacOSX.cpp
18  PlatformRemoteiOS.cpp
19  )
20
21list(APPEND PLUGIN_PLATFORM_MACOSX_DARWIN_ONLY_SOURCES
22  PlatformAppleSimulator.cpp
23  )
24
25if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
26  add_subdirectory(objcxx)
27  set(OBJC_LIBS "lldbPluginPlatformMacOSXObjCXX")
28  list(APPEND PLUGIN_PLATFORM_MACOSX_SOURCES
29    ${PLUGIN_PLATFORM_MACOSX_DARWIN_ONLY_SOURCES})
30else()
31  list(APPEND LLVM_OPTIONAL_SOURCES
32    ${PLUGIN_PLATFORM_MACOSX_DARWIN_ONLY_SOURCES})
33endif()
34
35add_lldb_library(lldbPluginPlatformMacOSX PLUGIN
36  ${PLUGIN_PLATFORM_MACOSX_SOURCES}
37
38  LINK_LIBS
39    lldbBreakpoint
40    lldbCore
41    lldbHost
42    lldbInterpreter
43    lldbSymbol
44    lldbTarget
45    lldbUtility
46    lldbPluginPlatformPOSIX
47    ${OBJC_LIBS}
48  CLANG_LIBS
49    clangBasic
50  LINK_COMPONENTS
51    Support
52    )
53
54add_dependencies(lldbPluginPlatformMacOSX
55  LLDBPluginPlatformMacOSXPropertiesGen
56  LLDBPluginPlatformMacOSXPropertiesEnumGen)
57