• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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
14if (defined(ohos_lite)) {
15  import("//build/lite/config/component/lite_component.gni")
16} else {
17  import("//build/ohos.gni")
18}
19import("//drivers/adapter/uhdf2/uhdf.gni")
20import("//drivers/peripheral/audio/audio.gni")
21
22group("hdi_audio") {
23  deps = [ "hal/hdi_passthrough:hdi_audio" ]
24
25  if (defined(ohos_lite)) {
26    deps += [ "config/lite:hdf_audio_json" ]
27  } else {
28    deps += [
29      "config/linux:hdf_audio_json",
30      "hal/hdi_binder/proxy:audio_hdi_proxy_server",
31      "hal/hdi_binder/server:audio_hdi_adapter_server",
32    ]
33  }
34
35  if (enable_audio_device_mpi) {
36    deps += [
37      "//device/hisilicon/hardware/media/proprietary/hal/audio:hdi_audio_interface_lib_capture",
38      "//device/hisilicon/hardware/media/proprietary/hal/audio:hdi_audio_interface_lib_mpi",
39      "//device/hisilicon/hardware/media/proprietary/hal/audio:hdi_audio_interface_lib_render",
40    ]
41  } else {
42    deps += [
43      "supportlibs/adm_adapter:hdi_audio_interface_lib_capture",
44      "supportlibs/adm_adapter:hdi_audio_interface_lib_render",
45    ]
46  }
47  if (enable_audio_hal_notsupport_pathselect == false) {
48    deps += [ "hal/pathselect:hdi_audio_path_select" ]
49
50    if (defined(ohos_lite)) {
51      deps += [ "config/lite:hdf_audio_path_json" ]
52    } else {
53      deps += [ "config/linux:hdf_audio_path_json" ]
54    }
55  }
56}
57
58group("audio_sample_client") {
59  deps = [
60    "sample:audio_sample_capture",
61    "sample:audio_sample_render",
62  ]
63}
64