fix the determination whether to build a module as a framework
CONFIG+=qt_framework is actually put into qconfig.pri, so it's always
set in framework builds. things (sometimes) worked only by virtue of the
qt_framework checks being in "else" branches of "static" checks. use
lib_bundle instead, which triggers the actual framework build anyway.
amends b72d1db44
.
Change-Id: Ib725c43476d9fb38bad940ce09905d29ff3edfa3
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
This commit is contained in:
parent
dc3e7e45eb
commit
2e6754d942
@ -43,7 +43,7 @@ host_build {
|
||||
}
|
||||
|
||||
mac:CONFIG(shared, static|shared):contains(QT_CONFIG, qt_framework): \
|
||||
CONFIG += qt_framework
|
||||
CONFIG += lib_bundle
|
||||
|
||||
CONFIG += relative_qt_rpath # Qt libraries should be relocatable
|
||||
|
||||
@ -106,7 +106,7 @@ else: \
|
||||
DEFINES += QT_BUILD_$${ucmodule}_LIB
|
||||
|
||||
# OS X and iOS frameworks
|
||||
qt_framework {
|
||||
lib_bundle {
|
||||
# Set the CFBundleIdentifier prefix for Qt frameworks
|
||||
QMAKE_TARGET_BUNDLE_PREFIX = org.qt-project
|
||||
#QMAKE_FRAMEWORK_VERSION = 4.0
|
||||
@ -115,8 +115,6 @@ qt_framework {
|
||||
CONFIG += bundle
|
||||
QMAKE_BUNDLE_EXTENSION = .framework
|
||||
QMAKE_INFO_PLIST = $$QMAKESPEC/Info.plist.lib
|
||||
} else {
|
||||
CONFIG += lib_bundle
|
||||
}
|
||||
CONFIG -= qt_install_headers #no need to install these as well
|
||||
!debug_and_release|!build_all|CONFIG(release, debug|release) {
|
||||
@ -239,7 +237,7 @@ load(qt_installs)
|
||||
load(qt_targets)
|
||||
|
||||
# this builds on top of qt_common
|
||||
!internal_module:!qt_framework:if(unix|mingw) {
|
||||
!internal_module:!lib_bundle:if(unix|mingw) {
|
||||
CONFIG += create_pc
|
||||
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
|
||||
host_build: \
|
||||
|
@ -55,7 +55,7 @@ MODULE_FWD_PRI = $$mod_work_pfx/qt_lib_$${MODULE_ID}.pri
|
||||
module_rundep =
|
||||
static: \
|
||||
module_build_type = staticlib
|
||||
else: qt_framework: \
|
||||
else: lib_bundle: \
|
||||
module_build_type = lib_bundle
|
||||
else: \
|
||||
module_build_type =
|
||||
|
Loading…
Reference in New Issue
Block a user