CMakeLists.txt 873 B

123456789101112131415161718192021222324252627282930313233343536
  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. driver_bt
  10. services
  11. spotify
  12. raop
  13. display
  14. tools
  15. audio
  16. EMBED_FILES vu_s.data arrow.data
  17. )
  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. add_definitions(-DLINKALL -DLOOPBACK -DNO_FAAD -DEMBEDDED -DTREMOR_ONLY -DCUSTOM_VERSION=${BUILD_NUMBER})
  23. if (${DEPTH} EQUAL "32")
  24. add_definitions(-DBYTES_PER_FRAME=8)
  25. else()
  26. add_definitions(-DRESAMPLE16 -DBYTES_PER_FRAME=4)
  27. endif()
  28. if (NOT DEFINED AAC_DISABLED_SBR)
  29. add_definitions(-DAAC_ENABLE_SBR)
  30. endif()
  31. add_compile_options (-O3 )