mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-04-20 21:49:31 +01:00
Conflicts: README.md build-scripts/ESP32-A1S-sdkconfig.defaults build-scripts/I2S-4MFlash-sdkconfig.defaults build-scripts/NonOTA-I2S-4MFlash-sdkconfig.defaults build-scripts/NonOTA-SqueezeAmp-sdkconfig.defaults build-scripts/SqueezeAmp4MBFlash-sdkconfig.defaults build-scripts/SqueezeAmp8MBFlash-sdkconfig.defaults
20 lines
1.0 KiB
CMake
20 lines
1.0 KiB
CMake
idf_build_get_property(idf_path IDF_PATH)
|
|
idf_component_register( SRCS cmd_squeezelite.c
|
|
INCLUDE_DIRS .
|
|
PRIV_REQUIRES spi_flash bootloader_support partition_table bootloader_support console codecs squeezelite newlib pthread tools platform_config display )
|
|
|
|
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--undefined=feof")
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--undefined=log")
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--undefined=fdopen")
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--undefined=fileno")
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--undefined=fstat")
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--undefined=lround")
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--undefined=esp_app_desc")
|
|
|
|
idf_build_get_property(project_ver PROJECT_VER)
|
|
string(SUBSTRING "${project_ver}" 0 31 PROJECT_VER_CUT)
|
|
set_source_files_properties(cmd_squeezelite.c PROPERTIES COMPILE_DEFINITIONS "PROJECT_VER=\"${PROJECT_VER_CUT}\"; PROJECT_NAME=\"squeezelite\"")
|
|
|
|
|