-
Notifications
You must be signed in to change notification settings - Fork 4
/
nabto_primary_files.cmake
365 lines (335 loc) · 14.4 KB
/
nabto_primary_files.cmake
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
set(root_dir ${CMAKE_CURRENT_LIST_DIR})
message("Using embedded dir:" ${root_dir})
set(ne_nn_src
${root_dir}/nabto-common/components/nn/src/nn/allocator.c
${root_dir}/nabto-common/components/nn/src/nn/endian.c
${root_dir}/nabto-common/components/nn/src/nn/ip_address.c
${root_dir}/nabto-common/components/nn/src/nn/llist.c
${root_dir}/nabto-common/components/nn/src/nn/log.c
${root_dir}/nabto-common/components/nn/src/nn/set.c
${root_dir}/nabto-common/components/nn/src/nn/string_int_map.c
${root_dir}/nabto-common/components/nn/src/nn/string_map.c
${root_dir}/nabto-common/components/nn/src/nn/string_set.c
${root_dir}/nabto-common/components/nn/src/nn/string.c
${root_dir}/nabto-common/components/nn/src/nn/vector.c
)
set(ne_utils_src
${root_dir}/nabto-common/components/stun/src/nabto_stun_client.c
${root_dir}/nabto-common/components/stun/src/nabto_stun_message.c
)
set(ne_streaming_src
${root_dir}/nabto-common/components/streaming/src/nabto_stream_congestion_control.c
${root_dir}/nabto-common/components/streaming/src/nabto_stream_window.c
${root_dir}/nabto-common/components/streaming/src/nabto_stream_log_helper.c
${root_dir}/nabto-common/components/streaming/src/nabto_stream_util.c
${root_dir}/nabto-common/components/streaming/src/nabto_stream_packet.c
${root_dir}/nabto-common/components/streaming/src/nabto_stream.c
${root_dir}/nabto-common/components/streaming/src/nabto_stream_flow_control.c
${root_dir}/nabto-common/components/streaming/src/nabto_stream_memory.c
)
set(ne_coap_src
${root_dir}/nabto-common/components/coap/src/nabto_coap.c
${root_dir}/nabto-common/components/coap/src/nabto_coap_client_impl.c
${root_dir}/nabto-common/components/coap/src/nabto_coap_server_impl_incoming.c
${root_dir}/nabto-common/components/coap/src/nabto_coap_server_impl.c
)
set(ne_mdns_src
${root_dir}/nabto-common/components/mdns/src/mdns_server.c
)
set(ne_mdns_include_dir ${root_dir}/nabto-common/components/mdns/include)
set(ne_platform_src
${root_dir}/src/platform/np_error_code.c
${root_dir}/src/platform/np_completion_event.c
${root_dir}/src/platform/np_logging.c
${root_dir}/src/platform/np_util.c
${root_dir}/src/platform/np_ip_address.c
${root_dir}/src/platform/np_udp_wrapper.c
${root_dir}/src/platform/np_event_queue_wrapper.c
${root_dir}/src/platform/np_timestamp_wrapper.c
${root_dir}/src/platform/np_dns_wrapper.c
${root_dir}/src/platform/np_tcp_wrapper.c
${root_dir}/src/platform/np_local_ip_wrapper.c
${root_dir}/src/platform/np_mdns_wrapper.c
${root_dir}/src/platform/np_allocator.c
)
set(ne_core_src
${root_dir}/src/core/nc_connection.c
${root_dir}/src/core/nc_client_connection.c
${root_dir}/src/core/nc_virtual_connection.c
${root_dir}/src/core/nc_coap_packet_printer.c
${root_dir}/src/core/nc_attacher_attach_start.c
${root_dir}/src/core/nc_client_connection_dispatch.c
${root_dir}/src/core/nc_udp_dispatch.c
${root_dir}/src/core/nc_coap.c
${root_dir}/src/core/nc_coap_server.c
${root_dir}/src/core/nc_attacher_sct.c
${root_dir}/src/core/nc_attacher_fcm.c
${root_dir}/src/core/nc_attacher_service_invoke.c
${root_dir}/src/core/nc_attacher_ice_servers.c
${root_dir}/src/core/nc_coap_rest_error.c
${root_dir}/src/core/nc_rendezvous.c
${root_dir}/src/core/nc_stun.c
${root_dir}/src/core/nc_packet.c
${root_dir}/src/core/nc_keep_alive.c
${root_dir}/src/core/nc_attacher.c
${root_dir}/src/core/nc_attacher_watchdog.c
${root_dir}/src/core/nc_version.c
${root_dir}/src/core/nc_stream.c
${root_dir}/src/core/nc_virtual_stream.c
${root_dir}/src/core/nc_rendezvous_coap.c
${root_dir}/src/core/nc_stun_coap.c
${root_dir}/src/core/nc_stream_manager.c
${root_dir}/src/core/nc_coap_client.c
${root_dir}/src/core/nc_attacher_attach_end.c
${root_dir}/src/core/nc_dns_multi_resolver.c
${root_dir}/src/core/nc_device.c
${root_dir}/src/core/nc_spake2.c
${root_dir}/src/core/nc_spake2_coap.c
${root_dir}/src/core/nc_cbor.c
)
set(ne_api_src
${root_dir}/src/api/nabto_device_events.c
${root_dir}/src/api/nabto_device_stream.c
${root_dir}/src/api/nabto_device.c
${root_dir}/src/api/nabto_device_authorization.c
${root_dir}/src/api/nabto_device_authorization_events.c
${root_dir}/src/api/nabto_device_logging.c
${root_dir}/src/api/nabto_device_experimental.c
${root_dir}/src/api/nabto_device_experimental_set_private_key_secp256r1_mbedtls.c
${root_dir}/src/api/nabto_device_experimental_set_private_key_secp256r1_wolfssl.c
${root_dir}/src/api/nabto_device_fcm.c
${root_dir}/src/api/nabto_device_ice_servers.c
${root_dir}/src/api/nabto_device_service_invocation.c
${root_dir}/src/api/nabto_device_util.c
${root_dir}/src/api/nabto_device_event_handler.c
${root_dir}/src/api/nabto_device_connection_events.c
${root_dir}/src/api/nabto_device_virtual_connection.c
${root_dir}/src/api/nabto_device_coap.c
${root_dir}/src/api/nabto_device_future.c
${root_dir}/src/api/nabto_device_tcp_probe.c
${root_dir}/src/api/nabto_device_tcp_tunnelling.c
${root_dir}/src/api/nabto_device_error.c
${root_dir}/src/api/nabto_device_integration.c
${root_dir}/src/api/nabto_device_password_authentication.c
${root_dir}/src/api/nabto_device_internal.c
${root_dir}/src/api/nabto_device_crypto_speed_test.c
${root_dir}/src/api/nabto_device_mdns.c
)
set(ne_api_future_queue_src
${root_dir}/src/api/nabto_device_future_queue.c
)
set(ne_api_test_src
${root_dir}/src/api_test/nabto_device_test.c
${root_dir}/src/api_test/nabto_device_test_logging.c
${root_dir}/src/api_test/nabto_device_test_future_resolve.c
${root_dir}/src/api_test/nabto_device_test_event_queue.c
${root_dir}/src/api_test/nabto_device_test_timestamp.c
${root_dir}/src/api_test/nabto_device_test_dns.c
${root_dir}/src/api_test/nabto_device_test_udp.c
${root_dir}/src/api_test/nabto_device_test_tcp.c
${root_dir}/src/api_test/nabto_device_test_local_ip.c
${root_dir}/src/api_test/nabto_device_test_mdns_publish_service.c
)
set(ne_tinycbor_src
${root_dir}/3rdparty/tinycbor/tinycbor_src/src/cborparser_dup_string.c
${root_dir}/3rdparty/tinycbor/tinycbor_src/src/cborencoder.c
${root_dir}/3rdparty/tinycbor/tinycbor_src/src/cborparser.c
${root_dir}/3rdparty/tinycbor/tinycbor_src/src/cborvalidation.c
)
set(ne_cjson_dir ${CMAKE_CURRENT_LIST_DIR}/3rdparty/cjson)
set(ne_cjson_src
${ne_cjson_dir}/cjson/cJSON.c
)
set(ne_cjson_include_dir ${ne_cjson_dir})
set(ne_mbedtls_src
${root_dir}/3rdparty/mbedtls/mbedtls/library/aes.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/aesni.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/asn1parse.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/asn1write.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/base64.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/bignum.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/ccm.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/cipher.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/cipher_wrap.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/cmac.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/ctr_drbg.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/des.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/dhm.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/ecdh.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/ecdsa.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/ecp.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/ecp_curves.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/entropy.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/entropy_poll.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/error.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/havege.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/hmac_drbg.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/md.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/md_wrap.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/oid.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/pem.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/pk.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/pk_wrap.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/pkparse.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/pkwrite.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/platform.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/platform_util.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/sha256.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/certs.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/x509.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/x509_create.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/x509_crt.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/x509write_crt.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/debug.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/ssl_cache.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/ssl_ciphersuites.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/ssl_cli.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/ssl_cookie.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/ssl_srv.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/ssl_ticket.c
${root_dir}/3rdparty/mbedtls/mbedtls/library/ssl_tls.c
)
set(ne_mbedtls_module_src
${root_dir}/src/modules/mbedtls/nm_mbedtls_timer.c
${root_dir}/src/modules/mbedtls/nm_mbedtls_util.c
${root_dir}/src/modules/mbedtls/nm_mbedtls_cli.c
${root_dir}/src/modules/mbedtls/nm_mbedtls_srv.c
${root_dir}/src/modules/mbedtls/nm_mbedtls_random.c
${root_dir}/src/modules/mbedtls/nm_mbedtls_spake2.c
)
set(ne_tcp_tunnels_src
${root_dir}/src/modules/tcp_tunnel/nm_tcp_tunnel_connection.c
${root_dir}/src/modules/tcp_tunnel/nm_tcp_tunnel_coap.c
${root_dir}/src/modules/tcp_tunnel/nm_tcp_tunnel.c
)
set(ne_communication_buffer_src
${root_dir}/src/modules/communication_buffer/nm_communication_buffer.c
)
set(ne_iam_src
${root_dir}/src/modules/iam/nm_iam.c
${root_dir}/src/modules/iam/nm_iam_role.c
${root_dir}/src/modules/iam/nm_iam_user.c
${root_dir}/src/modules/iam/nm_iam_to_json.c
${root_dir}/src/modules/iam/nm_iam_from_json.c
${root_dir}/src/modules/iam/nm_iam_auth_handler.c
${root_dir}/src/modules/iam/nm_iam_pake_handler.c
${root_dir}/src/modules/iam/nm_iam_connection_events.c
${root_dir}/src/modules/iam/nm_iam_configuration.c
${root_dir}/src/modules/iam/nm_iam_state.c
${root_dir}/src/modules/iam/nm_iam_serializer.c
${root_dir}/src/modules/iam/nm_iam_pairing.c
${root_dir}/src/modules/iam/nm_iam_internal.c
${root_dir}/src/modules/iam/nm_iam_allocator.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_coap_handler.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_pairing_get.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_pairing_password_open.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_pairing_password_invite.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_pairing_local_open.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_pairing_local_initial.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_get_notification_categories.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_send_fcm_test.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_list_users.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_get_me.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_get_user.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_create_user.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_delete_user.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_list_roles.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_set_user_role.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_set_user_name.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_set_user_display_name.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_set_user_fingerprint.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_add_user_fingerprint.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_delete_user_fingerprint.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_set_user_sct.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_set_user_password.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_set_user_fcm.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_set_user_notification_categories.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_set_user_oauth_subject.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_settings_get.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_settings_set.c
${root_dir}/src/modules/iam/coap_handler/nm_iam_device_info_set.c
${root_dir}/src/modules/iam/policies/nm_condition.c
${root_dir}/src/modules/iam/policies/nm_statement.c
${root_dir}/src/modules/iam/policies/nm_policy.c
${root_dir}/src/modules/iam/policies/nm_policies_from_json.c
${root_dir}/src/modules/iam/policies/nm_policies_to_json.c
)
set(ne_required_src
${ne_utils_src}
${ne_streaming_src}
${ne_mdns_src}
${ne_coap_src}
${ne_platform_src}
${ne_core_src}
${ne_api_src}
${ne_tinycbor_src}
${ne_nn_src}
${ne_mbedtls_src}
${ne_mbedtls_module_src}
${ne_tcp_tunnels_src}
${ne_communication_buffer_src}
)
set(ne_include_dirs
${root_dir}/include
)
set(ne_required_src_no_tls
${ne_utils_src}
${ne_streaming_src}
${ne_mdns_src}
${ne_coap_src}
${ne_platform_src}
${ne_core_src}
${ne_api_src}
${ne_tinycbor_src}
${ne_nn_src}
${ne_tcp_tunnels_src}
${ne_communication_buffer_src}
)
set(ne_coap_include_dirs
${root_dir}/nabto-common/components/coap/include
)
set(ne_stun_include_dirs
${root_dir}/nabto-common/components/stun/include
)
set(ne_streaming_include_dirs
${root_dir}/nabto-common/components/streaming/include
)
set(ne_nn_include_dirs
${root_dir}/nabto-common/components/nn/include
)
set(ne_mdns_include_dirs
${root_dir}/nabto-common/components/mdns/include
)
set(ne_include_dirs
${root_dir}/src
${root_dir}/include
)
set(ne_priv_include_dirs_no_tls
# ${root_dir}/
${root_dir}/src
${root_dir}/include
${root_dir}/nabto-common/components/coap/include
${root_dir}/nabto-common/components/streaming/include
${root_dir}/nabto-common/components/stun/include
${root_dir}/nabto-common/components/nn/include
${root_dir}/nabto-common/components/mdns/include
${root_dir}/3rdparty/tinycbor/tinycbor_src/include/tinycbor
${root_dir}/3rdparty/tinycbor/tinycbor_src/include
)
set(ne_nn_include_dirs
${root_dir}/nabto-common/components/nn/include
)
set(ne_priv_include_dirs
# ${root_dir}/
${root_dir}/src
${root_dir}/include
${root_dir}/nabto-common/components/coap/include
${root_dir}/nabto-common/components/streaming/include
${root_dir}/nabto-common/components/stun/include
${root_dir}/nabto-common/components/nn/include
${root_dir}/nabto-common/components/mdns/include
${root_dir}/3rdparty/tinycbor/tinycbor_src/include/tinycbor
${root_dir}/3rdparty/tinycbor/tinycbor_src/include
${root_dir}/3rdparty/mbedtls/mbedtls/include
${root_dir}/3rdparty/mbedtls/config
)