forked from maximkulkin/esp-homekit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
64 lines (56 loc) · 1.18 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
set(HOMEKIT_SRCS
"src/json.c"
"src/pairing.c"
"src/storage.c"
"src/tlv.c "
"src/server.c"
"src/debug.c"
"src/accessories.c"
"src/base64.c"
"src/port.c"
"src/query_params.c"
"src/crypto.c"
)
set(COMPONENT_SRCS ${HOMEKIT_SRCS})
set(COMPONENT_ADD_INCLUDEDIRS
"src"
"include"
)
set(COMPONENT_PRIV_INCLUDEDIRS "src")
set(COMPONENT_SRCEXCLUDE "src/mdnsresponder.c")
set(COMPONENT_REQUIRES wolfssl json http-parser mdns)
register_component()
set_source_files_properties(src/storage.c
PROPERTIES COMPILE_FLAGS
-Wno-error=unused-value
)
set(WOLFSSL_C_FLAGS
"-DWOLFCRYPT_HAVE_SRP \
-DWOLFSSL_SHA512 \
-DWOLFSSL_BASE64_ENCODE \
-DNO_MD5 \
-DNO_SHA \
-DHAVE_HKDF \
-DHAVE_CHACHA \
-DHAVE_POLY1305 \
-DHAVE_ED25519 \
-DHAVE_CURVE25519 \
-DNO_SESSION_CACHE \
-DRSA_LOW_MEM \
-DGCM_SMALL \
-DUSE_SLOW_SHA512 \
-DWOLFCRYPT_ONLY"
)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
${WOLFSSL_C_FLAGS} \
-DHOMEKIT_MAX_CLIENTS=15 \
-DSPIFLASH_BASE_ADDR=0xA000 \
-DHOMEKIT_OVERCLOCK=1 \
-DHOMEKIT_OVERCLOCK_PAIR_SETUP=1 \
-DHOMEKIT_OVERCLOCK_PAIR_VERIFY=1 \
-DHOMEKIT_DEBUG=1 \
-DESP_IDF \
-DCURVE25519_SMALL \
-DED25519_SMALL \
-Wno-error=unused-value"
)