33 lines · plain
1set(LLVM_TARGET_DEFINITIONS Options.td)2tablegen(LLVM Options.inc -gen-opt-parser-defs)3add_public_tablegen_target(LLDBDAPOptionsTableGen)4 5add_lldb_tool(lldb-dap6 lldb-dap.cpp7 8 LINK_LIBS9 lldbDAP10 )11 12if(APPLE)13 configure_file(14 ${CMAKE_CURRENT_SOURCE_DIR}/lldb-dap-Info.plist.in15 ${CMAKE_CURRENT_BINARY_DIR}/lldb-dap-Info.plist16 )17 target_link_options(lldb-dap18 PRIVATE LINKER:-sectcreate,__TEXT,__info_plist,${CMAKE_CURRENT_BINARY_DIR}/lldb-dap-Info.plist)19endif()20 21if(LLDB_BUILD_FRAMEWORK)22 # In the build-tree, we know the exact path to the framework directory.23 # The installed framework can be in different locations.24 lldb_setup_rpaths(lldb-dap25 BUILD_RPATH26 "${LLDB_FRAMEWORK_ABSOLUTE_BUILD_DIR}"27 INSTALL_RPATH28 "@loader_path/../../../SharedFrameworks"29 "@loader_path/../../System/Library/PrivateFrameworks"30 "@loader_path/../../Library/PrivateFrameworks"31 )32endif()33