package { default_team: "trendy_team_android_media_audio_framework", // 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_defaults { name: "libaudiopolicyservice_dependencies", header_libs: ["audiopolicyservicelocal_headers"], shared_libs: [ "android.media.audiopolicy-aconfig-cc", "audioclient-types-aidl-cpp", "audioflinger-aidl-cpp", "audiopolicy-aidl-cpp", "audiopolicy-types-aidl-cpp", "capture_state_listener-aidl-cpp", "com.android.media.audio-aconfig-cc", "framework-permission-aidl-cpp", "libPlatformProperties", "libactivitymanager_aidl", "libaudioclient", "libaudioclient_aidl_conversion", "libaudiofoundation", "libaudiohal", "libaudiopolicy", "libaudiopolicycomponents", "libaudiopolicymanagerdefault", "libaudiousecasevalidation", "libaudioutils", "libbinder", "libcutils", "libhardware_legacy", "libheadtracking", "libheadtracking-binding", "liblog", "libmedia_helper", "libmediametrics", "libmediautils", "libpermission", "libsensor", "libsensorprivacy", "libshmemcompat", "libstagefright_foundation", "libutils", "libxml2", "packagemanager_aidl-cpp", "spatializer-aidl-cpp", ], static_libs: [ "audio-permission-aidl-cpp", "audiopermissioncontroller", "libaudiopolicycomponents", "libeffectsconfig", ], } cc_library { name: "libaudiopolicyservice", defaults: [ "latest_android_media_audio_common_types_cpp_shared", "libaudiopolicyservice_dependencies", ], srcs: [ "AudioPolicyClientImpl.cpp", "AudioPolicyEffects.cpp", "AudioPolicyInterfaceImpl.cpp", "AudioPolicyService.cpp", "AudioRecordClient.cpp", "CaptureStateNotifier.cpp", "Spatializer.cpp", "SpatializerPoseController.cpp", ], include_dirs: [ "frameworks/av/services/audioflinger", ], static_libs: [ "framework-permission-aidl-cpp", // TODO remove when unnnecessary ], header_libs: [ "audiopolicyservicelocal_headers", "libaudiohal_headers", "libaudiopolicycommon", "libaudiopolicyengine_interface_headers", "libaudiopolicymanager_interface_headers", "libaudioutils_headers", ], cflags: [ "-Wall", "-Werror", "-Wthread-safety", "-fvisibility=hidden", ], export_shared_lib_headers: [ "framework-permission-aidl-cpp", "libactivitymanager_aidl", "libaudiousecasevalidation", "libheadtracking", "libheadtracking-binding", "libsensorprivacy", ], } cc_library_headers { name: "libaudiopolicyservice_headers", host_supported: true, export_include_dirs: [ ".", "include", ], } cc_library_headers { name: "audiopolicyservicelocal_headers", host_supported: true, export_include_dirs: ["include"], header_libs: ["audiopermissioncontroller_headers"], export_header_lib_headers: ["audiopermissioncontroller_headers"], }