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