mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 12:07:09 +03:00
40 lines
912 B
CMake
40 lines
912 B
CMake
idf_component_register( SRC_DIRS . external ac101 tas57xx
|
|
INCLUDE_DIRS . ac101
|
|
PRIV_REQUIRES
|
|
codecs
|
|
newlib
|
|
esp_common
|
|
esp-dsp
|
|
platform_config
|
|
driver_bt
|
|
services
|
|
raop
|
|
display
|
|
tools
|
|
audio
|
|
EMBED_FILES vu.data
|
|
)
|
|
|
|
set_source_files_properties(mad.c
|
|
PROPERTIES COMPILE_FLAGS
|
|
-Wno-maybe-uninitialized
|
|
)
|
|
set_source_files_properties(pcm.c
|
|
PROPERTIES COMPILE_FLAGS
|
|
-Wno-maybe-uninitialized
|
|
)
|
|
|
|
set_source_files_properties(flac.c
|
|
PROPERTIES COMPILE_FLAGS
|
|
-Wno-maybe-uninitialized
|
|
)
|
|
|
|
add_definitions(-DLINKALL -DLOOPBACK -DNO_FAAD -DEMBEDDED -DTREMOR_ONLY -DCUSTOM_VERSION=${BUILD_NUMBER})
|
|
if(DEFINED DEPTH AND ${DEPTH} EQUAL "32")
|
|
add_definitions(-DBYTES_PER_FRAME=8)
|
|
else()
|
|
add_definitions(-DRESAMPLE16 -DBYTES_PER_FRAME=4)
|
|
endif()
|
|
|
|
add_compile_options (-O3 )
|