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("gst_codec_bin_config") { 17 visibility = [ ":*" ] 18 19 cflags = [ 20 "-fno-rtti", 21 "-fno-exceptions", 22 "-Wall", 23 "-fno-common", 24 "-fstack-protector-strong", 25 "-FPIC", 26 "-FS", 27 "-O2", 28 "-D_FORTIFY_SOURCE=2", 29 "-fvisibility=hidden", 30 "-Wformat=2", 31 "-Wfloat-equal", 32 "-Wdate-time", 33 "-Werror", 34 "-Wextra", 35 "-Wimplicit-fallthrough", 36 "-Wsign-compare", 37 "-Wunused-parameter", 38 ] 39 40 include_dirs = [ 41 "include", 42 "//commonlibrary/c_utils/base/include", 43 "//foundation/multimedia/player_framework/services/engine/gstreamer/common/utils", 44 "//foundation/multimedia/player_framework/services/engine/gstreamer/plugins/common", 45 "//third_party/gstreamer/gstreamer", 46 "//third_party/gstreamer/gstreamer/libs", 47 "//third_party/gstreamer/gstplugins_base", 48 "//third_party/gstreamer/gstplugins_base/gst-libs", 49 "//third_party/glib/glib", 50 "//third_party/glib", 51 "//third_party/glib/gmodule", 52 ] 53} 54 55ohos_shared_library("gst_codec_bin") { 56 install_enable = true 57 58 sanitize = { 59 cfi = true 60 cfi_cross_dso = true 61 debug = false 62 blocklist = "../../../../../../cfi_blocklist.txt" 63 } 64 65 sources = [ "src/gst_codec_bin.cpp" ] 66 67 configs = [ ":gst_codec_bin_config" ] 68 69 deps = [ 70 "//foundation/multimedia/player_framework/services/engine/gstreamer/common:media_gst_dfx", 71 "//third_party/glib:glib", 72 "//third_party/glib:gmodule", 73 "//third_party/glib:gobject", 74 "//third_party/gstreamer/gstreamer:gstreamer", 75 ] 76 77 external_deps = [ "hilog:libhilog" ] 78 79 relative_install_dir = "media/plugins" 80 subsystem_name = "multimedia" 81 part_name = "player_framework" 82} 83