~aleteoryx/muditaos

ref: 58dd02cff1f7e1a25d9c0cbd0c80a76f8cb90ce6 muditaos/module-apps/apps-common/CMakeLists.txt -rw-r--r-- 3.8 KiB
58dd02cf — Mateusz Grzegorzek [BH-861] Cleanup Application split - part I 4 years ago
                                                                                
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
# For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

add_library(apps-common STATIC)

target_sources(apps-common
    PRIVATE
        ApplicationCommon.cpp
        AsyncTask.cpp
        AudioOperations.cpp
        AudioOperations.hpp
        CallbackStorage.cpp
        DOMResponder.cpp
        GuiTimer.cpp
        StatusBarManager.cpp
        WindowsFactory.cpp
        notifications/NotificationData.cpp
        notifications/NotificationListItem.cpp
        notifications/NotificationProvider.cpp
        notifications/NotificationsModel.cpp
        notifications/NotificationsHandler.cpp
        notifications/NotificationsConfiguration.cpp
        notifications/policies/CallNotificationPolicy.cpp
        notifications/policies/SMSNotificationPolicy.cpp
        notifications/policies/NotificationsListPolicy.cpp
        options/OptionsModel.cpp
        options/type/OptionCall.cpp
        options/type/OptionContact.cpp
        options/type/OptionSetting.cpp
        options/type/OptionSimple.cpp
        options/type/OptionWithActiveIcons.cpp
        widgets/ActiveIconFactory.cpp
        widgets/BarGraph.cpp
        widgets/BrightnessBox.cpp
        widgets/ButtonOnOff.cpp
        widgets/BellBaseLayout.cpp
        widgets/BellSideListItem.cpp
        widgets/DateWidget.cpp
        widgets/InputBox.cpp
        widgets/ModesBox.cpp
        widgets/SpinBox.cpp
        widgets/TextWithIconsWidget.cpp
        widgets/TimeSetSpinner.cpp
        widgets/AlarmSetSpinner.cpp
        widgets/TimeSetFmtSpinner.cpp
        widgets/TimeWidget.cpp
        widgets/WidgetsUtils.cpp
        widgets/ProgressTimerImpl.cpp
        windows/AppWindow.cpp
        windows/BrightnessWindow.cpp
        windows/Dialog.cpp
        windows/OptionWindow.cpp

    PUBLIC
        ApplicationCommon.hpp
        widgets/TimeSetFmtSpinner.hpp
        actions/AlarmRingingData.hpp
        actions/AlarmTriggeredAction.hpp

        widgets/spinners/GenericSpinner.hpp
        widgets/spinners/SpinnerPolicies.hpp
        widgets/spinners/Spinners.hpp
)

add_subdirectory(popups)
add_subdirectory(locks)

target_link_libraries(apps-common
    PRIVATE
        date::date
        eventstore
        Microsoft.GSL::GSL
        service-antenna
        service-appmgr
        service-audio
        service-cellular
        service-evtmgr
        service-time
    PUBLIC
        module-audio
        module-bsp
        module-db
        module-gui
        module-os
        module-services
        module-sys
        module-utils
        time
        utf8
)

# Board specific compilation definitions,options,include directories and features
target_compile_definitions(apps-common PUBLIC ${PROJECT_CONFIG_DEFINITIONS})
target_compile_definitions(apps-common PUBLIC ${PROJECT_TARGET})
target_include_directories(apps-common PUBLIC ${PROJECT_INCLUDES})

target_include_directories(apps-common

        PUBLIC

        ${CMAKE_CURRENT_SOURCE_DIR}
        ${CMAKE_CURRENT_SOURCE_DIR}/messages
        ${CMAKE_CURRENT_SOURCE_DIR}/windows
        ${CMAKE_CURRENT_SOURCE_DIR}/options
        ${CMAKE_CURRENT_SOURCE_DIR}/options/type
)

target_compile_options(apps-common

        PUBLIC

        -Wall

        $<$<COMPILE_LANGUAGE:C>:-std=gnu11>
        $<$<COMPILE_LANGUAGE:C>:-Wno-discarded-qualifiers>

        $<$<COMPILE_LANGUAGE:CXX>:-fno-non-call-exceptions>
        $<$<COMPILE_LANGUAGE:CXX>:-Wno-literal-suffix>

)

# Bell Hybrid related libs
add_library(bellgui)
target_sources( bellgui
   PRIVATE
      ${CMAKE_CURRENT_SOURCE_DIR}/options/type/OptionBellMenu.cpp
      ${CMAKE_CURRENT_SOURCE_DIR}/options/type/OptionBellMenu.hpp
)
target_include_directories( bellgui
   PUBLIC
      $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/options/type>
)

target_link_libraries( bellgui
   PRIVATE
      module-gui
)