[Qt-interest] conditional resource inclusion

Arnold Krille arnold at arnoldarts.de
Wed Jan 12 19:26:13 CET 2011


On Wednesday 12 January 2011 18:25:48 pmqt71 wrote:
> Ok, but
> 
> since 2 files will be compiled (correct?), both files will be linked in the
> executable? This is what I don't want.

Does it matter? The final executable will be the same. The paths in the 
resource-system will be the same.

There are actually three ways you can go:
1) one file with all resources (what you have now and want to drop)
2) one file with the resources for pc and one with resources for mobile. and 
only one is linked in the corresponding binary. disadvantage: you will 
probably have duplicates
3.1) one file with the resources for mobile+pc and one with the additional pc 
resources.
3.2) one file with the common resources, one for pc resources and one for 
mobile resources.

If the total number of actual resources is the same and the paths are the 
same, the result will be the same...

Have fun,

Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110112/200920bc/attachment.bin 


More information about the Qt-interest-old mailing list