• 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_file_fd_sink") {
16  deps = [ ":histreamer_plugin_FileFdSink" ]
17}
18
19ohos_source_set("file_fd_sink") {
20  subsystem_name = "multimedia"
21  part_name = "histreamer"
22  include_dirs = [ "//foundation/multimedia/histreamer/engine/include" ]
23  sources = [ "file_fd_sink_plugin.cpp" ]
24  public_deps = [
25    "//foundation/multimedia/histreamer/engine/foundation:histreamer_foundation",
26    "//foundation/multimedia/histreamer/engine/plugin:histreamer_plugin_base",
27  ]
28  if (!hst_is_lite_sys) {
29    external_deps = [ "graphic_2d:surface" ]
30  }
31  public_configs = [ "//foundation/multimedia/histreamer:histreamer_presets" ]
32}
33
34if (hst_is_lite_sys) {
35  import("//build/lite/config/component/lite_component.gni")
36  lite_library("histreamer_plugin_FileFdSink") {
37    if (ohos_kernel_type == "liteos_m") {
38      target_type = "static_library"
39    } else {
40      target_type = "shared_library"
41    }
42    sources = []
43    deps = [ ":file_fd_sink" ]
44  }
45} else {
46  import("//build/ohos.gni")
47  ohos_shared_library("histreamer_plugin_FileFdSink") {
48    sanitize = {
49      cfi = true
50      cfi_cross_dso = true
51      debug = false
52      integer_overflow = true
53    }
54    deps = [ ":file_fd_sink" ]
55    relative_install_dir = "media/histreamer_plugins"
56    subsystem_name = "multimedia"
57    part_name = "histreamer"
58  }
59}
60