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/histreamer/config.gni") 15group("plugin_file_sink") { 16 deps = [ 17 ":histreamer_plugin_FileFdSink", 18 ":histreamer_plugin_FilePathSink", 19 ] 20} 21 22source_set("file_fd_sink") { 23 sources = [ "file_fd_sink_plugin.cpp" ] 24 public_deps = [ 25 "//foundation/multimedia/histreamer/engine/foundation:histreamer_foundation", 26 "//foundation/multimedia/histreamer/engine/plugin:histreamer_plugin_intf", 27 ] 28 public_configs = [ "//foundation/multimedia/histreamer:histreamer_presets" ] 29} 30 31source_set("file_path_sink") { 32 sources = [ "file_path_sink_plugin.cpp" ] 33 public_deps = [ 34 "//foundation/multimedia/histreamer/engine/foundation:histreamer_foundation", 35 "//foundation/multimedia/histreamer/engine/plugin:histreamer_plugin_intf", 36 ] 37 public_configs = [ "//foundation/multimedia/histreamer:histreamer_presets" ] 38} 39 40if (hst_is_lite_sys) { 41 import("//build/lite/config/component/lite_component.gni") 42 lite_library("histreamer_plugin_FileFdSink") { 43 if (ohos_kernel_type == "liteos_m") { 44 target_type = "static_library" 45 } else { 46 target_type = "shared_library" 47 } 48 sources = [] 49 deps = [ ":file_fd_sink" ] 50 } 51 lite_library("histreamer_plugin_FilePathSink") { 52 if (ohos_kernel_type == "liteos_m") { 53 target_type = "static_library" 54 } else { 55 target_type = "shared_library" 56 } 57 sources = [] 58 deps = [ ":file_path_sink" ] 59 } 60} else { 61 import("//build/ohos.gni") 62 ohos_shared_library("histreamer_plugin_FileFdSink") { 63 sanitize = { 64 cfi = true 65 debug = false 66 } 67 deps = [ ":file_fd_sink" ] 68 relative_install_dir = "media/histreamer_plugins" 69 subsystem_name = "multimedia" 70 part_name = "multimedia_histreamer" 71 } 72 ohos_shared_library("histreamer_plugin_FilePathSink") { 73 sanitize = { 74 cfi = true 75 debug = false 76 } 77 deps = [ ":file_path_sink" ] 78 relative_install_dir = "media/histreamer_plugins" 79 subsystem_name = "multimedia" 80 part_name = "multimedia_histreamer" 81 } 82} 83