You can't do what you want from a work-flow perspective.
You need to be given/provide a list of files to provide, broken down in to common and platform-specific dirs. You need to specify the filenames, and refer to them in code. Potentially, you can provide the QRC in each platform directory since that lists the files. Then write a script to verify that the directory contents match the QRC. Otherewise, there is nothing short of a compiler error that lets you know what they need to provide.
Sent: Wednesday, January 04, 2017 at 12:13 AM
From: "Rainer Wiesenfarth" <rainer_wiesenfa...@trimble.com>
To: No recipient address
Cc: interest@qt-project.org
Subject: Re: [Interest] Platform dependent *.qrc entries
From: "Rainer Wiesenfarth" <rainer_wiesenfa...@trimble.com>
To: No recipient address
Cc: interest@qt-project.org
Subject: Re: [Interest] Platform dependent *.qrc entries
On terça-feira, 3 de janeiro de 2017 21:31:52 BRST Bernhard B wrote:
> android{
> RESOURCES += android.qrc
> }
>
> ios{
> RESOURCES += ios.qrc
> }
>
> But as most of the resources are shared between all targets, keeping those
> resource files in sync is really difficult. Is there a possibility to use
> just one *.qrc file and specify platform dependent entries in a different
> way?
Why don't you use three resources?
RESOURCES += common.qrc
android: RESOURCES += android.qrc
ios: RESOURCES += ios.qrc
Probably as this does not make it obvious for a developer that she has to add a version of a platform dependent resource to _all_ platform resource files?
Software Engineer | Trimble Imaging Division
Rotebühlstraße 81 | 70178 Stuttgart | Germany
Office +49 711 22881 0 | Fax +49 711 22881 11
http://www.trimble.com/imaging/ | http://www.inpho.de/
Trimble Germany GmbH, Am Prime Parc 11, 65479 Raunheim
Eingetragen beim Amtsgericht Darmstadt unter HRB 83893,
Geschäftsführer: Dr. Frank Heimberg, Jürgen Kesper
Rotebühlstraße 81 | 70178 Stuttgart | Germany
Office +49 711 22881 0 | Fax +49 711 22881 11
http://www.trimble.com/imaging/ | http://www.inpho.de/
Trimble Germany GmbH, Am Prime Parc 11, 65479 Raunheim
Eingetragen beim Amtsgericht Darmstadt unter HRB 83893,
Geschäftsführer: Dr. Frank Heimberg, Jürgen Kesper
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest