1 set(LLVM_TARGET_DEFINITIONS LLGSOptions.td)
2 tablegen(LLVM LLGSOptions.inc -gen-opt-parser-defs)
3 add_public_tablegen_target(LLGSOptionsTableGen)
4 set_target_properties(LLGSOptionsTableGen PROPERTIES FOLDER "lldb misc")
8 if(CMAKE_SYSTEM_NAME MATCHES "Linux|Android")
9 list(APPEND LLDB_PLUGINS lldbPluginProcessLinux)
12 if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
13 list(APPEND LLDB_PLUGINS lldbPluginProcessFreeBSD)
16 if(CMAKE_SYSTEM_NAME MATCHES "NetBSD")
17 list(APPEND LLDB_PLUGINS lldbPluginProcessNetBSD)
20 if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
21 list(APPEND LLDB_PLUGINS lldbPluginObjectFileMachO)
22 elseif(CMAKE_SYSTEM_NAME MATCHES "Windows")
23 list(APPEND LLDB_PLUGINS lldbPluginObjectFilePECOFF)
25 list(APPEND LLDB_PLUGINS lldbPluginObjectFileELF)
29 if(LLDB_CODESIGN_IDENTITY)
30 # Use explicit LLDB identity
31 set(LLVM_CODESIGNING_IDENTITY ${LLDB_CODESIGN_IDENTITY})
33 # Use explicit LLVM identity or default to lldb_codesign if empty
34 if(NOT LLVM_CODESIGNING_IDENTITY)
35 set(LLVM_CODESIGNING_IDENTITY lldb_codesign)
40 add_lldb_tool(lldb-server
45 LLDBServerUtilities.cpp
46 SystemInitializerLLGS.cpp
53 lldbPluginInstructionARM
54 lldbPluginInstructionMIPS
55 lldbPluginInstructionMIPS64
63 add_dependencies(lldb-server
67 target_include_directories(lldb-server PRIVATE "${LLDB_SOURCE_DIR}/source")
68 target_link_libraries(lldb-server PRIVATE ${LLDB_SYSTEM_LIBS})