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

Files inside qrc should be included in cargo:rerun-if-changed #469

Closed
ahayzen-kdab opened this issue Mar 9, 2023 · 0 comments · Fixed by #475
Closed

Files inside qrc should be included in cargo:rerun-if-changed #469

ahayzen-kdab opened this issue Mar 9, 2023 · 0 comments · Fixed by #475
Assignees
Labels
🪲 bug Something isn't working

Comments

@ahayzen-kdab
Copy link
Collaborator

ahayzen-kdab commented Mar 9, 2023

I have a Cargo only Rust project in which i use .qrc("src/qml/qml.qrc") this works great. However if i'm iterating on the QML files within the qrc file when i run cargo run -p project it doesn't recompile the Qt resources.

It appears that if .qrc file is specified in the build script we need to parse the XML (or as rcc to list the absolute paths, is that possible?) and add them to the cargo:rerun-if-changed

Note that there is rcc --list which may help us here ?

@ahayzen-kdab ahayzen-kdab added the 🪲 bug Something isn't working label Mar 9, 2023
@ahayzen-kdab ahayzen-kdab self-assigned this Mar 13, 2023
ahayzen-kdab added a commit to ahayzen-kdab/cxx-qt that referenced this issue Mar 13, 2023
ahayzen-kdab added a commit to ahayzen-kdab/cxx-qt that referenced this issue Mar 14, 2023
ahayzen-kdab added a commit to ahayzen-kdab/cxx-qt that referenced this issue Mar 14, 2023
Be-ing pushed a commit to ahayzen-kdab/cxx-qt that referenced this issue Mar 15, 2023
ahayzen-kdab added a commit to ahayzen-kdab/cxx-qt that referenced this issue Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant