1# Copyright (c) 2022-2022 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("//foundation/multimedia/media_foundation/config.gni") 15group("plugin_standard_video_surface_sink") { 16 deps = [] 17 if (hst_is_lite_sys) { 18 print("std video surface sink plugin is not available on lite systems") 19 } else { 20 deps += [ ":histreamer_plugin_StdVideoSurfaceSink" ] 21 } 22} 23 24ohos_source_set("std_video_surface_sink") { 25 subsystem_name = "multimedia" 26 part_name = "media_foundation" 27 sources = [ "surface_sink_plugin.cpp" ] 28 public_deps = [ 29 "//foundation/multimedia/media_foundation/engine/foundation:histreamer_foundation", 30 "//foundation/multimedia/media_foundation/engine/plugin:histreamer_plugin_base", 31 ] 32 33 public_configs = 34 [ "//foundation/multimedia/media_foundation:histreamer_presets" ] 35 if (hst_is_lite_sys) { 36 print("std video surface sink plugin is not available on lite systems") 37 } else { 38 include_dirs = [ 39 "//foundation/graphic/graphic_2d/interfaces/inner_api", 40 "//drivers/peripheral/display/interfaces/include", 41 "//foundation/graphic/graphic_2d/interfaces/inner_api/common", 42 "//foundation/graphic/graphic_2d/utils/sync_fence/export", 43 "//commonlibrary/c_utils/base/include", 44 "//base/startup/init/interfaces/innerkits/include/syspara", 45 "//third_party/bounds_checking_function/include", 46 "//foundation/multimedia/media_foundation/engine/include", 47 ] 48 deps = [ "//third_party/bounds_checking_function:libsec_shared" ] 49 external_deps = [ 50 "c_utils:utils", 51 "graphic_surface:surface", 52 "graphic_surface:sync_fence", 53 ] 54 } 55} 56 57if (hst_is_lite_sys) { 58 print("std video surface sink plugin is not available on lite systems") 59} else { 60 import("//build/ohos.gni") 61 ohos_shared_library("histreamer_plugin_StdVideoSurfaceSink") { 62 sanitize = { 63 cfi = true 64 cfi_cross_dso = true 65 debug = false 66 integer_overflow = true 67 } 68 deps = [ ":std_video_surface_sink" ] 69 external_deps = [ "hilog:libhilog" ] 70 relative_install_dir = "media/histreamer_plugins" 71 subsystem_name = "multimedia" 72 part_name = "media_foundation" 73 } 74} 75