qt5base-lts/tests/auto/tools
hjk 5395180fcb Make RCC handle bigger binaries
Traditionally, RCC in "C mode" was meant to bundle small resources into
a binary, like help texts or an occasional icon. RCC produces a .cpp
file containing the actual data in a char array which is then passed
to the compiler and linker as a normal source file. Larger resources
should be compiled in RCC's binary mode and loaded at run time.

Current Qt Quick use tries to deploy large hunks of data in "C mode",
causing heavy compiler/system load.

This patch works around the issue by splitting the process into
three parts:

1. Create a C++ skeleton, as usual, but use a placeholder array
   with "easily compilable" (mostly NULs) data instead.
2. Compile the skeleton file.
3. Replace the placeholder data with the real binary data.

time (qmake5 ; make clean ; make) takes 1.3 s real time for a
100 MB resource here, and there is still room for improving patching
performance if really needed.

Change-Id: I10a1645fd86a95a7d5663c89e19b05cb3b43ed1b
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
2014-06-06 15:41:00 +02:00
..
moc Mark each QT_MOC_LITERAL usage with a comment 2014-04-15 14:55:20 +02:00
qdbuscpp2xml Test that Qt tools can handle ' as a digit separator. 2013-10-30 09:44:07 +01:00
qdbusxml2cpp
qmake Add JSON parsing support to qmake. 2013-10-17 08:07:25 +02:00
rcc Make RCC handle bigger binaries 2014-06-06 15:41:00 +02:00
uic uic: Accept an -include argument to generate a #include. 2013-11-11 15:56:52 +01:00
tools.pro test: Disable tst_uic when -no-widgets is used 2013-04-22 16:24:44 +02:00