[Interest] Very large QRC file
André Pönitz
apoenitz at t-online.de
Fri Mar 25 12:29:47 CET 2016
On Wed, Mar 23, 2016 at 09:49:41PM +0000, Scott Aron Bloom wrote:
> >
> > CONFIG += resources_big
>
>
> Nice. Since 5.4. Never knew. "Just works". Thanks!
> ========
>
> What does this flag do?
It replaces the creation of a big .cpp with a char[] containing the data
by two passes, first creating a .cpp with an empty array of the final
size and a second pass that patches the .o file to have the proper
contents.
> Is there an equivalent flag for CMake???
I am not aware of such. But you should be able to use the feature
nevertheless by replacing the monolithic rcc build step by
suitable rcc -pass 1 ... and rcc -pass 2 ... steps, similar to
what mkspecs/features/resources.prf does around line 100.
Andre'
More information about the Interest
mailing list