-
Notifications
You must be signed in to change notification settings - Fork 241
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
Generate granular Bazel targets using module extension #1178
Comments
I'm not sure how feasible a Bazel generator in CMake actually is; as far as I know CMake doesn't have strict dependencies and so can't tell you for a given file what all the inputs should be and so I'm not sure you can reliably generate bazel files from a CMake project. Even if it is feasible, who would be the maintainer / owner of this code? It would have to live in the CMake codebase. I believe Conan used to have a bazel generator but I think its become unmaintained / removed from the latest version of Conan which suggests that there is a lack of appetite from the CMake side to maintain something like this. |
CMake does have strict dependencies (at least for source files) on a library target level. I would suggest to use the same granularity in the generated output. The CMake Bazel generator would also be suitable standalone. Of course all code has to be maintained by someone but this is independent from the repository it lives in. |
It would be great if Bazel toolchains could be used to run the actual build instead of building via make/ninja.
It could work the following way:
The extension would create and execute a repository rule to download the project and run CMake.
CMake would need an additional Bazel generator (in addition to Make/Ninja).
The text was updated successfully, but these errors were encountered: