41 lines
1.6 KiB
CMake
41 lines
1.6 KiB
CMake
idf_build_get_property(python SIMULATION_QEMU)
|
|
message(STATUS "The Python interpreter is: ${python}")
|
|
|
|
set(comps heap nvs_flash esp_netif image_downloader fatfs protocol_examples_common mqtt meteofrance domotic_display RemindMe esp_timer)
|
|
|
|
if(${IDF_TARGET} STREQUAL "esp32p4")
|
|
message(STATUS "SIMULATION_QEMU = OOF --> main standard")
|
|
list(APPEND comps esp32_p4_function_ev_board sdmmc vfs littlefs app_update esp_https_ota espcoredump esp_http_server esp_wifi )
|
|
idf_component_register(SRCS main.c communication.c
|
|
INCLUDE_DIRS "./include"
|
|
REQUIRES ${comps}
|
|
EMBED_TXTFILES ${PROJECT_DIR}/main/ca_cert.pem
|
|
EMBED_FILES "index.html")
|
|
elseif(${IDF_TARGET} STREQUAL "linux")
|
|
message(STATUS "Linux Mode --> main standard")
|
|
list(APPEND comps vfs esp_http_server)
|
|
idf_component_register(SRCS main.c communication.c
|
|
INCLUDE_DIRS "./include"
|
|
REQUIRES ${comps}
|
|
EMBED_TXTFILES ${PROJECT_DIR}/main/ca_cert.pem
|
|
EMBED_FILES "index.html")
|
|
|
|
|
|
target_compile_options(${COMPONENT_LIB} PUBLIC --coverage -DLV_LVGL_H_INCLUDE_SIMPLE )
|
|
|
|
else()
|
|
message(STATUS "SIMULATION_QEMU = On vide le main")
|
|
idf_component_register(SRCS test_main.c PRIV_REQUIRES meteofrance)
|
|
return()
|
|
endif()
|
|
|
|
#set_source_files_properties(
|
|
# PROPERTIES COMPILE_OPTIONS
|
|
# "-DLV_LVGL_H_INCLUDE_SIMPLE;-Wno-format;-DLV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(montserrat_medium_12) LV_FONT_DECLARE(montserrat_medium_18) LV_FONT_DECLARE(montserrat_medium_24)"
|
|
# )
|
|
|
|
|
|
|
|
|
|
|