950bb7185c
The auto.pro file would bail out or skip based on the availability of the session bus at qmake time. That does not make sense for cross compilation: the session bus may be available on the target even if it is not on the compilation host. Change-Id: I459a518f3411acb39e8dcdad9d32ded1f9b57029 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
44 lines
1.4 KiB
Prolog
44 lines
1.4 KiB
Prolog
TEMPLATE = subdirs
|
|
|
|
SUBDIRS += \
|
|
corelib \
|
|
dbus \
|
|
gui \
|
|
network \
|
|
opengl \
|
|
sql \
|
|
testlib \
|
|
tools \
|
|
xml \
|
|
concurrent \
|
|
other \
|
|
widgets \
|
|
printsupport \
|
|
cmake \
|
|
installed_cmake
|
|
|
|
installed_cmake.depends = cmake
|
|
|
|
ios: SUBDIRS = corelib gui
|
|
|
|
wince: SUBDIRS -= printsupport
|
|
cross_compile: SUBDIRS -= tools cmake installed_cmake
|
|
!qtHaveModule(opengl): SUBDIRS -= opengl
|
|
!qtHaveModule(gui): SUBDIRS -= gui cmake
|
|
!qtHaveModule(widgets): SUBDIRS -= widgets
|
|
!qtHaveModule(printsupport): SUBDIRS -= printsupport
|
|
!qtHaveModule(concurrent): SUBDIRS -= concurrent
|
|
!qtHaveModule(network): SUBDIRS -= network
|
|
!qtHaveModule(dbus): SUBDIRS -= dbus
|
|
|
|
# Disable the QtDBus tests if we can't connect to the session bus
|
|
!cross_compile:qtHaveModule(dbus) {
|
|
!system("dbus-send --session --type=signal / local.AutotestCheck.Hello >/dev/null 2>&1") {
|
|
contains(QT_CONFIG, dbus-linked): \
|
|
error("QtDBus is enabled but session bus is not available. Please check the installation.")
|
|
else: \
|
|
warning("QtDBus is enabled with runtime support, but session bus is not available. Skipping QtDBus tests.")
|
|
SUBDIRS -= dbus
|
|
}
|
|
}
|