1/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17// Import this namespace in order to use AOSP Car Emulator configuration example
18
19soong_namespace {
20    imports: [
21        "frameworks/av/services/audiopolicy/engineconfigurable/config/example/automotive",
22        "frameworks/av/services/audiopolicy/config",
23    ],
24}
25
26prebuilt_etc {
27    name: "audio_policy_engine_configuration.xml",
28    vendor: true,
29    src: ":audio_policy_engine_configuration",
30    required: [
31        "audio_policy_engine_criterion_types.xml",
32        "audio_policy_engine_criteria.xml",
33        "audio_policy_engine_product_strategies.xml",
34        ":audio_policy_engine_volumes.xml",
35    ],
36}
37prebuilt_etc {
38    name: "audio_policy_engine_product_strategies.xml",
39    vendor: true,
40    src: "audio_policy_engine_product_strategies.xml",
41}
42prebuilt_etc {
43    name: "audio_policy_engine_criterion_types.xml",
44    vendor: true,
45    src: ":audio_policy_engine_criterion_types",
46}
47
48//
49// Generate audio_policy_engine criterion type file => provides device addresses criterion type
50//
51genrule {
52    name: "audio_policy_engine_criterion_types",
53    defaults: ["buildpolicycriteriontypesrule"],
54    srcs: [
55        ":audio_policy_configuration_top_file",
56        ":audio_policy_configuration_files",
57    ],
58}
59filegroup {
60    name: "audio_policy_configuration_files",
61    srcs: [
62        ":r_submix_audio_policy_configuration",
63        ":default_volume_tables",
64        ":audio_policy_volumes",
65        ":surround_sound_configuration_5_0",
66        ":primary_audio_policy_configuration",
67    ],
68}
69filegroup {
70    name : "audio_policy_configuration_top_file",
71    srcs: [":audio_policy_configuration_generic"],
72}
73filegroup {
74    name: "audio_policy_engine_configuration_files",
75    srcs: [
76        ":audio_policy_engine_configuration",
77        "audio_policy_engine_product_strategies.xml",
78        ":audio_policy_engine_volumes",
79        ":audio_policy_engine_criterion_types",
80        ":audio_policy_engine_criteria",
81    ],
82}
83