2019-04-28 15:38:23 +08:00
|
|
|
idf_component_register(SRC_DIRS "."
|
2020-03-22 18:30:24 +08:00
|
|
|
PRIV_INCLUDE_DIRS "." "${CMAKE_CURRENT_BINARY_DIR}"
|
2021-05-07 15:46:41 +05:30
|
|
|
PRIV_INCLUDE_DIRS "../src" "../esp_supplicant/src"
|
2022-05-11 16:01:48 +02:00
|
|
|
PRIV_REQUIRES cmock esp_common test_utils wpa_supplicant mbedtls esp_wifi esp_event)
|
2022-01-31 19:45:31 +01:00
|
|
|
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
|
2018-08-13 16:37:56 +08:00
|
|
|
|
|
|
|
idf_component_get_property(esp_supplicant_dir wpa_supplicant COMPONENT_DIR)
|
|
|
|
|
|
|
|
# Calculate MD5 value of header file esp_wifi_driver.h
|
2021-05-07 15:46:41 +05:30
|
|
|
file(MD5 ${esp_supplicant_dir}/esp_supplicant/src/esp_wifi_driver.h WIFI_SUPPLICANT_MD5)
|
2018-08-13 16:37:56 +08:00
|
|
|
string(SUBSTRING "${WIFI_SUPPLICANT_MD5}" 0 7 WIFI_SUPPLICANT_MD5)
|
|
|
|
|
|
|
|
add_definitions(-DWIFI_SUPPLICANT_MD5=\"${WIFI_SUPPLICANT_MD5}\")
|
2019-11-11 16:50:04 +05:30
|
|
|
add_definitions(-DCONFIG_WPA3_SAE)
|
2020-04-13 21:55:52 +05:30
|
|
|
add_definitions(-DCONFIG_DPP)
|