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/caremu", 22 "frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Car", 23 "frameworks/av/services/audiopolicy/config", 24 ], 25} 26 27// 28// Generate Audio Policy Parameter Framework Product Strategies Structure file from template 29// 30package { 31 // See: http://go/android-license-faq 32 // A large-scale-change added 'default_applicable_licenses' to import 33 // all of the 'license_kinds' from "frameworks_av_license" 34 // to get the below license kinds: 35 // SPDX-license-identifier-Apache-2.0 36 default_applicable_licenses: ["frameworks_av_license"], 37} 38 39prebuilt_etc { 40 name: "ProductStrategies.xml", 41 vendor: true, 42 src: ":buildstrategiesstructure_gen", 43 sub_dir: "parameter-framework/Structure/Policy", 44 required: ["libpolicy-subsystem"], 45} 46genrule { 47 name: "buildstrategiesstructure_gen", 48 defaults: ["buildstrategiesstructurerule"], 49 srcs: [ 50 ":audio_policy_engine_configuration_files", 51 ], 52} 53 54// 55// Generate Audio Policy Parameter Framework Configurable Domains 56// 57prebuilt_etc { 58 name: "parameter-framework.policy", 59 filename_from_src: true, 60 vendor: true, 61 src: ":domaingeneratorpolicyrule_gen", 62 sub_dir: "parameter-framework/Settings/Policy", 63 required: [ 64 "ProductStrategies.xml", 65 "PolicyClass.xml", 66 "PolicySubsystem.xml", 67 "PolicySubsystem-CommonTypes.xml", 68 ], 69} 70genrule { 71 name: "domaingeneratorpolicyrule_gen", 72 defaults: ["domaingeneratorpolicyrule"], 73 srcs: [ 74 ":audio_policy_pfw_toplevel", 75 ":audio_policy_pfw_structure_files", 76 ":audio_policy_engine_criterion_types", 77 ":edd_files", 78 ], 79} 80filegroup { 81 name: "edd_files", 82 srcs: [ 83 ":device_for_input_source.pfw", 84 ":volumes.pfw", 85 "Settings/device_for_product_strategies.pfw", 86 ], 87} 88// This is for Settings generation, must use socket port, so userdebug version is required 89filegroup { 90 name: "audio_policy_pfw_toplevel", 91 srcs: [":ParameterFrameworkConfigurationPolicy.userdebug.xml"], 92} 93filegroup { 94 name: "audio_policy_pfw_structure_files", 95 srcs: [ 96 ":PolicyClass", 97 ":PolicySubsystem", 98 ":buildcommontypesstructure_gen", 99 ":buildstrategiesstructure_gen", 100 ], 101} 102