HomePhabricator
Diffusion Comm 43d3a7ce907a

[CMake] Generate protobuf headers as part of build

Description

[CMake] Generate protobuf headers as part of build

Summary:
Generate the protobuf C++ files and also produce phabricator
compatible headers as well.

Test Plan:

nix develop

cd native/cpp/CommonCpp/grpc/
rm -rf build
mkdir build
cd build
cmake ..
make -j # do initial build

# somehow modify the files
touch ../protos/blob.proto
make -j # assert that only blob is being rebuilt

# assert that no files have changed
git status

# assert that build is idempotent
make -j

Reviewers: atul, max, karol

Reviewed By: atul, max

Subscribers: ashoat, tomek, adrian, abosh

Differential Revision: https://phab.comm.dev/D4774

Details

Provenance
jonAuthored on Aug 8 2022, 9:21 AM
Reviewer
atul
Differential Revision
D4774: [CMake] Generate protobuf headers as part of build
Parents
rCOMM7a92534795e0: [web] Use threadInfo.uiName for child chat modals
Branches
Unknown
Tags
Unknown