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_loader_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 "-FPIC", 27 "-FS", 28 "-O2", 29 "-D_FORTIFY_SOURCE=2", 30 "-fvisibility=hidden", 31 "-Wformat=2", 32 "-Wfloat-equal", 33 "-Wdate-time", 34 "-Werror", 35 "-Wextra", 36 "-Wimplicit-fallthrough", 37 "-Wsign-compare", 38 "-Wunused-parameter", 39 ] 40 41 include_dirs = [ 42 "//commonlibrary/c_utils/base/include", 43 "//third_party/glib/glib", 44 "//third_party/glib", 45 "//third_party/gstreamer/gstreamer", 46 "//third_party/gstreamer/gstreamer/libs", 47 "//foundation/multimedia/player_framework/services/engine/gstreamer/dfx/", 48 "//foundation/multimedia/player_framework/services/utils/include", 49 "//foundation/multimedia/player_framework/interfaces/inner_api/native", 50 ] 51} 52 53ohos_static_library("media_engine_gst_loader") { 54 sources = [ "gst_loader.cpp" ] 55 56 configs = [ 57 ":media_engine_gst_loader_config", 58 "//foundation/multimedia/player_framework/services/dfx:media_service_log_dfx_public_config", 59 ] 60 61 deps = [ 62 "//foundation/multimedia/player_framework/services/dfx:media_service_log_dfx", 63 "//foundation/multimedia/player_framework/services/engine/gstreamer/dfx:media_engine_dfx", 64 "//third_party/glib:glib", 65 "//third_party/glib:gobject", 66 "//third_party/gstreamer/gstreamer:gstreamer", 67 ] 68 69 external_deps = [ 70 "c_utils:utils", 71 "hilog:libhilog", 72 "init:libbegetutil", 73 "media_foundation:media_foundation", 74 "qos_manager:qos", 75 ] 76 77 subsystem_name = "multimedia" 78 part_name = "player_framework" 79} 80