package { // See: http://go/android-license-faq // A large-scale-change added 'default_applicable_licenses' to import // all of the 'license_kinds' from "frameworks_av_license" // to get the below license kinds: // SPDX-license-identifier-Apache-2.0 default_applicable_licenses: ["frameworks_av_license"], } cc_library_shared { name: "libaudiopolicymanagerdefault", srcs: [ "AudioPolicyManager.cpp", "EngineLibrary.cpp", ], export_include_dirs: ["."], shared_libs: [ "libaudiofoundation", "libcutils", "libdl", "libutils", "liblog", "libaudiopolicy", "libmedia_helper", "libmediametrics", "libbinder", "libhidlbase", "libxml2", // The default audio policy engine is always present in the system image. // libaudiopolicyengineconfigurable can be built in addition by specifying // a dependency on it in the device makefile. There will be no build time // conflict with libaudiopolicyenginedefault. "libaudiopolicyenginedefault", "framework-permission-aidl-cpp", "libaudioclient_aidl_conversion", "libaudioutilmtk", ], header_libs: [ "libaudiopolicycommon", "libaudiopolicyengine_interface_headers", "libaudiopolicymanager_interface_headers", "audio_customization_common_headers", "audio_gain_table_param_headers", "audio_util_common_headers", "libaudio_param_parser_headers", ], static_libs: ["libaudiopolicycomponents"], cflags: [ "-Wall", "-Werror", "-DMTK_AUDIO", "-DMTK_AUDIO_FIX_DEFAULT_DEFECT", "-DMTK_AUDIO_DEBUG" ], product_variables: { debuggable: { cflags: [ "-DCONFIG_MT_USERDEBUG_BUILD", ], }, eng: { cflags: [ "-UCONFIG_MT_USERDEBUG_BUILD", "-DCONFIG_MT_ENG_BUILD", ], }, }, }