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