qt5base-lts/mkspecs
Simon Hausmann be9a56e5e3 Make it easier to use resources in plugins when using static linking
RCC generates code that registers resources automatically on program
startup via global constructors. When linking statically and nothing
references the symbols in the .o file compiled from the RCC generated
code, then the linker will discard the embedded resources and they will
not get initialized. That is why for static linking it is necessary to
explicitly initialize resources using the Q_INIT_RESOURCE macro.

We can avoid the need for the explicit initialization in the context of
plugins that are statically linked into the application. resources.prf
can generate a .cpp file with a helper function that contains all the
Q_INIT_RESOURCE calls for all resources in the plugin. That helper
function in turn is injected into the plugin entry point, which in turn
is guaranteed to be included in the final binary.

Change-Id: If1abf9c85ef92935020af073b989c58c1ae6ca63
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2018-04-23 13:56:07 +00:00
..
aix-g++
aix-g++-64
android-clang Use optimize_size instead of duplicating similar logic 2018-04-14 17:23:25 +00:00
android-g++ Use optimize_size instead of duplicating similar logic 2018-04-14 17:23:25 +00:00
common Detect C standard and try using the most recent one (take 2) 2018-04-21 09:05:14 +00:00
cygwin-g++
darwin-g++ Stop including net/if.h from qplatformdefs.h 2017-10-08 06:41:24 +00:00
devices Add WFD_DEVICE_CLIENT_TYPE attribute for INTEGRITY S820Am ADP 2018-03-05 11:37:38 +00:00
dummy move all target spec handling to qmake-based configure system 2016-12-13 18:56:34 +00:00
features Make it easier to use resources in plugins when using static linking 2018-04-23 13:56:07 +00:00
freebsd-clang make mkspecs not mess up library and include search paths 2017-05-31 12:57:09 +00:00
freebsd-g++ make mkspecs not mess up library and include search paths 2017-05-31 12:57:09 +00:00
haiku-g++ Stop including net/if.h from qplatformdefs.h 2017-10-08 06:41:24 +00:00
hpuxi-g++-64 Stop including net/if.h from qplatformdefs.h 2017-10-08 06:41:24 +00:00
hurd-g++ Stop including net/if.h from qplatformdefs.h 2017-10-08 06:41:24 +00:00
integrity-armv7 mkspecs: Replace LGPL21 with LGPL license header 2017-03-03 07:26:43 +00:00
integrity-armv7-imx6 mkspecs: Replace LGPL21 with LGPL license header 2017-03-03 07:26:43 +00:00
integrity-armv8-rcar Fix license headers 2018-01-09 07:47:20 +00:00
integrity-x86 mkspecs: Replace LGPL21 with LGPL license header 2017-03-03 07:26:43 +00:00
linux-aarch64-gnu-g++ Add new mkspec for cross-compiling Qt5 for AArch64 2017-03-31 00:34:48 +00:00
linux-arm-gnueabi-g++
linux-clang Stop including net/if.h from qplatformdefs.h 2017-10-08 06:41:24 +00:00
linux-clang-libc++
linux-g++ Stop including net/if.h from qplatformdefs.h 2017-10-08 06:41:24 +00:00
linux-g++-32
linux-g++-64
linux-icc Merge remote-tracking branch 'origin/5.9' into dev 2017-08-31 14:31:31 +02:00
linux-icc-32
linux-icc-64
linux-icc-k1om linux-icc-k1om build 2017-02-21 14:27:16 +00:00
linux-llvm Stop including net/if.h from qplatformdefs.h 2017-10-08 06:41:24 +00:00
linux-lsb-g++ Stop including net/if.h from qplatformdefs.h 2017-10-08 06:41:24 +00:00
lynxos-g++ Stop including net/if.h from qplatformdefs.h 2017-10-08 06:41:24 +00:00
macx-clang Merge remote-tracking branch 'origin/5.11' into dev 2018-04-10 01:00:26 +02:00
macx-g++ macOS: Bump deployment target to 10.11 2018-02-11 17:02:31 +00:00
macx-icc macOS: Bump deployment target to 10.11 2018-02-11 17:02:31 +00:00
macx-ios-clang Rewrite the Info.plist variable replacement handling 2018-01-06 19:46:00 +00:00
macx-tvos-clang Rewrite the Info.plist variable replacement handling 2018-01-06 19:46:00 +00:00
macx-watchos-clang Rewrite the Info.plist variable replacement handling 2018-01-06 19:46:00 +00:00
macx-xcode Disable Xcode main thread checker by default 2017-11-07 14:53:59 +00:00
modules
netbsd-g++ make mkspecs not mess up library and include search paths 2017-05-31 12:57:09 +00:00
openbsd-g++ make mkspecs not mess up library and include search paths 2017-05-31 12:57:09 +00:00
qnx-aarch64le-qcc Enable stack-protector-strong for QNX 7.0.0 2017-06-13 14:01:24 +00:00
qnx-armle-v7-qcc Convert the old feature system 2016-09-15 08:24:10 +00:00
qnx-x86-64-qcc Enable stack-protector-strong for QNX 7.0.0 2017-06-13 14:01:24 +00:00
qnx-x86-qcc Convert the old feature system 2016-09-15 08:24:10 +00:00
solaris-cc Stop including net/if.h from qplatformdefs.h 2017-10-08 06:41:24 +00:00
solaris-cc-64 Stop including net/if.h from qplatformdefs.h 2017-10-08 06:41:24 +00:00
solaris-cc-64-stlport
solaris-cc-stlport
solaris-g++ Stop including net/if.h from qplatformdefs.h 2017-10-08 06:41:24 +00:00
solaris-g++-64 Stop including net/if.h from qplatformdefs.h 2017-10-08 06:41:24 +00:00
unsupported Stop including net/if.h from qplatformdefs.h 2017-10-08 06:41:24 +00:00
win32-clang-g++ mkspecs: Factorize common parts of win32-g++ and win32-clang-g++ 2018-02-21 18:08:01 +00:00
win32-clang-msvc unify windows mkspecs: define c++ flags explicitly 2018-02-22 18:45:15 +00:00
win32-g++ unify windows mkspecs: define c++ flags explicitly 2018-02-22 18:45:15 +00:00
win32-icc unify windows mkspecs: define c++ flags explicitly 2018-02-22 18:45:15 +00:00
win32-icc-k1om linux-icc-k1om build 2017-02-21 14:27:16 +00:00
win32-msvc unify windows mkspecs: define c++ flags explicitly 2018-02-22 18:45:15 +00:00
winrt-arm-msvc2015 Remove hard-coded MS compiler versions from the mkspecs 2016-12-23 13:45:26 +00:00
winrt-arm-msvc2017 winrt: Add arm mkspec for msvc 2017 2017-04-21 09:49:59 +00:00
winrt-x64-msvc2015 centralize QMAKE_COMPILER_DEFINES+=_WIN32 also for winrt specs 2016-12-30 10:25:11 +00:00
winrt-x64-msvc2017 winrt: Add support for Visual Studio 2017 2017-01-20 13:09:16 +00:00
winrt-x86-msvc2015 centralize QMAKE_COMPILER_DEFINES+=_WIN32 also for winrt specs 2016-12-30 10:25:11 +00:00
winrt-x86-msvc2017 winrt: Add support for Visual Studio 2017 2017-01-20 13:09:16 +00:00