CMakeLists.txt 975 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. idf_component_register( SRC_DIRS . external ac101 tas57xx wm8978
  2. INCLUDE_DIRS . ac101
  3. PRIV_REQUIRES
  4. codecs
  5. newlib
  6. esp_common
  7. esp-dsp
  8. platform_config
  9. services
  10. spotify
  11. raop
  12. display
  13. tools
  14. audio
  15. EMBED_FILES vu_s.data arrow.data
  16. )
  17. # _override
  18. set_source_files_properties(mad.c pcm.c flac.c alac.c helix-aac.c vorbis.c opus.c
  19. PROPERTIES COMPILE_FLAGS
  20. -Wno-maybe-uninitialized
  21. )
  22. set_source_files_properties(wm8978/wm8978.c
  23. PROPERTIES COMPILE_FLAGS
  24. -Wno-unused-function
  25. )
  26. add_definitions(-DLINKALL -DLOOPBACK -DNO_FAAD -DEMBEDDED -DTREMOR_ONLY -DCUSTOM_VERSION=${BUILD_NUMBER})
  27. if (${DEPTH} EQUAL "32")
  28. add_definitions(-DBYTES_PER_FRAME=8)
  29. else()
  30. add_definitions(-DRESAMPLE16 -DBYTES_PER_FRAME=4)
  31. endif()
  32. if (NOT DEFINED AAC_DISABLED_SBR)
  33. add_definitions(-DAAC_ENABLE_SBR)
  34. endif()
  35. add_compile_options (-O3 )