brintos

brintos / llvm-project-archived public Read only

0
0
Text · 884 B · 5f61a19 Raw
35 lines · plain
1add_lldb_tool(lldb-mcp2  lldb-mcp.cpp3 4  LINK_COMPONENTS5    Option6    Support7  LINK_LIBS8    liblldb9    lldbInitialization10    lldbHost11    lldbProtocolMCP12  )13 14if(APPLE)15  configure_file(16    ${CMAKE_CURRENT_SOURCE_DIR}/lldb-mcp-Info.plist.in17    ${CMAKE_CURRENT_BINARY_DIR}/lldb-mcp-Info.plist18    )19  target_link_options(lldb-mcp20    PRIVATE LINKER:-sectcreate,__TEXT,__info_plist,${CMAKE_CURRENT_BINARY_DIR}/lldb-mcp-Info.plist)21endif()22 23if(LLDB_BUILD_FRAMEWORK)24  # In the build-tree, we know the exact path to the framework directory.25  # The installed framework can be in different locations.26  lldb_setup_rpaths(lldb-mcp27    BUILD_RPATH28      "${LLDB_FRAMEWORK_ABSOLUTE_BUILD_DIR}"29    INSTALL_RPATH30      "@loader_path/../../../SharedFrameworks"31      "@loader_path/../../System/Library/PrivateFrameworks"32      "@loader_path/../../Library/PrivateFrameworks"33  )34endif()35