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

convert rust build from qmake project to plain makefile #47800

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

jkarneges
Copy link
Member

This consolidates the src/rust/rust.pro and src/src.pro qmake projects into a simple hand-written makefile that forwards to cargo commands. Setting environment variable RELEASE=1 can be used to build in release mode. By default, the build is in debug mode.

The qmake project at the root is a basic subdirs project that runs make in src and postbuild, such that running make at the root will run in make in src which will run cargo build. This means make is now essentially an alias to cargo build, as there are no meaningful intermediate steps. If you don't need to run the postbuild steps (i.e. you only need to test compilation or run unit tests, but don't need to actually run pushpin) then using cargo commands directly should be sufficient.

@jkarneges jkarneges merged commit 5c0a42b into main Nov 27, 2023
1 check passed
@jkarneges jkarneges deleted the jkarneges/src-plain-makefile branch November 27, 2023 21:53
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

Successfully merging this pull request may close these issues.

2 participants