1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- # Copyright (c) 2020 Actions Semiconductor Co., Ltd
- #
- # SPDX-License-Identifier: Apache-2.0
- if (CONFIG_MEDIA)
- set(ZEPHYR_CURRENT_LIBRARY acts_media)
- add_library(acts_media INTERFACE)
- zephyr_include_directories(
- include
- )
- target_include_directories(acts_media INTERFACE
- include
- )
- zephyr_library()
- zephyr_library_sources(media_mem.c)
- zephyr_library_sources_ifdef(CONFIG_MEDIA_PLAYER media_player.c)
- zephyr_library_sources_ifdef(CONFIG_MEDIA_SERVICE codec_config.c media_effect_param.c parser_config.c media_mix_pcm.c)
- add_subdirectory_ifdef(CONFIG_VIDEO_PLAYER video_player)
- add_subdirectory(libal)
- if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/libmedia/CMakeLists.txt)
- add_subdirectory_ifdef(CONFIG_MEDIA_SERVICE libmedia)
- else()
- zephyr_library_include_directories(${CMAKE_CURRENT_LIST_DIR})
- zephyr_library_import(media ${CMAKE_CURRENT_LIST_DIR}/libmedia.a)
- endif()
- zephyr_library_link_libraries_ifdef(CONFIG_MEDIA_SERVICE media)
- zephyr_library_link_libraries_ifdef(CONFIG_FAT_FILESYSTEM_ELM ELMFAT INTERFACE)
- target_link_libraries(acts_media INTERFACE zephyr_interface)
- endif()
|