2
0

CMakeLists.txt 1.1 KB

1234567891011121314151617181920212223242526
  1. idf_component_register(
  2. INCLUDE_DIRS . ./inc inc/alac inc/helix-aac inc/mad inc/resample16 inc/soxr inc/vorbis inc/opus
  3. )
  4. if (DEFINED AAC_DISABLE_SBR)
  5. add_prebuilt_library(libhelix-aac lib/libhelix-aac.a )
  6. else ()
  7. add_prebuilt_library(libhelix-aac lib/libhelix-aac-sbr.a )
  8. endif()
  9. add_prebuilt_library(libmad lib/libmad.a)
  10. add_prebuilt_library(libFLAC lib/libFLAC.a )
  11. add_prebuilt_library(libvorbisidec lib/libvorbisidec.a )
  12. add_prebuilt_library(libogg lib/libogg.a )
  13. add_prebuilt_library(libalac lib/libalac.a )
  14. add_prebuilt_library(libresample16 lib/libresample16.a )
  15. add_prebuilt_library(libopus lib/libopus.a )
  16. target_link_libraries(${COMPONENT_LIB} INTERFACE libmad)
  17. target_link_libraries(${COMPONENT_LIB} INTERFACE libFLAC)
  18. target_link_libraries(${COMPONENT_LIB} INTERFACE libhelix-aac)
  19. target_link_libraries(${COMPONENT_LIB} INTERFACE libvorbisidec)
  20. target_link_libraries(${COMPONENT_LIB} INTERFACE libogg)
  21. target_link_libraries(${COMPONENT_LIB} INTERFACE libalac)
  22. target_link_libraries(${COMPONENT_LIB} INTERFACE libresample16)
  23. target_link_libraries(${COMPONENT_LIB} INTERFACE libopus)