Skip to content
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

Directly support Bazel (and GN) for building instead of Cargo/build.rs #1977

Open
6 tasks
briansmith opened this issue Mar 1, 2024 · 0 comments
Open
6 tasks

Comments

@briansmith
Copy link
Owner

Recently we have refactored build.rs and related machinery to make it easier to support alternative build systems, in particular Bazel and GN. The most recent changes include:

The above are primarily intended to support the case where somebody has used cargo-vendor/Crate Universe/cargo-raze to bring in the assembly language source files pregenerated (and on Windows, preassembled) from PerlAsm, as done in mk/package.sh. With that in mind, I think the next step is to extend the pregeneration machinery to output Bazel BUILD and/or GN BUILD.gn files, in a way that minimizes the amount of manual BUILD file hacking by people after the fact, by building the generator for the build scripts in build.rs.

For Bazel, we could probably just generate BUILD during mk/package.sh and place it in the root, as I guess that's where people would need the BUILD file to be.

For GN, we could generate an BUILD.gn if an optional output path parameter to mk/package.sh is provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant