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