1# Copyright (C) 2021 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") 15 16config("media_engine_common_avcodeclist_config") { 17 visibility = [ ":*" ] 18 19 cflags = [ 20 "-std=c++17", 21 "-fno-rtti", 22 "-fno-exceptions", 23 "-Wall", 24 "-fno-common", 25 "-fstack-protector-strong", 26 "-Wshadow", 27 "-FPIC", 28 "-FS", 29 "-O2", 30 "-D_FORTIFY_SOURCE=2", 31 "-fvisibility=hidden", 32 "-Wformat=2", 33 "-Wfloat-equal", 34 "-Wdate-time", 35 "-Werror", 36 "-Wextra", 37 "-Wimplicit-fallthrough", 38 "-Wsign-compare", 39 "-Wunused-parameter", 40 ] 41 42 include_dirs = [ 43 "//foundation/multimedia/player_framework/services/engine/common/avcodeclist", 44 "//foundation/multimedia/player_framework/services/utils/include", 45 "//foundation/multimedia/player_framework/interfaces/inner_api/native", 46 "//foundation/multimedia/player_framework/services/services/engine_intf", 47 "//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include", 48 "//commonlibrary/c_utils/base/include", 49 "//third_party/libxml2/include", 50 ] 51} 52 53ohos_static_library("media_engine_common_avcodeclist") { 54 sources = [ 55 "avcodec_ability_singleton.cpp", 56 "avcodec_xml_parser.cpp", 57 "avcodeclist_engine_gst_impl.cpp", 58 ] 59 60 configs = [ 61 ":media_engine_common_avcodeclist_config", 62 "//foundation/multimedia/player_framework/services/dfx:media_service_log_dfx_public_config", 63 ] 64 65 deps = [ 66 "//foundation/multimedia/player_framework/services/dfx:media_service_log_dfx", 67 "//foundation/multimedia/player_framework/services/utils:media_format", 68 "//third_party/libxml2:xml2", 69 ] 70 71 external_deps = [ 72 "c_utils:utils", 73 "hiviewdfx_hilog_native:libhilog", 74 ] 75 76 subsystem_name = "multimedia" 77 part_name = "multimedia_player_framework" 78} 79