• 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("../../../audio_ohcore.gni")
16import("../../../config.gni")
17
18ohos_shared_library("audio_capturer_gateway") {
19  install_enable = true
20
21  cflags = [ "-fPIC" ]
22  cflags += [ "-Wall" ]
23  cflags_cc = cflags
24
25  include_dirs = [
26    "../../../interfaces/inner_api/native/audiocommon/include",
27    "../../../interfaces/inner_api/native/audiocapturer/include",
28  ]
29
30  include_dirs += audio_gateway_include_dirs
31
32  sources = audio_capturer_gateway_sources
33
34  deps = [
35    "../../../services/audio_policy:audio_policy_client",
36    "../../../services/audio_service:audio_client",
37  ]
38
39  external_deps = [
40    "access_token:libaccesstoken_sdk",
41    "c_utils:utils",
42    "hilog:libhilog",
43    "ipc:ipc_single",
44    "safwk:system_ability_fwk",
45    "samgr:samgr_proxy",
46  ]
47
48  part_name = "audio_framework"
49  subsystem_name = "multimedia"
50}
51
52ohos_shared_library("audio_renderer_gateway") {
53  install_enable = true
54
55  cflags = [ "-fPIC" ]
56  cflags_cc = cflags
57
58  include_dirs = [
59    "../../../interfaces/inner_api/native/audiocommon/include",
60    "../../../interfaces/inner_api/native/audiorenderer/include",
61  ]
62
63  include_dirs += audio_gateway_include_dirs
64
65  sources = audio_renderer_gateway_sources
66
67  deps = [
68    "../../../services/audio_policy:audio_policy_client",
69    "../../../services/audio_service:audio_client",
70  ]
71
72  external_deps = [
73    "access_token:libaccesstoken_sdk",
74    "c_utils:utils",
75    "hilog:libhilog",
76    "ipc:ipc_single",
77    "safwk:system_ability_fwk",
78    "samgr:samgr_proxy",
79  ]
80
81  part_name = "audio_framework"
82  subsystem_name = "multimedia"
83}
84