summaryrefslogtreecommitdiffstats
path: root/src/window-lib/window-lib.pro
blob: 918bbe344ca7f2b3e645dc26b3c1af07e3f05a0f (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
TEMPLATE = lib
TARGET = QtAppManWindow
MODULE = appman_window

load(am-config)

QT = core network qml core-private
!headless:QT *= gui quick
QT_FOR_PRIVATE *= \
    appman_common-private \
    appman_application-private \
    appman_manager-private \
    appman_monitor-private \

CONFIG *= static internal_module
CONFIG -= create_cmake

multi-process:!headless {
    HEADERS += \
        waylandcompositor.h \
        waylandwindow.h \
        waylandqtamserverextension_p.h

    SOURCES += \
        waylandcompositor.cpp \
        waylandwindow.cpp \
        waylandqtamserverextension.cpp

    qtHaveModule(waylandcompositor) {
        QT *= waylandcompositor
        # Qt < 5.14 is missing the sendPopupDone() method in QWaylandXdgShell
        !versionAtLeast(QT_VERSION, 5.14.0):QT *= waylandcompositor-private
    }
    WAYLANDSERVERSOURCES += \
        ../wayland-extensions/qtam-extension.xml

    CONFIG *= wayland-scanner generated_privates
    private_headers.CONFIG += no_check_exists
}

!headless:HEADERS += \
    window.h \
    windowitem.h \
    inprocesswindow.h \
    windowmanager.h \
    windowmanager_p.h \
    touchemulation.h \

!headless:SOURCES += \
    window.cpp \
    windowitem.cpp \
    inprocesswindow.cpp \
    windowmanager.cpp \
    touchemulation.cpp \

# build the touch emulation only on X11 setups
!headless:config_touchemulation {
    PKGCONFIG *= xcb x11 xi
    QT *= gui-private testlib
    HEADERS += touchemulation_x11_p.h
    SOURCES += touchemulation_x11.cpp
}

load(qt_module)