[Interest] Platform dependent *.qrc entries

Bernhard B schluchti at gmail.com
Tue Jan 3 21:31:52 CET 2017


Hi,

is it somehow possible to add a resource to the resources file (*.qrc)
depending on the targeted platform? I have a few resources that are only
needed on specific targets (e.q Android, iOS). Now I would like to make
sure that those resources are only added on the targeted platform (to
prevent that the executable gets to big). I know, that I can use different
*qrc files (depending on the targeted platform) and include them when
needed.

e.q:

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?

Thanks,
Bernhard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170103/b989c0f5/attachment.html>


More information about the Interest mailing list