summaryrefslogtreecommitdiff
path: root/src/src.pro
blob: 3d68c69fb60e5c498df33f31d28f7f0311d594cd (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
TEMPLATE=subdirs
include($$OUT_PWD/client/qtwaylandclient-config.pri)
include($$OUT_PWD/compositor/qtwaylandcompositor-config.pri)
QT_FOR_CONFIG += waylandclient-private waylandcompositor-private

qtConfig(wayland-client)|qtConfig(wayland-server) {
    sub_qtwaylandscanner.subdir = qtwaylandscanner
    sub_qtwaylandscanner.target = sub-qtwaylandscanner
    SUBDIRS += sub_qtwaylandscanner

    qtConfig(wayland-client) {
        sub_client.subdir = client
        sub_client.depends = sub-qtwaylandscanner
        sub_client.target = sub-client
        SUBDIRS += sub_client
    }

    sub_plugins.subdir = plugins
    sub_plugins.depends += sub-qtwaylandscanner
    qtConfig(wayland-client):sub_plugins.depends += sub-client
    qtConfig(wayland-server):sub_plugins.depends += sub-compositor
    sub_plugins.target = sub-plugins
    SUBDIRS += sub_plugins

    qtConfig(wayland-server) {
        sub_compositor.subdir = compositor
        sub_compositor.depends = sub-qtwaylandscanner
        sub_compositor.target = sub-compositor
        SUBDIRS += sub_compositor
    }

    sub_imports.subdir = imports
    qtConfig(wayland-client):sub_imports.depends += sub-client
    qtConfig(wayland-server):sub_imports.depends += sub-compositor
    sub_imports.target = sub-imports
    SUBDIRS += sub_imports
}