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
option(ENABLE_DEVELOPER_MODE_ENDPOINT "Enable developer mode endpoint in service desktop" ${ENABLE_DEVELOPER_MODE_ENDPOINT_DEFAULT})
add_library(desktop-endpoint-base STATIC)
target_sources(
desktop-endpoint-base
PRIVATE
BaseHelper.cpp
Endpoint.cpp
HttpEnums.cpp
PUBLIC
include/endpoints/BaseHelper.hpp
include/endpoints/Context.hpp
include/endpoints/DBHelper.hpp
include/endpoints/Endpoint.hpp
include/endpoints/EndpointType.hpp
include/endpoints/EndpointFactory.hpp
include/endpoints/HttpEnums.hpp
include/endpoints/JsonKeyNames.hpp
include/endpoints/ResponseContext.hpp
)
target_include_directories(
desktop-endpoint-base
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
)
target_link_libraries(
desktop-endpoint-base
PUBLIC
endpoint-message-sender
hash-library::hash-library
module-db
sys-service
)
add_library(desktop-endpoints-common STATIC)
target_sources(
desktop-endpoints-common
PRIVATE
backup/BackupEndpoint.cpp
backup/BackupHelper.cpp
bluetooth/BluetoothEndpoint.cpp
bluetooth/BluetoothEventMessages.cpp
bluetooth/BluetoothHelper.cpp
bluetooth/BluetoothMessagesHandler.cpp
developerMode/DeveloperModeEndpoint.cpp
developerMode/DeveloperModeHelper.cpp
developerMode/Mode/UI_Helper.cpp
developerMode/event/ATRequest.cpp
developerMode/event/DomRequest.cpp
deviceInfo/DeviceInfoEndpointCommon.cpp
factoryReset/FactoryResetEndpoint.cpp
filesystem/FileContext.cpp
filesystem/FileOperations.cpp
filesystem/FilesystemEndpoint.cpp
filesystem/FS_Helper.cpp
nullEndpoint/NullEndpoint.cpp
restore/RestoreEndpoint.cpp
restore/RestoreHelper.cpp
security/SecurityEndpoint.cpp
security/SecurityEndpointHelper.cpp
update/UpdateEndpoint.cpp
update/UpdateHelper.cpp
reboot/RebootEndpoint.cpp
reboot/RebootHelper.cpp
PUBLIC
include/endpoints/backup/BackupEndpoint.hpp
include/endpoints/backup/BackupHelper.hpp
include/endpoints/bluetooth/BluetoothEndpoint.hpp
include/endpoints/bluetooth/BluetoothEventMessages.hpp
include/endpoints/bluetooth/BluetoothHelper.hpp
include/endpoints/bluetooth/BluetoothMessagesHandler.hpp
include/endpoints/developerMode/DeveloperModeEndpoint.hpp
include/endpoints/developerMode/DeveloperModeHelper.hpp
include/endpoints/developerMode/Mode/UI_Helper.hpp
include/endpoints/developerMode/event/ATRequest.hpp
include/endpoints/developerMode/event/DomRequest.hpp
include/endpoints/deviceInfo/DeviceInfoEndpointCommon.hpp
include/endpoints/factoryReset/FactoryResetEndpoint.hpp
include/endpoints/filesystem/FileContext.hpp
include/endpoints/filesystem/FileOperations.hpp
include/endpoints/filesystem/FilesystemEndpoint.hpp
include/endpoints/filesystem/FS_Helper.hpp
include/endpoints/nullEndpoint/NullEndpoint.hpp
include/endpoints/restore/RestoreEndpoint.hpp
include/endpoints/restore/RestoreHelper.hpp
include/endpoints/security/SecurityEndpoint.hpp
include/endpoints/security/SecurityEndpointHelper.hpp
include/endpoints/update/UpdateEndpoint.hpp
include/endpoints/update/UpdateHelper.hpp
include/endpoints/reboot/RebootEndpoint.hpp
include/endpoints/reboot/RebootHelper.hpp
)
target_include_directories(
desktop-endpoints-common
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
)
target_link_libraries(
desktop-endpoints-common
PUBLIC
desktop-endpoint-base
PRIVATE
base64::base64
tar
json
hash-library
pure-core
)
add_library(desktop-endpoints INTERFACE)
target_link_libraries(
desktop-endpoints
INTERFACE
desktop-endpoints-product
)