• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
24source_set("std_stream_source") {
25  sources = [ "std_stream_source_plugin.cpp" ]
26  public_deps = [
27    "//foundation/multimedia/histreamer/engine/foundation:histreamer_foundation",
28    "//foundation/multimedia/histreamer/engine/plugin:histreamer_plugin_intf",
29  ]
30
31  public_configs = [ "//foundation/multimedia/histreamer:histreamer_presets" ]
32  if (hst_is_lite_sys) {
33    print("std stream source plugin is not available on lite systems")
34  } else {
35    include_dirs = [
36      "//foundation/multimedia/player_framework/interfaces/inner_api/native",
37      "//foundation/multimedia/player_framework/services/utils/include",
38      "//commonlibrary/c_utils/base/include",
39    ]
40    public_deps += [ "//foundation/multimedia/player_framework/services/utils:media_service_utils" ]
41    public_configs += [ "//foundation/multimedia/player_framework/services/utils:media_service_utils_public_config" ]
42  }
43}
44
45if (hst_is_lite_sys) {
46  print("std stream source plugin is not available on lite systems")
47} else {
48  import("//build/ohos.gni")
49  ohos_shared_library("histreamer_plugin_StdStreamSource") {
50    sanitize = {
51      cfi = true
52      debug = false
53    }
54    deps = [ ":std_stream_source" ]
55    relative_install_dir = "media/histreamer_plugins"
56    subsystem_name = "multimedia"
57    part_name = "multimedia_histreamer"
58  }
59}
60