summaryrefslogtreecommitdiff
path: root/src/launcher-lib/CMakeLists.txt
blob: 1d29372502902d092fdf138ae0343f5b86e59740 (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

# temporary hack to get around the "#pragma once not allowed in cpp" error
set(QT_FEATURE_headersclean FALSE)

qt_internal_add_module(AppManLauncherPrivate
    CONFIG_MODULE_NAME appman_launcher
    STATIC
    EXCEPTIONS
    INTERNAL_MODULE
    SOURCES
        applicationmanagerwindow.cpp applicationmanagerwindow_p.h
        dbusapplicationinterface.cpp dbusapplicationinterface.h
        dbusnotification.cpp dbusnotification.h
        intentclientdbusimplementation.cpp intentclientdbusimplementation.h
        launchermain.cpp launchermain.h
    DBUS_INTERFACE_SOURCES
        ../dbus-lib/io.qt.applicationmanager.intentinterface.xml
    LIBRARIES
        Qt::AppManApplicationPrivate
        Qt::AppManCommonPrivate
        Qt::AppManIntentClientPrivate
        Qt::AppManNotificationPrivate
        Qt::AppManSharedMainPrivate
    PUBLIC_LIBRARIES
        Qt::CorePrivate
        Qt::DBus
        Qt::Gui
        Qt::GuiPrivate
        Qt::Qml
        Qt::Quick
        Qt::QuickPrivate
    DEFINES
        AM_COMPILING_APPMAN
)

qt_internal_extend_target(AppManLauncherPrivate CONDITION QT_FEATURE_am_widgets_support AND TARGET Qt::Widgets
    PUBLIC_LIBRARIES
        Qt::Widgets
)

if(TARGET Qt::WaylandClient)

    qt6_generate_wayland_protocol_client_sources(AppManLauncherPrivate
        FILES
            ${CMAKE_CURRENT_SOURCE_DIR}/../wayland-extensions/qtam-extension.xml
    )
endif()

qt_internal_extend_target(AppManLauncherPrivate CONDITION TARGET Qt::WaylandClient
    SOURCES
        waylandqtamclientextension.cpp waylandqtamclientextension_p.h
    PUBLIC_LIBRARIES
        Qt::WaylandClient
        Qt::WaylandClientPrivate
)