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// Root soong_namespace for common components 18 19package { 20 default_team: "trendy_team_android_media_audio_framework", 21 // See: http://go/android-license-faq 22 // A large-scale-change added 'default_applicable_licenses' to import 23 // all of the 'license_kinds' from "frameworks_av_license" 24 // to get the below license kinds: 25 // SPDX-license-identifier-Apache-2.0 26 default_applicable_licenses: ["frameworks_av_license"], 27} 28 29prebuilt_etc { 30 name: "audio_policy_engine_criteria.xml", 31 vendor: true, 32 src: ":audio_policy_engine_criteria", 33} 34 35filegroup { 36 name: "audio_policy_engine_criterion_types_template", 37 srcs: ["example/common/audio_policy_engine_criterion_types.xml.in"], 38} 39 40filegroup { 41 name: "audio_policy_engine_aidl_criterion_types_template", 42 srcs: ["example/common/audio_policy_engine_criterion_types_aidl.xml.in"], 43} 44 45filegroup { 46 name: "audio_policy_engine_criteria", 47 srcs: ["example/common/audio_policy_engine_criteria.xml"], 48} 49 50cc_library_headers { 51 name: "libaudiopolicycapengine_config_headers", 52 export_include_dirs: ["include"], 53} 54 55cc_library { 56 name: "libaudiopolicycapengine_config", 57 defaults: [ 58 "latest_android_media_audio_common_types_cpp_shared", 59 ], 60 export_header_lib_headers: [ 61 "libaudiopolicycapengine_config_headers", 62 ], 63 include_dirs: [ 64 "external/libxml2/include", 65 ], 66 srcs: [ 67 "src/CapEngineConfig.cpp", 68 ], 69 cflags: [ 70 "-Wall", 71 "-Werror", 72 "-Wextra", 73 ], 74 shared_libs: [ 75 "libaudio_aidl_conversion_common_cpp", 76 "libaudiopolicycomponents", 77 "libaudiopolicyengine_config", 78 "libcutils", 79 "liblog", 80 "libmedia_helper", 81 "libutils", 82 "libxml2", 83 ], 84 header_libs: [ 85 "libaudio_system_headers", 86 "libaudioclient_headers", 87 "libaudiopolicycapengine_config_headers", 88 "libmedia_headers", 89 ], 90} 91