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_mem_source_plugins_common_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 ] 34 35 include_dirs = [ 36 "//utils/native/base/include", 37 "//foundation/multimedia/media_standard/services/utils/include", 38 "//foundation/multimedia/media_standard/interfaces/innerkits/native/media/include", 39 "//foundation/multimedia/media_standard/services/engine/gstreamer/plugins/common", 40 "//foundation/graphic/standard/utils/sync_fence/export", 41 "//third_party/gstreamer/gstreamer", 42 "//third_party/gstreamer/gstreamer/libs", 43 "//third_party/gstreamer/gstplugins_base", 44 "//third_party/gstreamer/gstplugins_base/gst-libs", 45 "//third_party/glib/glib", 46 "//third_party/glib", 47 "//third_party/glib/gmodule", 48 "foundation/graphic/standard/interfaces/innerkits/common", 49 ] 50} 51 52ohos_static_library("gst_mem_source_plugins_common") { 53 sources = [ 54 "gst_consumer_surface_allocator.cpp", 55 "gst_consumer_surface_pool.cpp", 56 "gst_mem_pool_src.cpp", 57 "gst_shmem_pool_src.cpp", 58 "gst_surface_pool_src.cpp", 59 ] 60 61 configs = [ ":gst_mem_source_plugins_common_config" ] 62 63 deps = [ 64 "//foundation/graphic/standard:libsurface", 65 "//foundation/graphic/standard/utils:sync_fence", 66 "//foundation/multimedia/media_standard/services/engine/gstreamer/plugins/common:gst_plugins_common", 67 "//foundation/multimedia/media_standard/services/utils:media_service_utils", 68 "//third_party/glib:glib", 69 "//third_party/glib:gmodule", 70 "//third_party/glib:gobject", 71 "//third_party/gstreamer/gstplugins_base:gstvideo", 72 "//third_party/gstreamer/gstreamer:gstbase", 73 "//third_party/gstreamer/gstreamer:gstreamer", 74 ] 75 76 external_deps = [ 77 "hiviewdfx_hilog_native:libhilog", 78 "ipc:ipc_core", 79 ] 80 81 subsystem_name = "multimedia" 82 part_name = "multimedia_media_standard" 83} 84