• 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_capture") {
16  deps = []
17  if (hst_is_lite_sys) {
18    print("std video capture plugin is not available on lite systems")
19  } else {
20    deps += [ ":histreamer_plugin_StdVideoCapture" ]
21  }
22}
23
24source_set("std_video_capture") {
25  sources = [ "video_capture_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 video capture plugin is not available on lite systems")
34  } else {
35    include_dirs = [
36      "//foundation/graphic/graphic_2d/interfaces/inner_api/surface",
37      "//drivers/peripheral/display/interfaces/include",
38      "//foundation/graphic/graphic_2d/interfaces/inner_api/common",
39      "//commonlibrary/c_utils/base/include",
40    ]
41    public_deps += [
42      "//commonlibrary/c_utils/base:utilsbase_rtti",
43      "//foundation/graphic/graphic_2d:libsurface",
44      "//foundation/graphic/graphic_2d/utils:sync_fence",
45    ]
46  }
47}
48
49if (hst_is_lite_sys) {
50  print("std video capture plugin is not available on lite systems")
51} else {
52  import("//build/ohos.gni")
53  ohos_shared_library("histreamer_plugin_StdVideoCapture") {
54    sanitize = {
55      cfi = true
56      debug = false
57    }
58    deps = [ ":std_video_capture" ]
59    relative_install_dir = "media/histreamer_plugins"
60    subsystem_name = "multimedia"
61    part_name = "multimedia_histreamer"
62  }
63}
64