summaryrefslogtreecommitdiffstats
path: root/src/shared-lib/CMakeLists.txt
blob: 2a1bc4bb2882408dffea71f924bf577f7a4e774e (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109

qt_internal_add_module(AppManSharedPrivate
    EXCEPTIONS
    INTERNAL_MODULE
    SOURCES
        qtappmansharedglobal.h
        applicationinterface.cpp applicationinterface.h
        applicationinterfaceimpl.cpp applicationinterfaceimpl.h
        applicationmanagerwindow.h applicationmanagerwindow.cpp
        applicationmanagerwindowimpl.h applicationmanagerwindowimpl.cpp
        crashhandler.cpp crashhandler.h
        cpustatus.cpp cpustatus.h
        framecontenttracker.h framecontenttracker.cpp
        frametimer.cpp frametimer.h
        frametimerimpl.cpp frametimerimpl.h
        gpustatus.cpp gpustatus.h
        iostatus.cpp iostatus.h
        memorystatus.cpp memorystatus.h
        monitormodel.cpp monitormodel.h
        notification.cpp notification.h
        notificationimpl.cpp notificationimpl.h
        qmllogger.cpp qmllogger.h
        sharedmain.cpp sharedmain.h
        startuptimer.cpp startuptimer.h
        watchdog.cpp watchdog.h watchdog_p.h

        intent-client/intentclient.cpp intent-client/intentclient.h
        intent-client/intentclientrequest.cpp intent-client/intentclientrequest.h
        intent-client/intentclientsysteminterface.cpp intent-client/intentclientsysteminterface.h
        intent-client/intenthandler.cpp intent-client/intenthandler.h

        monitor/processreader.cpp monitor/processreader.h
        monitor/systemreader.cpp monitor/systemreader.h
    LIBRARIES
        Qt::GuiPrivate
        Qt::QuickPrivate
    PUBLIC_LIBRARIES
        Qt::Core
        Qt::Gui
        Qt::Network
        Qt::Qml
        Qt::Quick
        Qt::AppManCommonPrivate
    DEFINES
        AM_COMPILING_APPMAN
)

qt_internal_extend_target(AppManSharedPrivate CONDITION (LINUX OR ANDROID)
    SOURCES
        monitor/sysfsreader.cpp monitor/sysfsreader.h
)

qt_internal_extend_target(AppManSharedPrivate CONDITION QNX
    PUBLIC_LIBRARIES
        backtrace
)

qt_internal_extend_target(AppManSharedPrivate CONDITION TARGET WrapBacktrace::WrapBacktrace
    PUBLIC_LIBRARIES
        WrapBacktrace::WrapBacktrace
)

qt_internal_extend_target(AppManSharedPrivate CONDITION QT_FEATURE_am_libbacktrace
    LIBRARIES
        Qt::BundledBacktrace
)

qt_internal_extend_target(AppManSharedPrivate CONDITION QT_FEATURE_am_stackwalker
    LIBRARIES
        Qt::BundledStackwalker
)

qt_internal_extend_target(AppManSharedPrivate CONDITION AM_COVERAGE
    LIBRARIES
        gcov
)


qt_internal_add_qml_module(AppManSharedQmlPrivate
    URI QtApplicationManager
    VERSION "${PROJECT_VERSION}"
    EXCEPTIONS
    SOURCES
        qml_registrations_shared_p.h
    DEPENDENCIES
        QtQuick
    PUBLIC_LIBRARIES
        Qt::AppManSharedPrivate
    DEFINES
        AM_COMPILING_APPMAN
)

qt_internal_add_qml_module(AppManApplicationQmlPrivate
    URI QtApplicationManager.Application
    VERSION "${PROJECT_VERSION}"
    EXCEPTIONS
    SOURCES
        qml_registrations_application_p.h
    DEPENDENCIES
        QtQuick
    IMPORTS
        QtApplicationManager/auto
        QtQuick
    PUBLIC_LIBRARIES
        Qt::AppManSharedPrivate
        Qt::AppManSharedQmlPrivate
    DEFINES
        AM_COMPILING_APPMAN
)