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_audio_effect_json") {
17  source = "audio_effect.json"
18
19  relative_install_dir = "hdfconfig"
20  install_images = [ chip_prod_base_dir ]
21  subsystem_name = "product_dayu210"
22  part_name = "product_dayu210"
23}
24
25ohos_prebuilt_etc("hdf_audio_path_json") {
26  source = "audio_paths.json"
27
28  relative_install_dir = "hdfconfig"
29  install_images = [ chipset_base_dir ]
30  subsystem_name = "product_dayu210"
31  part_name = "product_dayu210"
32}
33
34ohos_prebuilt_etc("audio_policy_config") {
35  if (target_cpu == "arm64") {
36    source = "config/arm64/audio_policy_config.xml"
37  } else {
38    source = "config/arm/audio_policy_config.xml"
39  }
40  subsystem_name = "product_dayu210"
41  relative_install_dir = "audio"
42  install_images = [ chipset_base_dir ]
43  part_name = "product_dayu210"
44}
45
46ohos_prebuilt_etc("audio_policy_config_new") {
47  source = "config/audio_policy_config_new.xml"
48  subsystem_name = "product_dayu210"
49  relative_install_dir = "audio"
50  install_images = [ chipset_base_dir ]
51  part_name = "product_dayu210"
52}
53
54group("hdf_audio_config") {
55  deps = [
56    ":audio_policy_config",
57    ":audio_policy_config_new",
58    ":hdf_audio_effect_json",
59    ":hdf_audio_path_json",
60  ]
61}
62
63group("hdi_service_st") {
64  testonly = true
65  deps = [ "//drivers/peripheral/audio/test/systemtest/hdi_service/rk3568:hdi_service_hardwaredependence" ]
66}
67