Remove the ability to build simulator/device targets from SUBDIRS projects
This is done because a followup patch will cause simulator_and_device builds to no longer use exclusive builds and so this feature could not work, but it is not strictly necessary anyways because users do not need to be able to do this. Done-with: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Change-Id: If869fbfea776751553c352c2d652edf745a3638d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>bb10
parent
7f801ed73a
commit
4eb2feb29c
|
|
@ -32,37 +32,3 @@ macx-xcode {
|
|||
} else {
|
||||
addExclusiveBuilds(simulator, device)
|
||||
}
|
||||
|
||||
equals(TEMPLATE, subdirs) {
|
||||
# Prevent recursion into host_builds
|
||||
for(subdir, SUBDIRS) {
|
||||
contains($${subdir}.CONFIG, host_build) {
|
||||
$${subdir}.CONFIG += no_$${simulator.target}_target no_$${device.target}_target
|
||||
|
||||
# Other targets which we do want to recurse into may depend on this target,
|
||||
# for example corelib depends on moc, rcc, bootstrap, etc, and other libs
|
||||
# may depend on host-tools that are needed to build the lib, so we resolve
|
||||
# the final target name and redirect it to the base target, so that the
|
||||
# dependency chain is not broken for the other targets.
|
||||
|
||||
!isEmpty($${subdir}.target) {
|
||||
target = $$eval($${subdir}.target)
|
||||
} else {
|
||||
!isEmpty($${subdir}.file): \
|
||||
file = $$eval($${subdir}.file)
|
||||
else: !isEmpty($${subdir}.subdir): \
|
||||
file = $$eval($${subdir}.subdir)
|
||||
else: \
|
||||
file = $$subdir
|
||||
|
||||
target = sub-$$file
|
||||
}
|
||||
|
||||
target ~= s,[^a-zA-Z0-9_],-,
|
||||
|
||||
$${target}-$${simulator.target}.depends = $$target
|
||||
$${target}-$${device.target}.depends = $$target
|
||||
QMAKE_EXTRA_TARGETS += $${target}-$${simulator.target} $${target}-$${device.target}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,44 +5,36 @@ src_qtzlib.target = sub-zlib
|
|||
|
||||
src_tools_bootstrap.subdir = tools/bootstrap
|
||||
src_tools_bootstrap.target = sub-bootstrap
|
||||
src_tools_bootstrap.CONFIG = host_build
|
||||
|
||||
src_tools_moc.subdir = tools/moc
|
||||
src_tools_moc.target = sub-moc
|
||||
src_tools_moc.depends = src_tools_bootstrap
|
||||
src_tools_moc.CONFIG = host_build
|
||||
|
||||
src_tools_rcc.subdir = tools/rcc
|
||||
src_tools_rcc.target = sub-rcc
|
||||
src_tools_rcc.depends = src_tools_bootstrap
|
||||
src_tools_rcc.CONFIG = host_build
|
||||
|
||||
src_tools_qlalr.subdir = tools/qlalr
|
||||
src_tools_qlalr.target = sub-qlalr
|
||||
src_tools_qlalr.CONFIG = host_build
|
||||
force_bootstrap: src_tools_qlalr.depends = src_tools_bootstrap
|
||||
else: src_tools_qlalr.depends = src_corelib
|
||||
|
||||
src_tools_uic.subdir = tools/uic
|
||||
src_tools_uic.target = sub-uic
|
||||
src_tools_uic.CONFIG = host_build
|
||||
force_bootstrap: src_tools_uic.depends = src_tools_bootstrap
|
||||
else: src_tools_uic.depends = src_corelib
|
||||
|
||||
src_tools_bootstrap_dbus.subdir = tools/bootstrap-dbus
|
||||
src_tools_bootstrap_dbus.target = sub-bootstrap_dbus
|
||||
src_tools_bootstrap_dbus.depends = src_tools_bootstrap
|
||||
src_tools_bootstrap_dbus.CONFIG = host_build
|
||||
|
||||
src_tools_qdbusxml2cpp.subdir = tools/qdbusxml2cpp
|
||||
src_tools_qdbusxml2cpp.target = sub-qdbusxml2cpp
|
||||
src_tools_qdbusxml2cpp.CONFIG = host_build
|
||||
force_bootstrap: src_tools_qdbusxml2cpp.depends = src_tools_bootstrap_dbus
|
||||
else: src_tools_qdbusxml2cpp.depends = src_dbus
|
||||
|
||||
src_tools_qdbuscpp2xml.subdir = tools/qdbuscpp2xml
|
||||
src_tools_qdbuscpp2xml.target = sub-qdbuscpp2xml
|
||||
src_tools_qdbuscpp2xml.CONFIG = host_build
|
||||
force_bootstrap: src_tools_qdbuscpp2xml.depends = src_tools_bootstrap_dbus
|
||||
else: src_tools_qdbuscpp2xml.depends = src_dbus
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue