-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Bazel protobuf and gtest #818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…github.com/google/protobuf/ as external dependency for protobuf
Following discussions in #819 (review), I changed WORKSPACE to use Google protobuf as the external dependency for protobuf. @reyoung @lipeng-unisound Please review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
# rules. This method comes from | ||
# https://github.com/pubref/rules_protobuf#usage. | ||
git_repository( | ||
name = "org_pubref_rules_protobuf", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
protobuf google官方有。
The whole plan about bazel build, see #792. @wangkuiyi We could edit the issue for every updates. |
@reyoung Good point. To keep each PR a reasonablly small size, I splitted the work "incorporate glog, gtest, gflags, protobuf" listed in #792 into two:
This PR fixes #816 . Since it incorporate gtest, someone else working on a PR fixing #822 can use gtest. |
.. code-block:: bash | ||
|
||
docker run \ | ||
-d # run the container in background mode \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The backslash continues the comments to next lines, thus makes the docker run
command wrong.
fix waybill data_dir; remove data files
Fixes #816
In this PR,
I initialize Bazel WORKSPACE file to declare an external dependency to https://github.com/pubref/rules_protobuf, which implements the Google-style protobuf building rules.
For more information please refer to this example repo: https://github.com/wangkuiyi/learn-bazel.
I also add a simple package in
/third_party/protobuf_test
to demonstrate using protobuf and gtest.I updated the
docker_install_en.rst
documents to show how we can develop using Docker and Bazel.Dear reviewers:
Please feel free to use Docker and Bazel to check this PR as described in my update to Docker document in this PR.