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("av_codec_service_log_dfx_public_config") { 18 include_dirs = [ "$av_codec_root_dir/services/dfx/include" ] 19} 20 21ohos_shared_library("av_codec_service_dfx") { 22 branch_protector_ret = "pac_ret" 23 install_enable = true 24 25 sanitize = av_codec_sanitize 26 27 public_configs = [ ":av_codec_service_log_dfx_public_config" ] 28 29 public_external_deps = [ 30 "hilog:libhilog", 31 "media_foundation:media_foundation", 32 ] 33 34 sources = [ 35 "avcodec_dump_utils.cpp", 36 "avcodec_sysevent.cpp", 37 "avcodec_trace.cpp", 38 "avcodec_xcollie.cpp", 39 ] 40 41 include_dirs = [ 42 "./include", 43 "$av_codec_root_dir/interfaces/inner_api/native", 44 "$av_codec_root_dir/interfaces/kits/c", 45 ] 46 47 defines = [] 48 defines += av_codec_defines 49 50 cflags = [ 51 "-std=c++17", 52 "-fno-rtti", 53 "-fno-exceptions", 54 "-Wall", 55 "-fno-common", 56 "-fstack-protector-strong", 57 "-Wshadow", 58 "-FPIC", 59 "-FS", 60 "-O2", 61 "-D_FORTIFY_SOURCE=2", 62 "-Wformat=2", 63 "-Wfloat-equal", 64 "-Wdate-time", 65 "-Werror", 66 "-Wextra", 67 "-Wimplicit-fallthrough", 68 "-Wsign-compare", 69 "-Wunused-parameter", 70 ] 71 72 external_deps = [ 73 "c_utils:utils", 74 "hicollie:libhicollie", 75 "hidumper:lib_dump_usage", 76 "hisysevent:libhisysevent", 77 "hitrace:hitrace_meter", 78 "init:libbegetutil", 79 ] 80 81 subsystem_name = "multimedia" 82 part_name = "av_codec" 83} 84