1 set(LLVM_TARGET_DEFINITIONS LLGSOptions.td)
2 tablegen(LLVM LLGSOptions.inc -gen-opt-parser-defs)
3 add_public_tablegen_target(LLGSOptionsTableGen)
7 if(CMAKE_SYSTEM_NAME MATCHES "Linux|Android")
8 list(APPEND LLDB_PLUGINS lldbPluginProcessLinux)
11 if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
12 list(APPEND LLDB_PLUGINS lldbPluginProcessFreeBSD)
15 if(CMAKE_SYSTEM_NAME MATCHES "NetBSD")
16 list(APPEND LLDB_PLUGINS lldbPluginProcessNetBSD)
19 if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
20 list(APPEND LLDB_PLUGINS lldbPluginObjectFileMachO)
21 elseif(CMAKE_SYSTEM_NAME MATCHES "Windows")
22 list(APPEND LLDB_PLUGINS lldbPluginObjectFilePECOFF)
23 elseif(CMAKE_SYSTEM_NAME MATCHES "AIX")
24 list(APPEND LLDB_PLUGINS lldbPluginObjectFileXCOFF)
26 list(APPEND LLDB_PLUGINS lldbPluginObjectFileELF)
30 if(LLDB_CODESIGN_IDENTITY)
31 # Use explicit LLDB identity
32 set(LLVM_CODESIGNING_IDENTITY ${LLDB_CODESIGN_IDENTITY})
34 # Use explicit LLVM identity or default to lldb_codesign if empty
35 if(NOT LLVM_CODESIGNING_IDENTITY)
36 set(LLVM_CODESIGNING_IDENTITY lldb_codesign)
41 add_lldb_tool(lldb-server
45 LLDBServerUtilities.cpp
46 SystemInitializerLLGS.cpp
53 lldbPluginInstructionARM
54 lldbPluginInstructionLoongArch
55 lldbPluginInstructionMIPS
56 lldbPluginInstructionMIPS64
57 lldbPluginInstructionRISCV
65 add_dependencies(lldb-server
69 target_include_directories(lldb-server PRIVATE "${LLDB_SOURCE_DIR}/source")
70 target_link_libraries(lldb-server PRIVATE ${LLDB_SYSTEM_LIBS})