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_file_fd_sink") { 16 deps = [ ":histreamer_plugin_FileFdSink" ] 17} 18 19if (hst_is_lite_sys) { 20 import("//build/lite/config/component/lite_component.gni") 21 lite_library("histreamer_plugin_FileFdSink") { 22 include_dirs = [ "//foundation/multimedia/media_foundation/engine/include" ] 23 sources = [ "file_fd_sink_plugin.cpp" ] 24 public_configs = 25 [ "//foundation/multimedia/media_foundation:histreamer_presets" ] 26 public_deps = [ 27 "//foundation/multimedia/media_foundation/engine/foundation:histreamer_foundation", 28 "//foundation/multimedia/media_foundation/engine/plugin:histreamer_plugin_base", 29 ] 30 if (hst_is_mini_sys) { 31 target_type = "static_library" 32 } else { 33 target_type = "shared_library" 34 } 35 } 36} else { 37 import("//build/ohos.gni") 38 ohos_shared_library("histreamer_plugin_FileFdSink") { 39 subsystem_name = "multimedia" 40 part_name = "media_foundation" 41 include_dirs = [ "//foundation/multimedia/media_foundation/engine/include" ] 42 sources = [ "file_fd_sink_plugin.cpp" ] 43 public_configs = 44 [ "//foundation/multimedia/media_foundation:histreamer_presets" ] 45 public_deps = [ 46 "//foundation/multimedia/media_foundation/engine/foundation:histreamer_foundation", 47 "//foundation/multimedia/media_foundation/engine/plugin:histreamer_plugin_base", 48 ] 49 50 external_deps = [ 51 "graphic_surface:surface", 52 "hilog:libhilog", 53 "ipc:ipc_core", 54 ] 55 sanitize = { 56 cfi = true 57 cfi_cross_dso = true 58 debug = false 59 integer_overflow = true 60 } 61 relative_install_dir = "media/histreamer_plugins" 62 } 63} 64