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_std_stream_source") { 16 deps = [] 17 if (hst_is_lite_sys) { 18 print("std stream source plugin is not available on lite systems") 19 } else { 20 deps += [ ":histreamer_plugin_StdStreamSource" ] 21 } 22} 23 24ohos_source_set("std_stream_source") { 25 subsystem_name = "multimedia" 26 part_name = "histreamer" 27 sources = [ "std_stream_source_plugin.cpp" ] 28 public_deps = [ 29 "//foundation/multimedia/histreamer/engine/foundation:histreamer_foundation", 30 "//foundation/multimedia/histreamer/engine/plugin:histreamer_plugin_base", 31 ] 32 public_configs = [ "//foundation/multimedia/histreamer:histreamer_presets" ] 33 if (hst_is_lite_sys) { 34 print("std stream source plugin is not available on lite systems") 35 } else { 36 include_dirs = [ 37 "//foundation/multimedia/player_framework/interfaces/inner_api/native", 38 "//foundation/multimedia/player_framework/services/utils/include", 39 "//foundation/multimedia/histreamer/engine/include", 40 "//commonlibrary/c_utils/base/include", 41 ] 42 external_deps = [ 43 "graphic_2d:surface", 44 "player_framework:media_service_utils", 45 ] 46 public_configs += [ "//foundation/multimedia/player_framework/services/utils:media_service_utils_public_config" ] 47 } 48} 49 50if (hst_is_lite_sys) { 51 print("std stream source plugin is not available on lite systems") 52} else { 53 import("//build/ohos.gni") 54 ohos_shared_library("histreamer_plugin_StdStreamSource") { 55 sanitize = { 56 cfi = true 57 cfi_cross_dso = true 58 debug = false 59 integer_overflow = true 60 } 61 deps = [ ":std_stream_source" ] 62 relative_install_dir = "media/histreamer_plugins" 63 subsystem_name = "multimedia" 64 part_name = "histreamer" 65 } 66} 67