qt5base-lts/mkspecs/features
Richard Moe Gustavsen 42e6801843 iOS (OSX): rework how to bundle QML import folders
Before this patch, we would copy "$QTDIR/qml"
directly into the bundle as "qml". This would cause problems
if the user also tried to deploy qml files to a "qml" folder, or
if any other file in the bundle ended up with the name "qml" (which is the
case for QtDeclarative/tools/qml, where the executable is called "qml").

This patch will instead copy the contents of each import folder
into QMAKE_QML_BUNDLE_PATH, which will default to "qt_qml" on iOS
and "Resources/qt_qml" on OSX.

We also change the implementation to use a post script rather
then QMAKE_BUNDLE_DATA for two reasons:
1. Xcode does not like "copy build phases" to copy folders, only
    files (You cannot even create such a phase from Xcode, although
    it is possible to force it the way we create project.pbx. But
    this was error prone)
2. We need to strip away unneeded files from the bundle, like
    archives (which are linked in statically, not dlopened run-time).
    Using rsync lets us copy and strip in one operation.

Change-Id: I7c2117f6cfbe11efdc272dff71adb0b1e619a5ff
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
2013-10-25 12:32:31 +02:00
..
android Android: Remove support for QMAKE_SUPPORTED_ORIENTATIONS 2013-10-18 20:04:24 +02:00
data CMake: Ensure that the EXECUTABLE_COMPILE_FLAGS list exists 2013-10-24 20:20:59 +02:00
mac Xcode: Dynamically choose release/debug libs based on current configuration 2013-10-16 19:33:15 +02:00
qpa Hide Harfbuzz from the outer world 2013-03-13 14:46:26 +01:00
unix don't load wayland-scanner for all projects on linux 2013-10-22 12:15:57 +02:00
win32 ANGLE: Fix static build. 2013-02-25 10:34:11 +01:00
build_pass.prf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
c++11.prf Enable C++11 on OSX when using Clang 2013-04-05 14:23:23 +02:00
cmake_functions.prf Move the cmakeRelativePath function to cmake_functions. 2013-07-24 11:54:18 +02:00
configure.prf iOS: Wrap Xcode projects in Makefile for convenience and subdirs support 2013-08-13 01:38:54 +02:00
create_cmake.prf make better use of $$MODULE_PLUGIN_TYPES 2013-10-24 20:20:59 +02:00
ctest_testcase_common.prf Use the compilers used by Qt for the CMake tests. 2013-07-19 12:32:14 +02:00
ctest_testcase_installed.prf Only run the cmake test in the install location if not already done. 2013-07-15 21:56:51 +02:00
ctest_testcase.prf Always use forward slashes in paths passed to cmake. 2013-07-10 13:05:01 +02:00
dbusadaptors.prf de-duplicate dbusadaptors.prf vs. dbusinterfaces.prf 2012-08-04 00:52:38 +02:00
dbuscommon.pri Give the extra compiler a unique name for the vcproj generation 2013-08-20 06:35:04 +02:00
dbusinterfaces.prf de-duplicate dbusadaptors.prf vs. dbusinterfaces.prf 2012-08-04 00:52:38 +02:00
declarative_debug.prf Rename quick1_debug back to declarative_debug 2012-10-04 03:03:00 +02:00
default_post.prf qmake: Centralize TARGET sanitization in default_post.prf 2013-10-11 18:47:27 +02:00
default_pre.prf remove some unnecessary CONFIG additions 2012-12-17 14:08:17 +01:00
designer_defines.prf dispose of library-bound feature files 2012-06-19 16:39:52 +02:00
device_config.prf add some docu about the project loading sequence 2012-12-13 09:10:45 +01:00
egl.prf use pkg-config supplied CFLAGS when building with EGL 2013-10-16 17:10:15 +02:00
exceptions_off.prf turn off exceptions by default where they aren't required 2012-05-17 05:14:26 +02:00
exceptions.prf turn off exceptions by default where they aren't required 2012-05-17 05:14:26 +02:00
exclusive_builds.prf Include PRECOMPILED_DIR in dirs fixed by fixExclusiveOutputDirs() 2013-04-03 18:04:37 +02:00
gcov.prf Integrate gcov support into Qt build system. 2013-08-07 13:38:07 +02:00
include_source_dir.prf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
incredibuild_xge.prf remove pointless conditionals+branches 2012-09-19 19:54:44 +02:00
java.prf Android: Build against new build tools revisions 2013-10-04 14:46:16 +02:00
lex.prf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
link_pkgconfig.prf add support for PKGCONFIG_PRIVATE 2012-08-07 16:40:07 +02:00
moc.prf Fix whitespace issues in *.prf 2013-03-22 19:52:26 +01:00
no_debug_info.prf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
opengles1.prf Add a new qmake feature to support OpenGL ES 1 apps 2012-02-28 22:35:24 +01:00
qml1_module.prf mark a bunch of features as internal 2012-12-12 21:48:02 +01:00
qml1_plugin.prf mark a bunch of features as internal 2012-12-12 21:48:02 +01:00
qml_debug.prf Rename the 'declarative debug support' to 'qml debug support' 2012-03-31 16:33:04 +02:00
qml_module.prf broaden the effect of CONFIG+=force_independent somewhat 2013-03-15 18:02:09 +01:00
qml_plugin.prf qml_plugin.prf: moc plugin with -Muri=$$TARGETPATH 2013-10-11 21:01:27 +02:00
qmltestcase.prf Distinguish between 'mac' and 'macx' qmake scopes 2013-03-05 20:59:45 +01:00
qt_android_deps.prf use correct variable for library base path 2013-06-10 21:12:20 +02:00
qt_app.prf split qt_app.prf out of qt_tool.prf 2013-04-26 19:15:25 +02:00
qt_build_config.prf groundwork for making "configure -nomake tools" sane 2013-04-26 19:15:17 +02:00
qt_build_paths.prf reshuffle path setup 2013-06-10 21:12:24 +02:00
qt_common.prf Android: Never error out on literal-suffix warning 2013-09-20 23:45:06 +02:00
qt_config.prf de-duplicate QT_MODULES 2013-10-23 13:43:27 +02:00
qt_docs_targets.prf mark a bunch of features as internal 2012-12-12 21:48:02 +01:00
qt_docs.prf Merge branch 'stable' into dev 2013-07-11 16:42:01 +02:00
qt_example_installs.prf add -compile-examples configure option 2013-05-26 10:09:58 +02:00
qt_functions.prf rewrite handling of private modules 2013-10-24 20:20:59 +02:00
qt_headersclean.prf headersclean: process private modules correctly 2013-07-03 15:31:13 +02:00
qt_installs.prf rewrite handling of private modules 2013-10-24 20:20:59 +02:00
qt_module_headers.prf reshuffle path setup 2013-06-10 21:12:24 +02:00
qt_module_pris.prf make better use of $$MODULE_PLUGIN_TYPES 2013-10-24 20:20:59 +02:00
qt_module.prf rewrite handling of private modules 2013-10-24 20:20:59 +02:00
qt_parts.prf make src/ subdir optional 2013-04-26 19:15:21 +02:00
qt_plugin.prf Teach CMake about Qt 5 plugins. 2013-09-10 14:38:18 +02:00
qt_targets.prf Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qt_tool.prf rewrite handling of private modules 2013-10-24 20:20:59 +02:00
qt.prf iOS (OSX): rework how to bundle QML import folders 2013-10-25 12:32:31 +02:00
resolve_config.prf Xcode: Dynamically choose release/debug libs based on current configuration 2013-10-16 19:33:15 +02:00
resolve_target.prf Distinguish between 'mac' and 'macx' qmake scopes 2013-03-05 20:59:45 +01:00
resources.prf fix rcc & uic .depend_commands 2013-06-15 21:39:34 +02:00
silent.prf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
simd.prf WinRT: Basic global support 2013-09-20 13:53:59 +02:00
spec_post.prf Add osx and darwin scopes to qmake. 2013-07-11 18:26:45 +02:00
spec_pre.prf add some docu about the project loading sequence 2012-12-13 09:10:45 +01:00
testcase_targets.prf factor out testcase_targets.prf 2012-12-03 15:56:28 +01:00
testcase.prf qmake: Centralize TARGET sanitization in default_post.prf 2013-10-11 18:47:27 +02:00
testcocoon.prf fix host vs. makefile directory separator mess 2012-07-28 00:09:45 +02:00
testlib_defines.prf auto-generate module pris 2012-06-19 16:40:06 +02:00
uic.prf fix rcc & uic .depend_commands 2013-06-15 21:39:34 +02:00
use_c_linker.prf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
vxworks.prf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
warn_off.prf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
warn_on.prf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
wayland-scanner.prf Fix wayland-scanner to work with CONFIG+=silent 2013-07-20 15:54:27 +02:00
yacc.prf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00