62 lines · plain
1lldb_tablegen(PlatformMacOSXProperties.inc -gen-lldb-property-defs2 SOURCE PlatformMacOSXProperties.td3 TARGET LLDBPluginPlatformMacOSXPropertiesGen)4 5lldb_tablegen(PlatformMacOSXPropertiesEnum.inc -gen-lldb-property-enum-defs6 SOURCE PlatformMacOSXProperties.td7 TARGET LLDBPluginPlatformMacOSXPropertiesEnumGen)8 9list(APPEND PLUGIN_PLATFORM_MACOSX_SOURCES10 PlatformDarwin.cpp11 PlatformDarwinDevice.cpp12 PlatformDarwinKernel.cpp13 PlatformMacOSX.cpp14 PlatformRemoteAppleBridge.cpp15 PlatformRemoteAppleTV.cpp16 PlatformRemoteAppleWatch.cpp17 PlatformRemoteAppleXR.cpp18 PlatformRemoteDarwinDevice.cpp19 PlatformRemoteMacOSX.cpp20 PlatformRemoteiOS.cpp21 )22 23list(APPEND PLUGIN_PLATFORM_MACOSX_DARWIN_ONLY_SOURCES24 PlatformAppleSimulator.cpp25 )26 27if(CMAKE_SYSTEM_NAME MATCHES "Darwin")28 add_subdirectory(objcxx)29 set(OBJC_LIBS "lldbPluginPlatformMacOSXObjCXX")30 list(APPEND PLUGIN_PLATFORM_MACOSX_SOURCES31 ${PLUGIN_PLATFORM_MACOSX_DARWIN_ONLY_SOURCES})32else()33 list(APPEND LLVM_OPTIONAL_SOURCES34 ${PLUGIN_PLATFORM_MACOSX_DARWIN_ONLY_SOURCES})35endif()36 37add_lldb_library(lldbPluginPlatformMacOSX PLUGIN38 ${PLUGIN_PLATFORM_MACOSX_SOURCES}39 40 LINK_COMPONENTS41 Support42 TargetParser43 LINK_LIBS44 lldbBreakpoint45 lldbCore46 lldbHost47 lldbInterpreter48 lldbSymbol49 lldbTarget50 lldbUtility51 lldbPluginDynamicLoaderDarwinKernel52 lldbPluginObjectContainerMachOFileset53 lldbPluginPlatformPOSIX54 ${OBJC_LIBS}55 CLANG_LIBS56 clangBasic57 )58 59add_dependencies(lldbPluginPlatformMacOSX60 LLDBPluginPlatformMacOSXPropertiesGen61 LLDBPluginPlatformMacOSXPropertiesEnumGen)62