• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2021 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")
15
16group("plugin_stream_source") {
17  deps = [ ":histreamer_plugin_StreamSource" ]
18}
19
20source_set("streamsource") {
21  sources = [ "stream_source_plugin.cpp" ]
22  public_deps = [
23    "//foundation/multimedia/histreamer/engine/foundation:histreamer_foundation",
24    "//foundation/multimedia/histreamer/engine/plugin:histreamer_plugin_intf",
25  ]
26  public_configs = [ "//foundation/multimedia/histreamer:histreamer_presets" ]
27  if (hst_is_lite_sys) {
28    public_deps += [ "//foundation/multimedia/utils/lite:media_common" ]
29  }
30}
31
32if (hst_is_lite_sys) {
33  #lite
34  import("//build/lite/config/component/lite_component.gni")
35  lite_library("histreamer_plugin_StreamSource") {
36    if (ohos_kernel_type == "liteos_m") {
37      target_type = "static_library"
38    } else {
39      target_type = "shared_library"
40    }
41    deps = [ ":streamsource" ]
42  }
43} else {
44  #standard
45  import("//build/ohos.gni")
46  ohos_shared_library("histreamer_plugin_StreamSource") {
47    sanitize = {
48      cfi = true
49      debug = false
50    }
51    deps = [ ":streamsource" ]
52    relative_install_dir = "media/histreamer_plugins"
53    subsystem_name = "multimedia"
54    part_name = "multimedia_histreamer"
55  }
56}
57