winphone: Fixed font deployment for Visual Studio projects

Instead of collecting all files from the "fonts" directory to deploy
them to the phone, we only collect files which are mentioned in the
FONTS variable. Otherwise fonts that were copied to the fonts directory
earlier (due to FONTS being unset (default fonts) or set to another set
of fonts) will also be deployed as part of the project.

Change-Id: I24c77e154a9f2ec75e88d487c056b0be46e17e87
Reviewed-by: Andrew Knight <andrew.knight@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
Oliver Wolff 2014-04-25 08:26:12 +02:00 committed by The Qt Project
parent 68d83cabae
commit 379042b84c

View File

@ -54,7 +54,9 @@ if(!build_pass:equals(TEMPLATE, "vcapp")) {
}
!isEmpty(FONTS):winphone:equals(TEMPLATE, "vcapp"):build_pass {
fonts.files = $$OUT_PWD/fonts/*
for (FONT, FONTS) {
fonts.files += $$OUT_PWD/fonts/$$basename(FONT)
}
fonts.path = fonts
DEPLOYMENT += fonts
}