add_public_tablegen_target(LLDBOptionsTableGen)
if(APPLE)
+ configure_file(
+ ${CMAKE_CURRENT_SOURCE_DIR}/lldb-Info.plist.in
+ ${CMAKE_CURRENT_BINARY_DIR}/lldb-Info.plist
+ )
# Inline info plist in binary (use target_link_options for this as soon as CMake 3.13 is available)
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-sectcreate,__TEXT,__info_plist,${LLDB_SOURCE_DIR}/tools/driver/lldb-Info.plist")
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-sectcreate,__TEXT,__info_plist,${CMAKE_CURRENT_BINARY_DIR}/lldb-Info.plist")
endif()
add_lldb_tool(lldb
<key>CFBundleName</key>
<string>lldb</string>
<key>CFBundleVersion</key>
- <string>360.99.0</string>
+ <string>${LLDB_VERSION}</string>
<key>SecTaskAccess</key>
<array>
<string>allowed</string>
list(APPEND extra_libs pthread)
endif ()
+
+if(APPLE)
+ configure_file(
+ ${CMAKE_CURRENT_SOURCE_DIR}/lldb-vscode-Info.plist.in
+ ${CMAKE_CURRENT_BINARY_DIR}/lldb-vscode-Info.plist
+ )
+ # Inline info plist in binary (use target_link_options for this as soon as CMake 3.13 is available)
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-sectcreate,__TEXT,__info_plist,${CMAKE_CURRENT_BINARY_DIR}/lldb-vscode-Info.plist")
+endif()
+
# We need to include the llvm components we depend on manually, as liblldb does
# not re-export those.
set(LLVM_LINK_COMPONENTS Support)
<key>CFBundleName</key>
<string>lldb-vscode</string>
<key>CFBundleVersion</key>
- <string>360.99.0</string>
+ <string>${LLDB_VERSION}</string>
<key>SecTaskAccess</key>
<array>
<string>allowed</string>