• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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("//build/ohos.gni")
15import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
16import("//foundation/multimedia/audio_framework/config.gni")
17
18import("//foundation/multimedia/audio_framework/audio_ohcore.gni")
19
20ohos_shared_library("audio_capturer_gateway") {
21  install_enable = true
22
23  cflags = [ "-fPIC" ]
24  cflags += [ "-Wall" ]
25  if ("${product_name}" == "m40") {
26    cflags += [ "-DPRODUCT_M40" ]
27  }
28  cflags_cc = cflags
29
30  include_dirs = [
31    "//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include",
32    "//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocapturer/include",
33    "//base/hiviewdfx/hilog/interfaces/native/innerkits/include",
34    "//drivers/peripheral/audio/interfaces/include",
35    "//utils/native/base/include",
36  ]
37
38  include_dirs += audio_gateway_include_dirs
39
40  sources = audio_capturer_gateway_sources
41
42  deps = [
43    "//foundation/multimedia/audio_framework/services/audio_policy:audio_policy_client",
44    "//foundation/multimedia/audio_framework/services/audio_service:audio_client",
45  ]
46
47  deps += [ "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog" ]
48
49  if ("${product_name}" == "m40") {
50    deps += [ "//drivers/peripheral/adapter/audio/interfaces:hdi_audio_client" ]
51  } else {
52    deps +=
53        [ "//drivers/peripheral/audio/hal/hdi_binder/proxy:hdi_audio_client" ]
54  }
55
56  external_deps = [
57    "access_token:libaccesstoken_sdk",
58    "c_utils:utils",
59    "hiviewdfx_hilog_native:libhilog",
60    "ipc:ipc_core",
61    "safwk:system_ability_fwk",
62    "samgr:samgr_proxy",
63  ]
64
65  part_name = "multimedia_audio_framework"
66  subsystem_name = "multimedia"
67}
68
69ohos_shared_library("audio_renderer_gateway") {
70  install_enable = true
71
72  cflags = [ "-fPIC" ]
73  if ("${product_name}" == "m40") {
74    cflags += [ "-DPRODUCT_M40" ]
75  }
76  cflags_cc = cflags
77
78  include_dirs = [
79    "//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include",
80    "//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiorenderer/include",
81    "//base/hiviewdfx/hilog/interfaces/native/innerkits/include",
82    "//drivers/peripheral/audio/interfaces/include",
83    "//utils/native/base/include",
84  ]
85
86  include_dirs += audio_gateway_include_dirs
87
88  sources = audio_renderer_gateway_sources
89
90  deps = [
91    "//foundation/multimedia/audio_framework/services/audio_policy:audio_policy_client",
92    "//foundation/multimedia/audio_framework/services/audio_service:audio_client",
93  ]
94
95  deps += [ "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog" ]
96
97  if ("${product_name}" == "m40") {
98    deps += [ "//drivers/peripheral/adapter/audio/interfaces:hdi_audio_client" ]
99  } else {
100    deps +=
101        [ "//drivers/peripheral/audio/hal/hdi_binder/proxy:hdi_audio_client" ]
102  }
103
104  external_deps = [
105    "access_token:libaccesstoken_sdk",
106    "c_utils:utils",
107    "hiviewdfx_hilog_native:libhilog",
108    "ipc:ipc_core",
109    "safwk:system_ability_fwk",
110    "samgr:samgr_proxy",
111  ]
112
113  part_name = "multimedia_audio_framework"
114  subsystem_name = "multimedia"
115}
116