2
0

CMakeLists.txt 994 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. driver_bt
  10. services
  11. spotify
  12. raop
  13. display
  14. tools
  15. audio
  16. _override
  17. EMBED_FILES vu_s.data arrow.data
  18. )
  19. set_source_files_properties(mad.c pcm.c flac.c alac.c helix-aac.c vorbis.c opus.c
  20. PROPERTIES COMPILE_FLAGS
  21. -Wno-maybe-uninitialized
  22. )
  23. set_source_files_properties(wm8978/wm8978.c
  24. PROPERTIES COMPILE_FLAGS
  25. -Wno-unused-function
  26. )
  27. add_definitions(-DLINKALL -DLOOPBACK -DNO_FAAD -DEMBEDDED -DTREMOR_ONLY -DCUSTOM_VERSION=${BUILD_NUMBER})
  28. if (${DEPTH} EQUAL "32")
  29. add_definitions(-DBYTES_PER_FRAME=8)
  30. else()
  31. add_definitions(-DRESAMPLE16 -DBYTES_PER_FRAME=4)
  32. endif()
  33. if (NOT DEFINED AAC_DISABLED_SBR)
  34. add_definitions(-DAAC_ENABLE_SBR)
  35. endif()
  36. add_compile_options (-O3 )