Merge branch 'audio_develop_test' of https://gitee.com/zjskpajs/av_codec into audio_develop_test

This commit is contained in:
gaoziyu 2023-04-27 16:37:07 +08:00 committed by gaoziyu
commit 61281a30ee
3 changed files with 30 additions and 45 deletions

View File

@ -1,22 +1,20 @@
import("//build/ohos.gni")
import("//foundation/multimedia/av_codec/config.gni")
AV_CODEC_ROOT_DIR = "//foundation/multimedia/av_codec"
ohos_static_library("av_codec_codec_base"){
include_dirs=[
"//foundation/graphic/graphic_2d/frameworks/surface/include",
"$AV_CODEC_ROOT_DIR/services/engine/base/include",
"$AV_CODEC_ROOT_DIR/services/engine/common/include",
"$AV_CODEC_ROOT_DIR/interfaces/inner_api/native",
"$AV_CODEC_ROOT_DIR/interfaces/kits/c",
"$AV_CODEC_ROOT_DIR/services/dfx/include",
"$av_codec_root_dir/services/engine/base/include",
"$av_codec_root_dir/services/engine/common/include",
"$av_codec_root_dir/interfaces/inner_api/native",
"$av_codec_root_dir/interfaces/kits/c",
"$av_codec_root_dir/services/dfx/include",
"//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include",
"//third_party/ffmpeg",
]
sources=[
"$AV_CODEC_ROOT_DIR/services/engine/base/codecbase.cpp"
"$av_codec_root_dir/services/engine/base/codecbase.cpp"
]
deps=[

View File

@ -1,35 +1,33 @@
import("//build/ohos.gni")
import("//foundation/multimedia/av_codec/config.gni")
AV_CODEC_ROOT_DIR = "//foundation/multimedia/av_codec"
ohos_static_library("av_codec_audio_ffmpeg_codec"){
include_dirs=[
"//foundation/graphic/graphic_2d/frameworks/surface/include",
"//commonlibrary/c_utils/base/include",
"$AV_CODEC_ROOT_DIR/services/engine/base/include",
"$AV_CODEC_ROOT_DIR/services/engine/common/include",
"$AV_CODEC_ROOT_DIR/services/engine/factory",
"$AV_CODEC_ROOT_DIR/services/utils/include",
"$AV_CODEC_ROOT_DIR/services/engine/codec/include/audio",
"$AV_CODEC_ROOT_DIR/services/engine/codec/include/audio/decoder",
"$AV_CODEC_ROOT_DIR/interfaces/inner_api/native",
"$AV_CODEC_ROOT_DIR/interfaces/kits/c",
"$AV_CODEC_ROOT_DIR/services/dfx/include",
"$av_codec_root_dir/services/engine/base/include",
"$av_codec_root_dir/services/engine/common/include",
"$av_codec_root_dir/services/engine/factory",
"$av_codec_root_dir/services/utils/include",
"$av_codec_root_dir/services/engine/codec/include/audio",
"$av_codec_root_dir/services/engine/codec/include/audio/decoder",
"$av_codec_root_dir/interfaces/inner_api/native",
"$av_codec_root_dir/interfaces/kits/c",
"$av_codec_root_dir/services/dfx/include",
"//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include",
"//third_party/ffmpeg",
]
sources=[
"$AV_CODEC_ROOT_DIR/services/engine/codec/audio/audio_buffer_info.cpp",
"$AV_CODEC_ROOT_DIR/services/engine/codec/audio/audio_buffers_manager.cpp",
"$AV_CODEC_ROOT_DIR/services/engine/codec/audio/audio_codec_worker.cpp",
"$AV_CODEC_ROOT_DIR/services/engine/codec/audio/audio_ffmpeg_adapter.cpp",
"$AV_CODEC_ROOT_DIR/services/engine/codec/audio/decoder/audio_ffmpeg_decoder_plugin.cpp",
"$AV_CODEC_ROOT_DIR/services/engine/codec/audio/decoder/audio_ffmpeg_aac_decoder_plugin.cpp",
"$AV_CODEC_ROOT_DIR/services/engine/codec/audio/decoder/audio_ffmpeg_flac_decoder_plugin.cpp",
"$AV_CODEC_ROOT_DIR/services/engine/codec/audio/decoder/audio_ffmpeg_mp3_decoder_plugin.cpp",
"$AV_CODEC_ROOT_DIR/services/engine/codec/audio/decoder/audio_ffmpeg_vorbis_decoder_plugin.cpp",
"$av_codec_root_dir/services/engine/codec/audio/audio_buffer_info.cpp",
"$av_codec_root_dir/services/engine/codec/audio/audio_buffers_manager.cpp",
"$av_codec_root_dir/services/engine/codec/audio/audio_codec_worker.cpp",
"$av_codec_root_dir/services/engine/codec/audio/audio_ffmpeg_adapter.cpp",
"$av_codec_root_dir/services/engine/codec/audio/decoder/audio_ffmpeg_decoder_plugin.cpp",
"$av_codec_root_dir/services/engine/codec/audio/decoder/audio_ffmpeg_aac_decoder_plugin.cpp",
"$av_codec_root_dir/services/engine/codec/audio/decoder/audio_ffmpeg_flac_decoder_plugin.cpp",
"$av_codec_root_dir/services/engine/codec/audio/decoder/audio_ffmpeg_mp3_decoder_plugin.cpp",
"$av_codec_root_dir/services/engine/codec/audio/decoder/audio_ffmpeg_vorbis_decoder_plugin.cpp",
]
deps=[

View File

@ -1,29 +1,18 @@
import("//build/ohos.gni")
import("//foundation/multimedia/av_codec/config.gni")
AV_CODEC_ROOT_DIR = "//foundation/multimedia/av_codec"
config("av_codec_engine_common_config"){
}
ohos_shared_library("av_codec_engine_common"){
install_enable = true
ohos_static_library("av_codec_engine_common"){
include_dirs=[
"//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include",
"//commonlibrary/c_utils/base/include",
"$AV_CODEC_ROOT_DIR/services/engine/common/include",
"$AV_CODEC_ROOT_DIR/services/utils/include",
"$AV_CODEC_ROOT_DIR/interfaces/inner_api/native",
"$AV_CODEC_ROOT_DIR/services/dfx/include",
"$av_codec_root_dir/services/engine/common/include",
"$av_codec_root_dir/services/utils/include",
"$av_codec_root_dir/interfaces/inner_api/native",
"$av_codec_root_dir/services/dfx/include",
]
sources=[
"$AV_CODEC_ROOT_DIR/services/engine/common/share_memory.cpp",
]
configs = [
":av_codec_engine_common_config"
"$av_codec_root_dir/services/engine/common/share_memory.cpp",
]
public_deps= [