[RISCV] Use RISCVSubtarget::is64Bit() instead of hasFeature(RISCV::Feature64Bit)...
[llvm-project.git] / clang-tools-extra / clangd / index / remote / CMakeLists.txt
blob28df71855a14214dbc099a993f76b68ecb56828d
1 if (CLANGD_ENABLE_REMOTE)
2   generate_clang_protos_library(clangdRemoteIndexProto "Index.proto")
3   generate_clang_protos_library(clangdMonitoringServiceProto "MonitoringService.proto"
4     GRPC)
5   generate_clang_protos_library(clangdRemoteIndexServiceProto "Service.proto"
6     DEPENDS "Index.proto"
7     GRPC)
8   # FIXME: Move this into generate_protos. Currently we only mention proto
9   # filename as a dependency, but linking requires target name.
10   target_link_libraries(clangdRemoteIndexServiceProto
11     PRIVATE
12     clangdRemoteIndexProto
13     clangdMonitoringServiceProto
14     )
15   include_directories(${CMAKE_CURRENT_BINARY_DIR})
17   # FIXME(kirillbobyrev): target_compile_definitions is not working with
18   # add_clang_library for some reason. Is there any way to make this
19   # target-local?
20   add_definitions(-DGOOGLE_PROTOBUF_NO_RTTI=1)
22   add_clang_library(clangdRemoteIndex STATIC
23     Client.cpp
25     LINK_LIBS
26     clangdRemoteIndexProto
27     clangdRemoteIndexServiceProto
28     clangdRemoteMarshalling
29     clangDaemon
30     clangdSupport
32     DEPENDS
33     clangdRemoteIndexProto
34     clangdRemoteIndexServiceProto
35     )
37   clang_target_link_libraries(clangdRemoteIndex
38     PRIVATE
39     clangBasic
40     )
42   add_subdirectory(marshalling)
43   add_subdirectory(server)
44   add_subdirectory(monitor)
45 else()
46   # Provides a no-op implementation of clangdRemoteIndex.
47   add_subdirectory(unimplemented)
48 endif()