qt5base-lts/mkspecs/features
Richard Moe Gustavsen 826b09f0c5 Fix build of static plugins with resources
This patch reverts 388c4ef9f7. The reason is that it generates a symbol
(resource_init_function) based on the name of the pro-file. But if different
plugins are built from a pro-file with the same name, you end up linking in
many symbols with the same name as well. Which one that ends up being used at
runtime will typically depend on the linking order of the plugins.

This problem will happen if you build an app for iOS that uses both controls 1
and controls 2. In that case, both QML plugins are built from a "controls.pro"
file. At runtime, only one of the plugins will be imported correctly.

This patch therefore reverts 388c4ef9f7, but at the same time, to not
re-introduce the problem it fixed, we instead genereate both a debug and release
version of the plugin_resources.cpp file. That way we can still depend on the
TARGET variable for generating both the resource_init_function symbol and the
cpp file.

Fixes: QTBUG-62647
Fixes: QTBUG-71386
Fixes: QTBUG-72108
Change-Id: I3d8c53132458b30ed9f47a259f1f8e4fa4d44130
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
2018-12-10 12:18:52 +00:00
..
android Android: Prepare for the worst, when the NDK will remove all GNU tools 2018-11-19 11:45:20 +00:00
data macOS: Fix Objective-C namespaceing with Xcode 10 2018-12-03 20:13:13 +00:00
mac Add makefile target to generate Xcode project 2018-11-20 19:51:25 +00:00
uikit Remove codepaths and checks for unsupported Apple platforms 2018-08-31 12:35:45 +00:00
unix macOS: Don't try to install lldb debug script unless the module provides one 2018-07-20 06:40:05 +00:00
wasm WebAssembly: Fix compilation of application on Windows host 2018-12-03 08:48:28 +00:00
win32 Fix VS project generation for ActiveQt server projects 2017-05-23 06:56:47 +00:00
winrt Remove duplicated documentation from package_manifest.prf 2018-11-22 05:59:41 +00:00
benchmark.prf
build_pass.prf
cmake_functions.prf
configure_base.prf configure: cache test output as well 2018-04-10 18:51:13 +00:00
configure.prf
create_cmake.prf Do emit CMake declarations for existing private headers 2018-04-27 06:43:11 +00:00
ctest_testcase_common.prf ctest: Make cmake test pass if it has been run before 2018-11-30 11:30:13 +00:00
ctest_testcase_installed.prf
ctest_testcase.prf
dbusadaptors.prf
dbuscommon.pri
dbusinterfaces.prf
declarative_debug.prf
default_post.prf qmake: Add support for CONFIG += c++17 2018-10-15 06:47:42 +00:00
default_pre.prf qmake: skip license check while building qt 2018-07-20 18:07:48 +00:00
designer_defines.prf
device_config.prf
egl.prf
exceptions_off.prf
exceptions.prf
exclusive_builds_post.prf
exclusive_builds.prf qmake: Add support for running lrelease 2018-07-28 14:43:28 +00:00
file_copies.prf Simplify built-in qmake install command 2017-05-04 09:40:48 +00:00
gc_binaries.prf Make the use of -fdata-sections and --gc-sections more generic in Qt 2018-04-27 06:47:35 +00:00
gcov.prf
include_source_dir.prf
incredibuild_xge.prf
java.prf Android: remove support for local/debug deployment 2017-09-06 18:21:02 +00:00
lex.prf
link_ltcg.prf Support different job counts also for ICC LTO 2017-04-07 17:45:04 +00:00
link_pkgconfig.prf
lrelease.prf qmake: Add support for running lrelease 2018-07-28 14:43:28 +00:00
ltcg.prf
moc.prf Fix moc warnings with no_include_pwd and shadow builds 2018-06-25 07:20:46 +00:00
no_debug_info.prf
plugin_bundle.prf
precompile_header.prf
qgltf.prf
qlalr.prf
qmake_use.prf add support for transitive deps to QMAKE_USE 2018-12-07 23:48:11 +00:00
qml_debug.prf
qml_module.prf Remove support for qml1 plugins and modules 2018-11-15 19:52:13 +00:00
qml_plugin.prf Remove support for qml1 plugins and modules 2018-11-15 19:52:13 +00:00
qmltestcase.prf iOS: Allow building QML based test cases 2018-04-18 12:19:31 +00:00
qt_android_deps.prf
qt_app.prf Make the use of -fdata-sections and --gc-sections more generic in Qt 2018-04-27 06:47:35 +00:00
qt_build_config.prf qmake: Add support for running lrelease 2018-07-28 14:43:28 +00:00
qt_build_extra.prf
qt_build_paths.prf syncqt: fix forwarding injected headers, take ~3 2018-09-12 06:53:02 +00:00
qt_clear_installs.prf
qt_common.prf GCC: Disable the -Wmissing-field-initializers in GCC 4 2018-06-18 01:51:37 +00:00
qt_config.prf stop exporting QT.*.{libexecs,plugins,imports,qml} in module pris 2017-02-06 16:33:25 +00:00
qt_configure.prf add support for transitive deps to QMAKE_USE 2018-12-07 23:48:11 +00:00
qt_docs_targets.prf
qt_docs.prf Pass the include paths to qdoc 2017-12-08 17:50:11 +00:00
qt_example_installs.prf fix installation of resources for example sources 2018-02-21 16:32:49 +00:00
qt_functions.prf Qmake: Introduce and use QMAKE_{SYSTEM,SHELL}_NULL_DEVICE variable, take 2 2017-10-13 13:32:36 +00:00
qt_helper_lib.prf add support for transitive deps to QMAKE_USE 2018-12-07 23:48:11 +00:00
qt_installs.prf rework syncqt interaction regarding cross-tree paths 2018-04-12 15:42:59 +00:00
qt_module_headers.prf syncqt: fix forwarding injected headers, take ~3 2018-09-12 06:53:02 +00:00
qt_module_pris.prf add support for transitive deps to QMAKE_USE 2018-12-07 23:48:11 +00:00
qt_module.prf make it possible to override the basename of module config files 2018-08-03 14:15:41 +00:00
qt_parts.prf nuke {tests,examples}_need_tools flags 2018-05-30 10:57:45 +00:00
qt_plugin.prf Make sure MODULE is set even when we are not creating a pri file 2018-06-11 14:52:12 +00:00
qt_targets.prf Bump copyright year in executable metadata 2018-10-12 09:36:21 +00:00
qt_test_helper.prf Add qt_test_helper feature 2018-07-25 05:17:47 +00:00
qt_tool.prf Windows: Automatically set metadata for all Qt apps 2017-07-31 06:19:06 +00:00
qt_tracepoints.prf Support for LTTNG and ETW tracing 2018-01-28 19:17:02 +00:00
qt.prf macOS: Don't link to debug versions of frameworks unless requested 2018-11-27 07:53:42 +00:00
resolve_config.prf
resolve_target.prf Merge remote-tracking branch 'origin/5.8' into dev 2017-01-25 20:06:06 +01:00
resources.prf Fix build of static plugins with resources 2018-12-10 12:18:52 +00:00
sanitizer.prf
silent.prf Fix CONFIG+=silent for MSVC non-inference rules 2017-07-14 18:49:56 +00:00
simd.prf SIMD: Add a haswell sub-architecture selection to our support 2018-07-09 00:18:24 +00:00
spec_post.prf Qmake: Introduce and use QMAKE_{SYSTEM,SHELL}_NULL_DEVICE variable, take 2 2017-10-13 13:32:36 +00:00
spec_pre.prf
static_runtime.prf qmake: Remove the extra space before -MT 2018-10-17 19:06:24 +00:00
testcase_targets.prf
testcase.prf macOS: Don't link to debug versions of frameworks unless requested 2018-11-27 07:53:42 +00:00
testcocoon.prf
testlib_defines.prf
toolchain.prf qmake: fix QMAKE_DEFAULT_LIBDIRS detection for android on windows 2018-12-07 23:47:45 +00:00
uic.prf qmake: add line-based mode for .depend_commands 2018-07-23 17:39:21 +00:00
use_c_linker.prf
vxworks.prf
warn_off.prf
warn_on.prf
wayland-scanner.prf Fix QtWayland non-toplevel in-source builds 2018-06-27 18:58:41 +00:00
xctest.prf Allow using Xcode Command Line Tools to build Qt 2017-06-29 02:00:12 +00:00
yacc.prf