• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2023 HiHope Open Source Organization .
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")
15
16ohos_prebuilt_etc("hdf_alsa_paths_json") {
17  source = "alsa_paths.json"
18
19  relative_install_dir = "hdfconfig"
20  install_images = [ chipset_base_dir ]
21  subsystem_name = "hdf"
22  part_name = "product_rk3568"
23}
24
25ohos_prebuilt_etc("hdf_alsa_adapter_json") {
26  source = "alsa_adapter.json"
27
28  relative_install_dir = "hdfconfig"
29  install_images = [ chipset_base_dir ]
30  subsystem_name = "hdf"
31  part_name = "product_rk3568"
32}
33
34ohos_prebuilt_etc("hdf_audio_effect_json") {
35  source = "audio_effect.json"
36
37  relative_install_dir = "hdfconfig"
38  install_images = [ chipset_base_dir ]
39  subsystem_name = "hdf"
40  part_name = "product_rk3568"
41}
42
43ohos_prebuilt_etc("hdf_audio_path_json") {
44  source = "audio_paths.json"
45
46  relative_install_dir = "hdfconfig"
47  install_images = [ chipset_base_dir ]
48  subsystem_name = "hdf"
49  part_name = "product_rk3568"
50}
51
52ohos_prebuilt_etc("hdf_audio_adapter_json") {
53  source = "audio_adapter.json"
54
55  relative_install_dir = "hdfconfig"
56  install_images = [ chipset_base_dir ]
57  subsystem_name = "hdf"
58  part_name = "product_rk3568"
59}
60
61ohos_prebuilt_etc("audio_policy_config") {
62  if (target_cpu == "arm64") {
63    source = "config/arm64/audio_policy_config.xml"
64  } else {
65    source = "config/arm/audio_policy_config.xml"
66  }
67  subsystem_name = "hdf"
68  relative_install_dir = "audio"
69  install_images = [ chipset_base_dir ]
70  part_name = "product_rk3568"
71}
72
73group("hdf_audio_config") {
74  deps = [
75    ":audio_policy_config",
76    ":hdf_alsa_adapter_json",
77    ":hdf_alsa_paths_json",
78    ":hdf_audio_adapter_json",
79    ":hdf_audio_effect_json",
80    ":hdf_audio_path_json",
81  ]
82}
83
84group("hdi_service_st") {
85  testonly = true
86  deps = [ "//drivers/peripheral/audio/test/systemtest/hdi_service/rk3568:hdi_service_hardwaredependence" ]
87}
88