1# Copyright (c) 2023 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13# 14import("//foundation/multimedia/av_codec/config.gni") 15 16group("plugin_demuxer_ffmpeg") { 17 deps = [ ":av_codec_plugin_FFmpegDemuxer" ] 18} 19 20# standard 21import("//build/ohos.gni") 22ohos_shared_library("av_codec_plugin_FFmpegDemuxer") { 23 sources = [ 24 "$av_codec_root_dir/services/engine/plugin/core/hevc_parser_manager.cpp", 25 "block_queue_pool.cpp", 26 "ffmpeg_demuxer_plugin.cpp", 27 ] 28 29 include_dirs = [ 30 "//third_party/ffmpeg", 31 "$media_foundation_root_dir/interface/inner_api", 32 ] 33 34 public_configs = 35 [ "$av_codec_root_dir/services/engine/plugin:plugin_presets" ] 36 37 public_deps = [ "$av_codec_root_dir/services/dfx:av_codec_service_dfx" ] 38 39 deps = [ 40 "//third_party/bounds_checking_function:libsec_static", 41 "//third_party/ffmpeg:libohosffmpeg", 42 ] 43 44 external_deps = [ 45 "hilog:libhilog", 46 "media_foundation:media_foundation", 47 ] 48 49 relative_install_dir = "media/av_codec_plugins" 50 subsystem_name = "multimedia" 51 part_name = "av_codec" 52} 53