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 17config("fcodec_public_cfg") { 18 include_dirs = [ 19 "$av_codec_root_dir/services/engine/base/include", 20 "$av_codec_root_dir/services/engine/codec/video/fcodec", 21 "$av_codec_root_dir/interfaces/inner_api/native", 22 ] 23} 24 25ohos_shared_library("fcodec") { 26 branch_protector_ret = "pac_ret" 27 install_enable = true 28 sanitize = av_codec_sanitize 29 public_configs = [ ":fcodec_public_cfg" ] 30 include_dirs = [ 31 "$av_codec_root_dir/services/dfx/include", 32 "$av_codec_root_dir/services/engine/common/include", 33 "$av_codec_root_dir/services/utils/include", 34 ] 35 36 defines = [] 37 defines += av_codec_defines 38 39 sources = [ 40 "$av_codec_root_dir/services/engine/codec/video/fcodec/fcodec.cpp", 41 "$av_codec_root_dir/services/engine/codec/video/fcodec/fcodec_api.cpp", 42 ] 43 44 deps = [ 45 "$av_codec_root_dir/services/engine/base:av_codec_codec_base", 46 "$av_codec_root_dir/services/engine/common:av_codec_engine_common", 47 ] 48 49 public_deps = [ 50 "$av_codec_root_dir/services/dfx:av_codec_service_dfx", 51 "$av_codec_root_dir/services/utils:av_codec_service_utils", 52 ] 53 54 external_deps = [ 55 "bounds_checking_function:libsec_static", 56 "c_utils:utils", 57 "ffmpeg:libohosffmpeg", 58 "graphic_surface:surface", 59 "graphic_surface:sync_fence", 60 "hilog:libhilog", 61 "hisysevent:libhisysevent", 62 "hitrace:hitrace_meter", 63 "init:libbegetutil", 64 "media_foundation:media_foundation", 65 ] 66 67 if (build_variant != "user") { 68 defines += [ "BUILD_ENG_VERSION" ] 69 } 70 71 subsystem_name = "multimedia" 72 part_name = "av_codec" 73} 74