-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
executable file
·64 lines (56 loc) · 2.5 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
#
# Component Makefile
#
set (GOOGLE_IOT_SDK ${CMAKE_CURRENT_LIST_DIR}/iot-device-sdk-embedded-c)
set (COMPONENT_ADD_INCLUDEDIRS
"${GOOGLE_IOT_SDK}/src/bsp"
"${GOOGLE_IOT_SDK}/include/bsp"
"${GOOGLE_IOT_SDK}/include"
"${GOOGLE_IOT_SDK}/src/libiotc/control_topic"
"${GOOGLE_IOT_SDK}/src/libiotc/datastructures"
"${GOOGLE_IOT_SDK}/src/libiotc/debug_extensions/memory_limiter"
"${GOOGLE_IOT_SDK}/src/libiotc/event_dispatcher"
"${GOOGLE_IOT_SDK}/src/libiotc/event_loop"
"${GOOGLE_IOT_SDK}/src/libiotc/io/fs/memory"
"${GOOGLE_IOT_SDK}/src/libiotc/io/fs"
"${GOOGLE_IOT_SDK}/src/libiotc/io/net"
"${GOOGLE_IOT_SDK}/src/libiotc/mqtt/logic"
"${GOOGLE_IOT_SDK}/src/libiotc/mqtt/codec"
"${GOOGLE_IOT_SDK}/src/libiotc/platform/iotc_thread"
"${GOOGLE_IOT_SDK}/src/libiotc/platform/posix/iotc_thread"
"${GOOGLE_IOT_SDK}/src/libiotc/tls"
"${GOOGLE_IOT_SDK}/src/libiotc/tls/certs"
"${GOOGLE_IOT_SDK}/src/libiotc/memory"
"${GOOGLE_IOT_SDK}/src/libiotc"
"${GOOGLE_IOT_SDK}/third_party/mqtt-protocol-c"
"${GOOGLE_IOT_SDK}/../port/include")
set (COMPONENT_SRCDIRS
"${GOOGLE_IOT_SDK}/src/bsp/tls/mbedtls"
"${GOOGLE_IOT_SDK}/src/bsp/crypto/mbedtls"
"${GOOGLE_IOT_SDK}/src/libiotc"
"${GOOGLE_IOT_SDK}/src/libiotc/control_topic"
"${GOOGLE_IOT_SDK}/src/libiotc/datastructures"
"${GOOGLE_IOT_SDK}/src/libiotc/debug_extensions/memory_limiter"
"${GOOGLE_IOT_SDK}/src/libiotc/event_dispatcher"
"${GOOGLE_IOT_SDK}/src/libiotc/event_loop"
"${GOOGLE_IOT_SDK}/src/libiotc/io/fs/memory"
"${GOOGLE_IOT_SDK}/src/libiotc/io/fs"
"${GOOGLE_IOT_SDK}/src/libiotc/io/net"
"${GOOGLE_IOT_SDK}/src/libiotc/memory"
"${GOOGLE_IOT_SDK}/src/libiotc/mqtt/codec"
"${GOOGLE_IOT_SDK}/src/libiotc/mqtt/logic"
"${GOOGLE_IOT_SDK}/src/libiotc/tls"
"${GOOGLE_IOT_SDK}/src/libiotc/tls/certs"
"${GOOGLE_IOT_SDK}/third_party/mqtt-protocol-c"
"${GOOGLE_IOT_SDK}/../port/src")
set (COMPONENT_SUBMODULES "${GOOGLE_IOT_SDK}")
set (COMPONENT_OBJEXCLUDE "${GOOGLE_IOT_SDK}/src/libiotc/iotc_test.o")
set(COMPONENT_REQUIRES "mbedtls")
register_component()
target_compile_definitions(${COMPONENT_TARGET} PUBLIC
-DIOTC_TLS_LIB_MBEDTLS
-DIOTC_FS_MEMORY
-DIOTC_MEMORY_LIMITER_APPLICATION_MEMORY_LIMIT=524288
-DIOTC_MEMORY_LIMITER_SYSTEM_MEMORY_LIMIT=2024
-DIOTC_MEMORY_LIMITER_ENABLED
)