Commit 8fd093e4 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

support specifying directories in RESOURCES


Change-Id: Ie97b26dd8ccf33d7f2a72bc6a5aec478b196ebb6
Reviewed-by: default avatarRainer Keller <rainer.keller@theqtcompany.com>
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
(cherry picked from commit 4b224816)
parent a43e7b4d
No related merge requests found
Showing with 9 additions and 3 deletions
......@@ -49,9 +49,15 @@ for(resource, RESOURCES) {
for(file, $${resource}.files) {
abs_path = $$absolute_path($$file, $$_PRO_FILE_PWD_)
alias = $$relative_path($$abs_path, $$abs_base)
resource_file_content += \
"<file alias=\"$$xml_escape($$alias)\">$$xml_escape($$abs_path)</file>"
files = $$files($$abs_path/*, true)
isEmpty(files): \
files = $$abs_path
for (file, files) {
exists($$file/*): next() # exclude directories
alias = $$relative_path($$file, $$abs_base)
resource_file_content += \
"<file alias=\"$$xml_escape($$alias)\">$$xml_escape($$file)</file>"
}
}
resource_file_content += \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment