CMakeLists.txt 844 B

1234567891011121314151617181920212223242526272829303132333435
  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. raop
  12. display
  13. tools
  14. audio
  15. EMBED_FILES vu.data
  16. )
  17. set_source_files_properties(mad.c pcm.c flac.c alac.c helix-aac.c vorbis.c opus.c
  18. PROPERTIES COMPILE_FLAGS
  19. -Wno-maybe-uninitialized
  20. )
  21. add_definitions(-DLINKALL -DLOOPBACK -DNO_FAAD -DEMBEDDED -DTREMOR_ONLY -DCUSTOM_VERSION=${BUILD_NUMBER})
  22. if (${DEPTH} EQUAL "32")
  23. add_definitions(-DBYTES_PER_FRAME=8)
  24. else()
  25. add_definitions(-DRESAMPLE16 -DBYTES_PER_FRAME=4)
  26. endif()
  27. if (NOT DEFINED AAC_DISABLED_SBR)
  28. add_definitions(-DAAC_ENABLE_SBR)
  29. endif()
  30. add_compile_options (-O3 )