forked from MFransen69/WPEFrameworkPlugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
213 lines (167 loc) · 5.44 KB
/
CMakeLists.txt
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
cmake_minimum_required(VERSION 3.3)
find_package(WPEFramework)
# All packages that did not deliver a CMake Find script (and some deprecated scripts that need to be removed)
# are located in the cmake directory. Include it in the search.
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/")
option(PLUGIN_BLUETOOTH "Include Bluetooth plugin" OFF)
option(PLUGIN_COMMANDER "Include Commander plugin" OFF)
option(PLUGIN_COMPOSITOR "Include Compsitor plugin" OFF)
option(PLUGIN_DEVICEINFO "Include DeviceInfo plugin" OFF)
option(PLUGIN_DSRESOLUTION "Include DSResolution plugin" OFF)
option(PLUGIN_DHCPSERVER "Include DHCPServer plugin" OFF)
option(PLUGIN_DIALSERVER " Include DIALServer plugin" OFF)
option(PLUGIN_DICTIONARY "Include Dictionary plugin" OFF)
option(PLUGIN_IOCONNECTOR "Include IOConnector plugin" OFF)
option(PLUGIN_FRONTPANEL "Include FrontPanel plugin" OFF)
option(PLUGIN_LOCATIONSYNC "Include LocationSync plugin" OFF)
option(PLUGIN_MONITOR "Include Monitor plugin" OFF)
option(PLUGIN_NETWORKCONTROL "Include NetworkControlplugin" OFF)
option(PLUGIN_OPENCDMI "Include OpenCDMi plugin" OFF)
option(PLUGIN_POWER "Include Power plugin" OFF)
option(PLUGIN_REMOTECONTROL "Include RemoteControl plugin" OFF)
option(PLUGIN_STREAMER "Include Streamer plugin" OFF)
option(PLUGIN_SNAPSHOT "Include Snapshot plugin" OFF)
option(PLUGIN_SYSTEMCOMMANDS "Include SystemCommands plugin" OFF)
option(PLUGIN_TESTUTILITY "Include TestUtility plugin" OFF)
option(PLUGIN_TIMESYNC "Include TimeSync plugin" OFF)
option(PLUGIN_TRACECONTROL "Include TraceControl plugin" OFF)
option(PLUGIN_WEBKITBROWSER "Include WebKitBrowser plugin" OFF)
option(PLUGIN_WEBPROXY "Include WebProxy plugin" OFF)
option(PLUGIN_WEBSERVER "Include WebServer plugin" OFF)
option(PLUGIN_WEBSHELL "Include WebShell plugin" OFF)
option(PLUGIN_WIFICONTROL "Include WifiControl plugin" OFF)
option(PLUGIN_TESTCONTROLLER "Include TestController plugin" OFF)
option(PLUGIN_JSONRPC "Include JSONRPCExamplePlugin plugin" ON)
option(PLUGIN_SPARK "Include SparkEngine plugin" OFF)
option(PLUGIN_MESSENGER "Include Messenger plugin" OFF)
option(WPEFRAMEWORK_CREATE_IPKG_TARGETS "Generate the CPack configuration for package generation" OFF)
# Library installation section
string(TOLOWER ${NAMESPACE} STORAGE_DIRECTORY)
# for writing pc and config files
include(CmakeHelperFunctions)
if(BUILD_REFERENCE)
add_definitions(-DBUILD_REFERENCE=${BUILD_REFERENCE})
endif()
if(PLUGIN_BLUETOOTH)
add_subdirectory(Bluetooth)
endif()
if(PLUGIN_COMMANDER)
add_subdirectory(Commander)
endif()
if(PLUGIN_COMPOSITOR)
add_subdirectory(Compositor)
endif()
if(PLUGIN_DEVICEINFO)
add_subdirectory(DeviceInfo)
endif()
if(PLUGIN_DSRESOLUTION)
add_subdirectory(DSResolution)
endif()
if(PLUGIN_DHCPSERVER)
add_subdirectory(DHCPServer)
endif()
if(PLUGIN_DIALSERVER)
add_subdirectory(DIALServer)
endif()
if(PLUGIN_DICTIONARY)
add_subdirectory(Dictionary)
endif()
if(PLUGIN_FRONTPANEL)
add_subdirectory(FrontPanel)
endif()
if(PLUGIN_IOCONNECTOR)
add_subdirectory(IOConnector)
endif()
if(PLUGIN_SICONTROL)
add_subdirectory (SIControl)
endif(PLUGIN_SICONTROL)
if(PLUGIN_LOCATIONSYNC)
add_subdirectory(LocationSync)
endif()
if(PLUGIN_MONITOR)
add_subdirectory(Monitor)
endif()
if(PLUGIN_NETWORKCONTROL)
add_subdirectory(NetworkControl)
endif()
if(PLUGIN_OPENCDMI)
add_subdirectory(OpenCDMi)
endif()
if(PLUGIN_POWER)
add_subdirectory(Power)
endif()
if(PLUGIN_REMOTECONTROL)
add_subdirectory(RemoteControl)
endif()
if(PLUGIN_SNAPSHOT)
add_subdirectory(Snapshot)
endif()
if(PLUGIN_STREAMER)
add_subdirectory(Streamer)
endif()
if(PLUGIN_SYSTEMCOMMANDS)
add_subdirectory(SystemCommands)
endif()
if(PLUGIN_SYSTEMDCONNECTOR)
add_subdirectory(SystemdConnector)
endif()
if(PLUGIN_TESTUTILITY)
add_subdirectory(TestUtility)
endif()
if(PLUGIN_TIMESYNC)
add_subdirectory(TimeSync)
endif()
if(PLUGIN_TRACECONTROL)
add_subdirectory(TraceControl)
endif()
if(PLUGIN_WEBKITBROWSER)
add_subdirectory(WebKitBrowser)
endif()
if(PLUGIN_WEBPROXY)
add_subdirectory(WebProxy)
endif()
if(PLUGIN_WEBSERVER)
add_subdirectory(WebServer)
endif()
if(PLUGIN_WEBSHELL)
add_subdirectory(WebShell)
endif()
if(PLUGIN_WIFICONTROL)
add_subdirectory(WifiControl)
endif()
if(PLUGIN_RTSPCLIENT)
add_subdirectory(RtspClient)
endif()
if(PLUGIN_DSGCCCLIENT)
add_subdirectory(DsgccClient)
endif()
if(PLUGIN_TESTCONTROLLER)
add_subdirectory(TestController)
endif()
if(PLUGIN_JSONRPC)
add_subdirectory(tests/JSONRPCPlugin)
add_subdirectory(tests/JSONRPCClient)
endif()
if(PLUGIN_SPARK)
add_subdirectory(Spark)
endif()
if(PLUGIN_MESSENGER)
add_subdirectory(Messenger)
endif()
if(WPEFRAMEWORK_CREATE_IPKG_TARGETS)
set(CPACK_GENERATOR "DEB")
set(CPACK_DEB_COMPONENT_INSTALL ON)
set(CPACK_COMPONENTS_GROUPING IGNORE)
set(CPACK_DEBIAN_PACKAGE_NAME "${WPEFRAMEWORK_PLUGINS_OPKG_NAME}")
set(CPACK_DEBIAN_PACKAGE_VERSION "${WPEFRAMEWORK_PLUGINS_OPKG_VERSION}")
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "${WPEFRAMEWORK_PLUGINS_OPKG_ARCHITECTURE}")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "${WPEFRAMEWORK_PLUGINS_OPKG_MAINTAINER}")
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "${WPEFRAMEWORK_PLUGINS_OPKG_DESCRIPTION}")
set(CPACK_PACKAGE_FILE_NAME "${WPEFRAMEWORK_PLUGINS_OPKG_FILE_NAME}")
# list of components from which packages will be generated
set(CPACK_COMPONENTS_ALL
${NAMESPACE}WebKitBrowser
WPEInjectedBundle
)
include(CPack)
endif()