This patch allows using installed gRPC to build two simple tools which
currently provide the functionality of looking up the symbol by name.
remote-index-client is a simplified version of dexp which connects to
remote-index-server passes lookup requests.
I also significantly reduced the scope of this patch to prevent large changelist
and more bugs. The next steps would be:
- Extending Protocol for deep copies of Symbol and inherit RemoteIndex from Index to unify the interfaces
- Make remote-index-server more generic and merge the remote index client with dexp
- Modify Clangd to allow using remote index instead of the local one for all global index requests
can you somewhere (shared/README.md?) write down how to get the build working on at least one platform?
e.g.
But looking at the find_package line I have a sneaking suspicion that "installed" doesn't mean what I think it does. My grpc++ package didn't come with any cmake files. It has headers and static libraries though...
I was able to get this to build by:
This seems pretty reasonable (more so than requiring everyone to check out grpc and build from source), we're just missing the detection logic. Unless grpc provides a cmake recipe that discovers the system-installed (i.e. package manager) grpc, maybe we need to write this detection.