(Fixes cross compilation) Default to using glib-compile-resources bin before using glib_build_tools crate #1223
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…ary as the default option and fallback to glib_build_tools
make the glib_build_tools crate optional which is used only when target == host
If cross compiling and glib-compile-resources(a linux binary from glib dev package) is not found then glib_build_tools will be skipped and instead an error telling the user to install the glib dev tools will be outputted
If compiling natively, then it'll proceed to first try using glib-compile-resources and if that fails, it'll fallback to the glib_build_tools crate
This is necessary, otherwise this error will get spout by crates/rnote-ui/build.rs when cross compiling