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_shared_library("av_codec_service_utils") { 18 branch_protector_ret = "pac_ret" 19 install_enable = true 20 21 sanitize = av_codec_sanitize 22 23 include_dirs = [ 24 "$av_codec_root_dir/interfaces/inner_api/native", 25 "$av_codec_root_dir/interfaces/kits/c", 26 "$av_codec_root_dir/services/utils/include", 27 "$av_codec_root_dir/services/dfx/include", 28 ] 29 30 sources = [ "task_thread.cpp" ] 31 32 cflags = [ 33 "-std=c++17", 34 "-fno-rtti", 35 "-fno-exceptions", 36 "-Wall", 37 "-fno-common", 38 "-fstack-protector-strong", 39 "-Wshadow", 40 "-FPIC", 41 "-FS", 42 "-O2", 43 "-D_FORTIFY_SOURCE=2", 44 "-fvisibility=hidden", 45 "-Wformat=2", 46 "-Wfloat-equal", 47 "-Wdate-time", 48 "-Werror", 49 "-Wextra", 50 "-Wimplicit-fallthrough", 51 "-Wsign-compare", 52 "-Wunused-parameter", 53 ] 54 55 external_deps = [ 56 "c_utils:utils", 57 "hilog:libhilog", 58 "hisysevent:libhisysevent", 59 "hitrace:hitrace_meter", 60 "init:libbegetutil", 61 ] 62 63 subsystem_name = "multimedia" 64 part_name = "av_codec" 65} 66