CMakeLists.txt 758 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Copyright (c) 2020 Actions Semiconductor Co., Ltd
  2. #
  3. # SPDX-License-Identifier: Apache-2.0
  4. if (CONFIG_AUDIO)
  5. set(ZEPHYR_CURRENT_LIBRARY acts_audio)
  6. add_library(acts_audio INTERFACE)
  7. zephyr_include_directories(
  8. .
  9. include
  10. )
  11. target_include_directories(acts_audio INTERFACE
  12. include
  13. )
  14. zephyr_library()
  15. zephyr_library_sources(
  16. audio_aps.c
  17. audio_policy.c
  18. audio_record.c
  19. audio_system.c
  20. audio_track.c
  21. )
  22. zephyr_library_sources_ifdef(CONFIG_VOLUME_MANAGER
  23. volume_manager.c
  24. )
  25. zephyr_library_sources_ifdef(CONFIG_TWS
  26. audio_tws_aps.c
  27. )
  28. zephyr_library_link_libraries(acts_audio)
  29. zephyr_library_link_libraries_ifdef(CONFIG_FAT_FILESYSTEM_ELM ELMFAT INTERFACE)
  30. target_link_libraries(acts_audio INTERFACE zephyr_interface)
  31. endif()