-
Notifications
You must be signed in to change notification settings - Fork 14
/
CMakeLists.txt
37 lines (33 loc) · 1.55 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
set(COMPONENT_SRCDIRS "wolfssl/src/"
"wolfssl/wolfcrypt/src"
"wolfssl/wolfcrypt/src/port/Espressif/"
"wolfssl/wolfcrypt/src/port/atmel/"
)
set(COMPONENT_REQUIRES lwip)
set(COMPONENT_ADD_INCLUDEDIRS
"port"
"wolfssl"
)
set(COMPONENT_SRCEXCLUDE_1
"wolfssl/wolfcrypt/src/aes_asm.S"
"wolfssl/wolfcrypt/src/evp.c"
"wolfssl/wolfcrypt/src/misc.c"
"wolfssl/src/bio.c"
"wolfssl/wolfcrypt/src/sp_x86_64_asm.S"
"wolfssl/wolfcrypt/src/sha512_asm.S"
"wolfssl/wolfcrypt/src/sha256_asm.S"
"wolfssl/wolfcrypt/src/chacha_asm.S"
"wolfssl/wolfcrypt/src/aes_gcm_asm.S"
"wolfssl/wolfcrypt/src/poly1305_asm.S"
"wolfssl/wolfcrypt/src/fe_x25519_asm.S"
)
idf_component_register(SRC_DIRS "${COMPONENT_SRCDIRS}"
INCLUDE_DIRS "${COMPONENT_ADD_INCLUDEDIRS}"
REQUIRES "${COMPONENT_REQUIRES}"
EXCLUDE_SRCS "${COMPONENT_SRCEXCLUDE_1}"
)
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-cpp -Wno-maybe-uninitialized)
set_source_files_properties(wolfssl/src/ssl.c PROPERTIES COMPILE_FLAGS "-Wno-format-truncation -Wno-char-subscripts")
set_source_files_properties(wolfssl/wolfcrypt/src/random.c PROPERTIES COMPILE_FLAGS "-Wno-implicit-function-declaration")
set_source_files_properties(wolfssl/wolfcrypt/src/port/Espressif/esp32_aes.c PROPERTIES COMPILE_FLAGS "-Wno-incompatible-pointer-types")
target_compile_definitions(${COMPONENT_LIB} PUBLIC WOLFSSL_USER_SETTINGS)