• 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/media_foundation/config.gni")
15group("plugin_standard_video_capture") {
16  if (hst_is_standard_sys) {
17    deps = [ ":histreamer_plugin_StdVideoCapture" ]
18  }
19}
20
21if (hst_is_standard_sys) {
22  import("//build/ohos.gni")
23  ohos_shared_library("histreamer_plugin_StdVideoCapture") {
24    subsystem_name = "multimedia"
25    part_name = "media_foundation"
26    include_dirs = [
27      "//drivers/peripheral/display/interfaces/include",
28      "//foundation/graphic/graphic_2d/interfaces/inner_api/common",
29      "//foundation/multimedia/media_foundation/engine/include",
30    ]
31    sources = [ "video_capture_plugin.cpp" ]
32    public_configs =
33        [ "//foundation/multimedia/media_foundation:histreamer_presets" ]
34    public_deps = [
35      "//foundation/multimedia/media_foundation/engine/foundation:histreamer_foundation",
36      "//foundation/multimedia/media_foundation/engine/plugin:histreamer_plugin_base",
37    ]
38    public_external_deps = [ "c_utils:utilsbase" ]
39    external_deps = [
40      "graphic_surface:surface",
41      "graphic_surface:sync_fence",
42      "hilog:libhilog",
43    ]
44    sanitize = {
45      cfi = true
46      cfi_cross_dso = true
47      debug = false
48      integer_overflow = true
49    }
50    relative_install_dir = "media/histreamer_plugins"
51  }
52}
53