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_gst_avmeta_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 "-Wno-deprecated-declarations", 37 "-Wextra", 38 "-Wimplicit-fallthrough", 39 "-Wsign-compare", 40 "-Wunused-parameter", 41 ] 42 43 include_dirs = [ 44 "//foundation/multimedia/player_framework/interfaces/inner_api/native", 45 "//foundation/multimedia/player_framework/services/services/engine_intf", 46 "//foundation/multimedia/player_framework/services/utils/include", 47 "//foundation/multimedia/player_framework/services/include", 48 "//foundation/multimedia/player_framework/services/engine/gstreamer/common/playbin_adapter", 49 "//foundation/multimedia/player_framework/services/engine/gstreamer/common/metadata", 50 "//foundation/multimedia/player_framework/services/engine/gstreamer/common/message", 51 "//foundation/multimedia/player_framework/services/engine/gstreamer/common/utils", 52 "../common/appsrc_engine", 53 "//foundation/graphic/standard/interfaces/innerkits/surface", 54 "//foundation/graphic/standard/interfaces/innerkits/common", 55 "//foundation/multimedia/player_framework/services/engine/gstreamer/plugins/common", 56 "//foundation/multimedia/player_framework/services/engine/gstreamer/plugins/sink/memsink", 57 "//drivers/peripheral/base", 58 "//drivers/peripheral/display/interfaces/include", 59 "//commonlibrary/c_utils/base/include", 60 "//third_party/gstreamer/gstreamer", 61 "//third_party/gstreamer/gstreamer/libs", 62 "//third_party/gstreamer/gstplugins_base/gst-libs", 63 "//third_party/glib/glib", 64 "//third_party/glib", 65 "//third_party/glib/gmodule", 66 "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include", 67 ] 68} 69 70ohos_static_library("media_engine_gst_avmeta") { 71 sources = [ 72 "avmeta_buffer_blocker.cpp", 73 "avmeta_elem_meta_collector.cpp", 74 "avmeta_frame_converter.cpp", 75 "avmeta_frame_extractor.cpp", 76 "avmeta_meta_collector.cpp", 77 "avmeta_sinkprovider.cpp", 78 "avmetadatahelper_engine_gst_impl.cpp", 79 ] 80 81 configs = [ 82 ":media_engine_gst_avmeta_config", 83 "//foundation/multimedia/player_framework/services/dfx:media_service_log_dfx_public_config", 84 ] 85 86 deps = [ 87 "//foundation/multimedia/player_framework/services/dfx:media_service_log_dfx", 88 "//foundation/multimedia/player_framework/services/engine/gstreamer/plugins:media_engine_gst_plugins_common", 89 "//foundation/multimedia/player_framework/services/utils:media_service_utils", 90 ] 91 92 external_deps = [ 93 "hilog:libhilog", 94 "image_framework:image_native", 95 ] 96 97 subsystem_name = "multimedia" 98 part_name = "player_framework" 99} 100