2019-01-16 08:24:22 +08:00
|
|
|
set(CLANGD_XPC_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
set(CLANGD_XPC_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}")
|
|
|
|
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
|
|
|
|
include(CreateClangdXPCFramework)
|
|
|
|
|
|
|
|
add_subdirectory(framework)
|
|
|
|
add_subdirectory(test-client)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../
|
|
|
|
)
|
|
|
|
|
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
Support
|
|
|
|
)
|
|
|
|
|
|
|
|
# Needed by LLVM's CMake checks because this file defines multiple targets.
|
|
|
|
set(LLVM_OPTIONAL_SOURCES Conversion.cpp XPCTransport.cpp)
|
|
|
|
|
|
|
|
add_clang_library(clangdXpcJsonConversions
|
|
|
|
Conversion.cpp
|
2019-02-27 10:37:44 +08:00
|
|
|
LINK_LIBS clangDaemon
|
2019-01-16 08:24:22 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
add_clang_library(clangdXpcTransport
|
|
|
|
XPCTransport.cpp
|
2019-02-27 10:37:44 +08:00
|
|
|
LINK_LIBS clangDaemon clangdXpcJsonConversions
|
2019-01-16 08:24:22 +08:00
|
|
|
)
|