summaryrefslogtreecommitdiffstats
path: root/tests/auto/auto.pro
blob: 9cab3c9e42dfbc9e0498a7017839d0aea82c8c0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
!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

# Disable the QtDBus tests if we can't connect to the session bus
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
    }
} else {
    SUBDIRS -= dbus
}