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("//build/ohos.gni") 15import("//foundation/multimedia/av_codec/config.gni") 16 17ohos_static_library("av_codec_engine_common") { 18 sanitize = av_codec_sanitize 19 20 include_dirs = [ 21 "$av_codec_root_dir/interfaces/inner_api/native", 22 "$av_codec_root_dir/interfaces/kits/c", 23 "$av_codec_root_dir/services/dfx/include", 24 "$av_codec_root_dir/services/engine/common/include", 25 "$av_codec_root_dir/services/utils/include", 26 "$media_foundation_root_dir/interface/inner_api", 27 "$media_foundation_root_dir/src/buffer/avbuffer/include", 28 "$media_foundation_root_dir/interface/kits/c", 29 "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include", 30 "//drivers/peripheral/display/interfaces/include", 31 "//third_party/ffmpeg", 32 ] 33 34 sources = [ 35 "$av_codec_root_dir/services/engine/common/codec_utils.cpp", 36 "$av_codec_root_dir/services/engine/common/ffmpeg_converter.cpp", 37 "$av_codec_root_dir/services/engine/common/fsurface_memory.cpp", 38 ] 39 40 public_deps = [ 41 "$av_codec_root_dir/services/dfx:av_codec_service_dfx", 42 "$av_codec_root_dir/services/utils:av_codec_service_utils", 43 ] 44 45 deps = [ "//third_party/bounds_checking_function:libsec_static" ] 46 47 external_deps = [ 48 "c_utils:utils", 49 "graphic_surface:surface", 50 "graphic_surface:sync_fence", 51 "hilog:libhilog", 52 "hisysevent:libhisysevent", 53 "hitrace:hitrace_meter", 54 "media_foundation:media_foundation", 55 ] 56 57 subsystem_name = "multimedia" 58 part_name = "av_codec" 59} 60