mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-05-21 04:35:31 +01:00
applied platformio structure
This commit is contained in:
48
lib/squeezelite/CMakeLists.txt
Normal file
48
lib/squeezelite/CMakeLists.txt
Normal file
@@ -0,0 +1,48 @@
|
||||
# for the forgetful, REQUIRES cannot use CONFIG_XXX due to parsing order
|
||||
if(IDF_TARGET STREQUAL "esp32")
|
||||
set(target_requires "driver_bt")
|
||||
endif()
|
||||
|
||||
idf_component_register( SRC_DIRS . external ac101 tas57xx wm8978
|
||||
INCLUDE_DIRS . ac101
|
||||
PRIV_REQUIRES
|
||||
codecs
|
||||
newlib
|
||||
esp_common
|
||||
esp-dsp
|
||||
platform_config
|
||||
services
|
||||
spotify
|
||||
raop
|
||||
display
|
||||
tools
|
||||
audio
|
||||
led_strip
|
||||
_override
|
||||
${target_requires}
|
||||
EMBED_FILES vu_s.data arrow.data
|
||||
)
|
||||
|
||||
set_source_files_properties(mad.c pcm.c flac.c alac.c helix-aac.c vorbis.c opus.c
|
||||
PROPERTIES COMPILE_FLAGS
|
||||
-Wno-maybe-uninitialized
|
||||
)
|
||||
|
||||
set_source_files_properties(wm8978/wm8978.c
|
||||
PROPERTIES COMPILE_FLAGS
|
||||
-Wno-unused-function
|
||||
)
|
||||
|
||||
add_definitions(-DLINKALL -DLOOPBACK -DNO_FAAD -DEMBEDDED -DTREMOR_ONLY -DCUSTOM_VERSION=${BUILD_NUMBER})
|
||||
|
||||
if (${DEPTH} EQUAL "32")
|
||||
add_definitions(-DBYTES_PER_FRAME=8)
|
||||
else()
|
||||
add_definitions(-DRESAMPLE16 -DBYTES_PER_FRAME=4)
|
||||
endif()
|
||||
|
||||
if (NOT DEFINED AAC_DISABLED_SBR)
|
||||
add_definitions(-DAAC_ENABLE_SBR)
|
||||
endif()
|
||||
|
||||
add_compile_options (-O3 )
|
||||
Reference in New Issue
Block a user