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 No Input configuration example
18
19soong_namespace {
20    imports: [
21        "frameworks/av/services/audiopolicy/engineconfigurable/config/example/phone",
22        "frameworks/av/services/audiopolicy/config",
23    ],
24}
25
26prebuilt_etc {
27    name: "parameter-framework.policy",
28    filename_from_src: true,
29    vendor: true,
30    src: ":domaingeneratorpolicyrule_gen",
31    sub_dir: "parameter-framework/Settings/Policy",
32    required: [
33        "PolicyClass.xml",
34        "PolicySubsystem.xml",
35        "PolicySubsystem-CommonTypes.xml",
36    ],
37}
38
39genrule {
40    name: "domaingeneratorpolicyrule_gen",
41    defaults: ["domaingeneratorpolicyrule"],
42    srcs: [
43        ":audio_policy_pfw_toplevel",
44        ":audio_policy_pfw_structure_files",
45        ":audio_policy_engine_criterion_types",
46        ":edd_files",
47    ],
48}
49filegroup {
50    name: "audio_policy_pfw_toplevel",
51    srcs: [":ParameterFrameworkConfigurationPolicy.userdebug.xml"],
52}
53filegroup {
54    name: "audio_policy_pfw_structure_files",
55    srcs: [
56        ":PolicyClass",
57        ":PolicySubsystem",
58        ":buildcommontypesstructure_gen",
59    ],
60}
61filegroup {
62    name: "edd_files",
63    srcs: [
64        "device_for_input_source.pfw",
65        ":volumes.pfw",
66    ],
67}
68prebuilt_etc {
69    name: "PolicySubsystem.xml",
70    vendor: true,
71    src: ":PolicySubsystem-no-strategy",
72    sub_dir: "parameter-framework/Structure/Policy",
73}
74