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

Added support for embedding qml resources into executables #48

Open
gemmarx opened this issue Jun 21, 2016 · 0 comments
Open

Added support for embedding qml resources into executables #48

gemmarx opened this issue Jun 21, 2016 · 0 comments

Comments

@gemmarx
Copy link

gemmarx commented Jun 21, 2016

It is ready to try in my fork repo.
This experimental hack has, however, been checked on an x86-64 linux box.
Would anyone help me to do more checks and support windows or mac osx etc.?

examples/factorial_qrc.rs gives an example of use.
After building of crate,

$ cd examples
$ make factorial_qrc
# or if you have built with --release option,
$ make BUILD_TYPE=release factorial_qrc
# An execution file will be made under /target .
$ ../target/debug/examples/factorial_qrc

Move the executable binary to anywhere you like, and it works stand-alone without qml files.

I can put this building process in build.rs for cargo, but I do not know how to switch conditions in the script with or without --example option.

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