• 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("//build/test.gni")
16import("../../../../config.gni")
17
18pulseaudio_dir = "//third_party/pulseaudio"
19pulseaudio_build_path = "//third_party/pulseaudio/ohosbuild"
20
21module_output_path = "multimedia_audio_framework/audio_balance"
22
23config("module_private_config") {
24  visibility = [ ":*" ]
25
26  include_dirs = [
27    "$pulseaudio_dir/src",
28    "$pulseaudio_dir/confgure/src",
29    "$pulseaudio_dir/include",
30    "$pulseaudio_build_path/include",
31    "../../common/include",
32    "../../client/include",
33    "../../../../interfaces/inner_api/native/audiocommon/include",
34    "../../../../../../../../foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include",
35  ]
36  include_dirs += [ multimedia_audio_framework_pulse_audio ]
37}
38
39ohos_unittest("audio_balance_unit_test") {
40  module_out_path = module_output_path
41  sources = [
42    "audio_balance_unit_test.cpp",
43    "audio_service_common_unit_test.cpp",
44    "audio_service_unit_test.cpp",
45  ]
46
47  configs = [ ":module_private_config" ]
48
49  deps = [
50    "$pulseaudio_build_path/src/pulse:pulse",
51    "../../../../frameworks/native/audioutils:audio_utils",
52    "../../../audio_service:audio_client",
53    "../../../audio_service:audio_common",
54    "//third_party/googletest:gtest_main",
55  ]
56
57  external_deps = [
58    "c_utils:utils",
59    "hilog:libhilog",
60    "hisysevent:libhisysevent",
61    "ipc:ipc_single",
62    "safwk:system_ability_fwk",
63    "samgr:samgr_proxy",
64  ]
65}
66