[Qt-interest] conditional resource inclusion
Yuvraaj Kelkar
yuvraaj at gmail.com
Wed Jan 12 18:42:02 CET 2011
I assume you want to reduce your binary footprint.
By splitting up your resource into 1. the parts specific to mobile, 2.
the parts specific to non mobile and 3. common to both, and then
conditionally compiling them into your binary, you'll have the
smallest footprint.
If it isn't about the footprint, then you need to explain what you're
trying to achieve.
On Wed, Jan 12, 2011 at 9:25 AM, pmqt71 <pmqt71 at gmail.com> 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.
>
>
>
> 2011/1/12 Constantin Makshin <cmakshin at gmail.com>
>>
>> Put those "mobile" resources to a separate .qrc file and add it to the
>> project using regular QMake conditionals. Something like this:
>>
>> RESOURCES = common_resources.qrc
>> symbian {
>> RESOURCES += symbian_resources.qrc
>> ...
>> }
>>
>> On Wednesday 12 January 2011 20:02:05 pmqt71 wrote:
>> > Hi all,
>> >
>> > my app has a mobile version that only uses a part of the resources
>> > defined
>> > in the .qrc file.
>> >
>> > is there a kind of #ifdef to use in the .qrc file?
>> > thanks
>> > pm
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at qt.nokia.com
>> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>>
>
>
> _______________________________________________
> 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