Open phaedon opened 4 months ago
Verified that this builds and runs successfully on at least Ubuntu (x86_64) and Mac OS (ARM).
Thanks for submitting this! I'm totally unfamiliar with Bazel, but it seems to be fairly widely used so it'd be nice to support.
One question: what is the maintenance requirement going forward to ensure this library continues to build well on Bazel? I'm quite wary of leaving behind stale/broken versions of the library on the long tail of various package repositories / build systems. Does it just mean updating the BUILD.bazel
as files are added? Would it make sense to also add a bazel build to geometry-central's CI matrix?
Also what is the .bazelrc
doing? Do we need to add an additional file to the project root?
Great suggestion, I added a bazel.yml
file to run the build and test stages on each PR.
The .bazelrc
specifies a couple of basic but important settings for build:
Just a reminder that this is ready to go in.
This PR adds support for Bazel, as an alternative to CMake (https://bazel.build/about/why)
To build:
bazel build ...
To run all unit tests:
bazel test ...
Next steps (after this is merged):
building.md
to document the one-liner required to pull this into any other Bazel-based project (which will look something likebazel_dep(name = "geometry_central", version = "0.2.0")
)