1 if ( CMAKE_SYSTEM_NAME MATCHES "Windows" OR CMAKE_SYSTEM_NAME MATCHES "NetBSD" )
2 list(APPEND extra_libs lldbHost)
6 list(APPEND extra_libs pthread)
12 ${CMAKE_CURRENT_SOURCE_DIR}/lldb-dap-Info.plist.in
13 ${CMAKE_CURRENT_BINARY_DIR}/lldb-dap-Info.plist
15 # Inline info plist in binary (use target_link_options for this as soon as CMake 3.13 is available)
16 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-sectcreate,__TEXT,__info_plist,${CMAKE_CURRENT_BINARY_DIR}/lldb-dap-Info.plist")
19 # We need to include the llvm components we depend on manually, as liblldb does
20 # not re-export those.
21 set(LLVM_LINK_COMPONENTS Support)
22 set(LLVM_TARGET_DEFINITIONS Options.td)
23 tablegen(LLVM Options.inc -gen-opt-parser-defs)
24 add_public_tablegen_target(LLDBDAPOptionsTableGen)
25 add_lldb_tool(lldb-dap
29 ExceptionBreakpoint.cpp
31 FunctionBreakpoint.cpp
51 if(LLDB_DAP_WELCOME_MESSAGE)
52 target_compile_definitions(lldb-dap
54 -DLLDB_DAP_WELCOME_MESSAGE=\"${LLDB_DAP_WELCOME_MESSAGE}\")
57 if(LLDB_BUILD_FRAMEWORK)
58 # In the build-tree, we know the exact path to the framework directory.
59 # The installed framework can be in different locations.
60 lldb_setup_rpaths(lldb-dap
62 "${LLDB_FRAMEWORK_ABSOLUTE_BUILD_DIR}"
64 "@loader_path/../../../SharedFrameworks"
65 "@loader_path/../../System/Library/PrivateFrameworks"
66 "@loader_path/../../Library/PrivateFrameworks"