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 PlatformDarwinDevice.cpp 12 PlatformDarwinKernel.cpp 13 PlatformMacOSX.cpp 14 PlatformRemoteAppleBridge.cpp 15 PlatformRemoteAppleTV.cpp 16 PlatformRemoteAppleWatch.cpp 17 PlatformRemoteDarwinDevice.cpp 18 PlatformRemoteMacOSX.cpp 19 PlatformRemoteiOS.cpp 20 ) 21 22list(APPEND PLUGIN_PLATFORM_MACOSX_DARWIN_ONLY_SOURCES 23 PlatformAppleSimulator.cpp 24 ) 25 26if(CMAKE_SYSTEM_NAME MATCHES "Darwin") 27 add_subdirectory(objcxx) 28 set(OBJC_LIBS "lldbPluginPlatformMacOSXObjCXX") 29 list(APPEND PLUGIN_PLATFORM_MACOSX_SOURCES 30 ${PLUGIN_PLATFORM_MACOSX_DARWIN_ONLY_SOURCES}) 31else() 32 list(APPEND LLVM_OPTIONAL_SOURCES 33 ${PLUGIN_PLATFORM_MACOSX_DARWIN_ONLY_SOURCES}) 34endif() 35 36add_lldb_library(lldbPluginPlatformMacOSX PLUGIN 37 ${PLUGIN_PLATFORM_MACOSX_SOURCES} 38 39 LINK_LIBS 40 lldbBreakpoint 41 lldbCore 42 lldbHost 43 lldbInterpreter 44 lldbSymbol 45 lldbTarget 46 lldbUtility 47 lldbPluginDynamicLoaderDarwinKernel 48 lldbPluginObjectContainerMachOFileset 49 lldbPluginPlatformPOSIX 50 ${OBJC_LIBS} 51 CLANG_LIBS 52 clangBasic 53 LINK_COMPONENTS 54 Support 55 TargetParser 56 ) 57 58add_dependencies(lldbPluginPlatformMacOSX 59 LLDBPluginPlatformMacOSXPropertiesGen 60 LLDBPluginPlatformMacOSXPropertiesEnumGen) 61