mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-11 22:17:17 +03:00
migrating to esp-idf V4.0 gcc 8.2 and CMake
This commit is contained in:
65
components/squeezelite/CMakeLists.txt
Normal file
65
components/squeezelite/CMakeLists.txt
Normal file
@@ -0,0 +1,65 @@
|
||||
|
||||
idf_component_register(SRCS "alac.c"
|
||||
"buffer.c"
|
||||
"controls.c"
|
||||
"decode_external.c"
|
||||
"decode.c"
|
||||
"display.c"
|
||||
"embedded.c"
|
||||
"flac.c"
|
||||
"helix-aac.c"
|
||||
"mad.c"
|
||||
"main.c"
|
||||
"mpg.c"
|
||||
"opus.c"
|
||||
"output_bt.c"
|
||||
"output_embedded.c"
|
||||
"output_i2s.c"
|
||||
"output_pack.c"
|
||||
"output_visu.c"
|
||||
"output.c"
|
||||
"pcm.c"
|
||||
"process.c"
|
||||
"resample.c"
|
||||
"resample16.c"
|
||||
"slimproto.c"
|
||||
"stream.c"
|
||||
"utils.c"
|
||||
"vorbis.c"
|
||||
"a1s/ac101.c"
|
||||
"tas57xx/dac_57xx.c"
|
||||
"external/dac_external.c"
|
||||
INCLUDE_DIRS . a1s
|
||||
REQUIRES newlib
|
||||
esp_common
|
||||
esp-dsp
|
||||
platform_display
|
||||
platform_config
|
||||
platform_bluetooth
|
||||
codecs
|
||||
services
|
||||
raop
|
||||
)
|
||||
|
||||
|
||||
|
||||
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(-O3 -DLINKALL -DLOOPBACK -DNO_FAAD -DRESAMPLE16 -DEMBEDDED -DTREMOR_ONLY -DBYTES_PER_FRAME=4)
|
||||
#add_library(platform_bluetooth STATIC IMPORTED GLOBAL)
|
||||
#set_property(TARGET platform_bt PROPERTY IMPORTED_LOCATION "${COMPONENT_DIR}/../freetype/libfreetype.a")
|
||||
#add_library(platform_bluetooth STATIC IMPORTED GLOBAL)
|
||||
#set_property(TARGET platform_bluetooth PROPERTY IMPORTED_LOCATION "../platform_bluetooth/platform_bluetooth.a")
|
||||
#target_link_libraries(${COMPONENT_TARGET} PUBLIC platform_bluetooth)
|
||||
Reference in New Issue
Block a user