[Qt-qml] Tool to pack / minify content of QML files ?
Gregory Schlomoff
gregory.schlomoff at gmail.com
Sat Jan 8 08:51:54 CET 2011
> You can use PRE_TARGETDEPS var in your .pro file to pre-process the
> qml files before the resource is generated.
I was looking for something like that, but haven't found how I can use
PRE_TARGETDEPS. The doc says only: "All libraries that the target
depends on can be listed in this variable." But QML files aren't
libraries, are they?
Would you have a small example to show how I can use this variable in
a .pro file to pre-process .qml files with an external tool?
Thanks,
Greg
On Wed, Jan 5, 2011 at 9:41 PM, Adriano Rezende
<adriano.rezende at openbossa.org> wrote:
> On Mon, Jan 3, 2011 at 6:37 AM, Gregory Schlomoff
> <gregory.schlomoff at gmail.com> wrote:
>>>Why not do the compression once when you do the final build of your app?
>>
>> This is an option, indeed, but it is critical for us to have a
>> one-command build step. We don't want to have to remember to run such
>> a tool before each release build. So we would need a tool that
>> integrates into the qmake build process, and after looking quickly at
>> the problem, it became apparent that we would have to do things like
>> parsing the .qrc file, etc... Which is why we thought it belonged to
>> rcc.
>
> In my opnion rcc should be agnostic regarding qml file types.
> You can use PRE_TARGETDEPS var in your .pro file to pre-process the
> qml files before the resource is generated.
>
> Br,
> Adriano
>
More information about the Qt-qml
mailing list