Get rid of simulator_and_device CONFIG option (mostly)
A separate flag is no longer needed now that simulator and device builds are not exclusive any more (*) - both 'simulator' and 'device' being set at the same time is a sufficient indication (uikit/default_pre.prf sets this up according to the simulator_and_device feature and the QMAKE_MAC_SDK variable). (*) xcodebuild mode actually still uses exclusive builds, but this is activated locally in uikit/default_post.prf, and uikit/xcodebuild.prf implements the actual build passes manually anyway, so this change does not affect it. Change-Id: Idf173a7bfeb984498d3a49ed6b8d1a16da6c2089 Reviewed-by: Jake Petroules <jake.petroules@qt.io>bb10
parent
56395c5cc1
commit
4e945ea2f8
|
|
@ -14,4 +14,4 @@ target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tools/plugandpaint/plugins
|
|||
INSTALLS += target
|
||||
|
||||
CONFIG += install_ok # Do not cargo-cult this!
|
||||
uikit: CONFIG += debug_and_release simulator_and_device
|
||||
uikit: CONFIG += debug_and_release
|
||||
|
|
|
|||
|
|
@ -14,4 +14,4 @@ target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tools/plugandpaint/plugins
|
|||
INSTALLS += target
|
||||
|
||||
CONFIG += install_ok # Do not cargo-cult this!
|
||||
uikit: CONFIG += debug_and_release simulator_and_device
|
||||
uikit: CONFIG += debug_and_release
|
||||
|
|
|
|||
|
|
@ -54,10 +54,13 @@ for(tool, $$list(QMAKE_CC QMAKE_CXX QMAKE_FIX_RPATH QMAKE_AR QMAKE_RANLIB QMAKE_
|
|||
tvos: deployment_target = $$QMAKE_TVOS_DEPLOYMENT_TARGET
|
||||
watchos: deployment_target = $$QMAKE_WATCHOS_DEPLOYMENT_TARGET
|
||||
|
||||
!simulator|simulator_and_device: device_archs = $$QMAKE_APPLE_DEVICE_ARCHS
|
||||
device|!simulator: device_archs = $$QMAKE_APPLE_DEVICE_ARCHS
|
||||
simulator: simulator_archs = $$QMAKE_APPLE_SIMULATOR_ARCHS
|
||||
archs = $$device_archs $$simulator_archs
|
||||
|
||||
isEmpty(archs): \
|
||||
error("QMAKE_APPLE_DEVICE_ARCHS or QMAKE_APPLE_SIMULATOR_ARCHS must contain at least one architecture")
|
||||
|
||||
QMAKE_XARCH_CFLAGS =
|
||||
QMAKE_XARCH_LFLAGS =
|
||||
QMAKE_EXTRA_VARIABLES += QMAKE_XARCH_CFLAGS QMAKE_XARCH_LFLAGS
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ TEMPLATE = lib
|
|||
CONFIG += plugin
|
||||
|
||||
if(win32|mac):!macx-xcode {
|
||||
qtConfig(simulator_and_device): CONFIG += simulator_and_device
|
||||
qtConfig(debug_and_release): CONFIG += debug_and_release
|
||||
qtConfig(build_all): CONFIG += build_all
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ DEFINES += $$MODULE_DEFINES
|
|||
CONFIG -= warning_clean # Don't presume 3rd party code to be clean
|
||||
load(qt_common)
|
||||
|
||||
qtConfig(simulator_and_device): CONFIG += simulator_and_device
|
||||
qtConfig(debug_and_release): CONFIG += debug_and_release
|
||||
qtConfig(build_all): CONFIG += build_all
|
||||
|
||||
|
|
|
|||
|
|
@ -84,7 +84,6 @@ INCLUDEPATH *= $$eval(QT.$${MODULE}.includes) $$eval(QT.$${MODULE}_private.inclu
|
|||
# If Qt was configured with -debug-and-release then build the module the same way
|
||||
# - unless this is a host library
|
||||
!host_build:if(win32|mac):!macx-xcode {
|
||||
qtConfig(simulator_and_device): CONFIG += simulator_and_device
|
||||
qtConfig(debug_and_release): CONFIG += debug_and_release
|
||||
qtConfig(build_all): CONFIG += build_all
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ win32:CONFIG(shared, static|shared) {
|
|||
tool_plugin {
|
||||
!build_pass:qtConfig(debug_and_release): CONFIG += release
|
||||
} else:if(win32|mac):!macx-xcode {
|
||||
qtConfig(simulator_and_device): CONFIG += simulator_and_device
|
||||
qtConfig(debug_and_release): CONFIG += debug_and_release
|
||||
qtConfig(build_all): CONFIG += build_all
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,9 +69,12 @@ macx-xcode {
|
|||
QMAKE_MAC_XCODE_SETTINGS += only_active_arch
|
||||
} else {
|
||||
VALID_ARCHS =
|
||||
!simulator|simulator_and_device: VALID_ARCHS += $$QMAKE_APPLE_DEVICE_ARCHS
|
||||
device|!simulator: VALID_ARCHS += $$QMAKE_APPLE_DEVICE_ARCHS
|
||||
simulator: VALID_ARCHS += $$QMAKE_APPLE_SIMULATOR_ARCHS
|
||||
|
||||
isEmpty(VALID_ARCHS): \
|
||||
error("QMAKE_APPLE_DEVICE_ARCHS or QMAKE_APPLE_SIMULATOR_ARCHS must contain at least one architecture")
|
||||
|
||||
single_arch: VALID_ARCHS = $$first(VALID_ARCHS)
|
||||
|
||||
ACTIVE_ARCHS = $(filter $(EXPORT_VALID_ARCHS), $(ARCHS))
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
|
||||
build_pass:simulator: \
|
||||
QMAKE_MAC_SDK ~= s,^$${device.sdk},$${simulator.sdk},
|
||||
|
||||
load(sdk)
|
||||
|
||||
macx-xcode {
|
||||
|
|
|
|||
Loading…
Reference in New Issue