summaryrefslogtreecommitdiffstats
path: root/src/launcher-lib/CMakeLists.txt
blob: 12e77a6872a5501c658d2942ba1c364061d62b18 (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
# Generated from launcher-lib.pro.

#####################################################################
## AppManLauncher Module:
#####################################################################

# 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
        dbusapplicationinterfaceextension.cpp dbusapplicationinterfaceextension.h
        dbusnotification.cpp dbusnotification.h
        intentclientdbusimplementation.cpp intentclientdbusimplementation.h
        ipcwrapperobject.cpp ipcwrapperobject.h ipcwrapperobject_p.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
)

qt_internal_extend_target(AppManLauncherPrivate CONDITION QT_FEATURE_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
)