[Qt-interest] conditional resource inclusion

pmqt71 pmqt71 at gmail.com
Wed Jan 12 21:31:48 CET 2011


My goal is to reduce the executable footprint for mobile platforms and
I was looking for a way to have only 1 resource file.
As it is not possible, I'm going to use more .qrc files with
conditional inclusion, for instance:

win32 {
RESOURCES += \
	win32.qrc
}

symbian {
RESOURCES += \
	symbian.qrc
}


thanks you all
pm






2011/1/12 Arnold Krille <arnold at arnoldarts.de>:
> 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
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>



More information about the Qt-interest-old mailing list