Page MenuHomePhabricator

[Shared] Copy protos to shared/protos, adjust CMake
ClosedPublic

Authored by jon on Aug 31 2022, 10:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 18, 9:58 PM
Unknown Object (File)
Thu, May 16, 9:49 AM
Unknown Object (File)
Tue, May 14, 5:52 PM
Unknown Object (File)
Tue, May 14, 5:20 PM
Unknown Object (File)
Sun, May 12, 3:05 PM
Unknown Object (File)
Wed, May 8, 11:00 PM
Unknown Object (File)
Fri, May 3, 8:37 PM
Unknown Object (File)
Sun, Apr 28, 7:55 PM
Subscribers

Details

Summary

Initial move of protobuf files

The files are copied to the desired end state so that I can update the references in later revisions.

The CMakeLists.txt was pruned of the grpc client project.

https://linear.app/comm/issue/ENG-1231

Test Plan
nix develop
cd shared/protos
rm -rf build && mkdir build && cd build && cmake .. && make -j
# builds 4 grpc projects

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Update target_include_directory for downstream consumers

This revision is now accepted and ready to land.Aug 31 2022, 4:59 PM
karol added a reviewer: tomek.

You didn't move a thing, you doubled everything. Please, fix this revision.

shared/protos/_generated/.clang-format
4 ↗(On Diff #16134)

new line (I know it wasn't there but we can add it)

This revision now requires changes to proceed.Sep 1 2022, 1:52 AM

You didn't move a thing, you doubled everything. Please, fix this revision.

@karol please look at the stack, iOS, android, and 3 services (+ related docker files) all reference these files. I'm not going to move and FIX everything in one go. The final piece (not yet present, because I got blocked) in the stack will be to remove the old files.

  1. Ok, I understand, but then the diff title isn't valid. The diff title says explicitly "move" and yet you're not moving things, so maybe it should say "add"? If this is about to be addressed in the future, we should either have a diff for it or a task on linear and add a reference here.
  2. What about my inline comment? Has not been addressed.
This revision now requires changes to proceed.Sep 2 2022, 12:07 AM
jon retitled this revision from [Shared] Move protos to shared/protos to [Shared] Copy protos to shared/protos, adjust CMake.Sep 2 2022, 10:43 AM

Add new line, export cmake targets

Rebase on top of native/cpp changes

Should we update get_clang_paths.js to include shared?

What about this @jon

If this is about to be addressed in the future, we should either have a diff for it or a task on linear and add a reference here.

This revision is now accepted and ready to land.Sep 5 2022, 5:42 AM

or a task on linear and add a reference here.

Yea, that was my bad.