OVMS3-idf/components/ulp/component_ulp_common.cmake
2020-02-18 00:12:56 +00:00

18 lines
690 B
CMake

message(WARNING "Embedding ULP binary by including \
${IDF_PATH}/components/ulp/component_ulp_common.cmake is deprecated. Use `ulp_embed_binary` instead. \
See API Guide for more details.")
spaces2list(ULP_S_SOURCES)
spaces2list(ULP_EXP_DEP_SRCS)
foreach(ulp_s_source ${ULP_S_SOURCES})
get_filename_component(ulp_src ${ulp_s_source} ABSOLUTE BASE_DIR ${COMPONENT_DIR})
list(APPEND ulp_srcs ${ulp_src})
endforeach()
foreach(ulp_exp_dep_src ${ULP_EXP_DEP_SRCS})
get_filename_component(ulp_dep_src ${ulp_exp_dep_src} ABSOLUTE BASE_DIR ${COMPONENT_DIR})
list(APPEND ulp_dep_srcs ${ulp_dep_src})
endforeach()
ulp_embed_binary(${ULP_APP_NAME} "${ulp_srcs}" "${ulp_dep_srcs}")