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