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 "hardware_interfaces_license" // to get the below license kinds: // SPDX-license-identifier-Apache-2.0 default_applicable_licenses: ["hardware_interfaces_license"], } cc_defaults { name: "aidlaudioservice_defaults", vendor: true, shared_libs: [ "libalsautilsv2", "libaudio_aidl_conversion_common_ndk", "libaudioaidlcommon", "libaudioutils", "libbase", "libbinder_ndk", "libcutils", "libfmq", "libnbaio_mono", "liblog", "libmedia_helper", "libstagefright_foundation", "libtinyalsav2", "libutils", "libxml2", "android.hardware.common-V2-ndk", "android.hardware.common.fmq-V1-ndk", ], header_libs: [ "libaudio_system_headers", "libaudioaidl_headers", "libxsdc-utils", ], cflags: [ "-DBACKEND_NDK", ], } cc_library { name: "libaudioserviceexampleimpl", defaults: [ "aidlaudioservice_defaults", "latest_android_media_audio_common_types_ndk_shared", "latest_android_hardware_audio_core_ndk_shared", "latest_android_hardware_audio_core_sounddose_ndk_shared", "latest_android_hardware_bluetooth_audio_ndk_shared", ], export_include_dirs: ["include"], srcs: [ "AidlConversionXsdc.cpp", "AudioPolicyConfigXmlConverter.cpp", "Bluetooth.cpp", "Config.cpp", "Configuration.cpp", "EngineConfigXmlConverter.cpp", "Module.cpp", "ModulePrimary.cpp", "SoundDose.cpp", "Stream.cpp", "StreamSwitcher.cpp", "Telephony.cpp", "XsdcConversion.cpp", "alsa/Mixer.cpp", "alsa/ModuleAlsa.cpp", "alsa/StreamAlsa.cpp", "alsa/Utils.cpp", "bluetooth/DevicePortProxy.cpp", "bluetooth/ModuleBluetooth.cpp", "bluetooth/StreamBluetooth.cpp", "primary/PrimaryMixer.cpp", "primary/StreamPrimary.cpp", "r_submix/ModuleRemoteSubmix.cpp", "r_submix/SubmixRoute.cpp", "r_submix/StreamRemoteSubmix.cpp", "stub/ModuleStub.cpp", "stub/StreamStub.cpp", "usb/ModuleUsb.cpp", "usb/StreamUsb.cpp", "usb/UsbAlsaMixerControl.cpp", ], generated_sources: [ "audio_policy_configuration_aidl_default", "audio_policy_engine_configuration_aidl_default", ], generated_headers: [ "audio_policy_configuration_aidl_default", "audio_policy_engine_configuration_aidl_default", ], export_generated_headers: [ "audio_policy_configuration_aidl_default", "audio_policy_engine_configuration_aidl_default", ], shared_libs: [ "android.hardware.bluetooth.audio-impl", "libaudio_aidl_conversion_common_ndk", "libaudioutils", "libbluetooth_audio_session_aidl", "liblog", "libmedia_helper", "libmediautils_vendor", "libstagefright_foundation", ], export_shared_lib_headers: [ "libaudio_aidl_conversion_common_ndk", ], cflags: [ "-Wall", "-Wextra", "-Werror", "-Wthread-safety", "-DBACKEND_NDK", ], } cc_binary { name: "android.hardware.audio.service-aidl.example", relative_install_path: "hw", defaults: [ "aidlaudioservice_defaults", "latest_android_hardware_audio_core_sounddose_ndk_shared", "latest_android_hardware_audio_core_ndk_shared", "latest_android_hardware_bluetooth_audio_ndk_shared", "latest_android_media_audio_common_types_ndk_shared", ], static_libs: [ "libaudioserviceexampleimpl", ], shared_libs: [ "android.hardware.bluetooth.audio-impl", "libaudio_aidl_conversion_common_ndk", "libbluetooth_audio_session_aidl", "liblog", "libmedia_helper", "libstagefright_foundation", ], srcs: ["main.cpp"], cflags: [ "-Wall", "-Wextra", "-Werror", "-Wthread-safety", "-DBACKEND_NDK", ], installable: false, //installed in apex com.android.hardware.audio } cc_test { name: "audio_policy_config_xml_converter_tests", vendor_available: true, defaults: [ "latest_android_media_audio_common_types_ndk_static", "latest_android_hardware_audio_core_ndk_static", ], shared_libs: [ "libaudio_aidl_conversion_common_ndk", "libaudioaidlcommon", "libaudioutils", "libbase", "libbinder_ndk", "libcutils", "libfmq", "libmedia_helper", "libstagefright_foundation", "libutils", "libxml2", ], header_libs: [ "libaudio_system_headers", "libaudioaidl_headers", "libxsdc-utils", ], generated_sources: [ "audio_policy_configuration_aidl_default", "audio_policy_engine_configuration_aidl_default", ], generated_headers: [ "audio_policy_configuration_aidl_default", "audio_policy_engine_configuration_aidl_default", ], srcs: [ "AudioPolicyConfigXmlConverter.cpp", "tests/AudioPolicyConfigXmlConverterTest.cpp", ], cflags: [ "-Wall", "-Wextra", "-Werror", "-Wthread-safety", "-DBACKEND_NDK", ], test_suites: ["general-tests"], } cc_defaults { name: "aidlaudioeffectservice_defaults", defaults: [ "latest_android_media_audio_common_types_ndk_shared", "latest_android_hardware_audio_effect_ndk_shared", ], vendor: true, shared_libs: [ "libaudioaidlcommon", "libaudioutils", "libbase", "libbinder_ndk", "libcutils", "libfmq", "liblog", "libutils", "android.hardware.common-V2-ndk", "android.hardware.common.fmq-V1-ndk", ], header_libs: [ "libaudioaidl_headers", "libaudio_system_headers", "libsystem_headers", ], cflags: [ "-Wall", "-Wextra", "-Werror", "-Wthread-safety", ], } filegroup { name: "effectCommonFile", srcs: [ "EffectContext.cpp", "EffectThread.cpp", "EffectImpl.cpp", ], } cc_binary { name: "android.hardware.audio.effect.service-aidl.example", relative_install_path: "hw", defaults: ["aidlaudioeffectservice_defaults"], shared_libs: [ "libapexsupport", "libtinyxml2", ], srcs: [ "EffectConfig.cpp", "EffectFactory.cpp", "EffectMain.cpp", ], installable: false, //installed in apex com.android.hardware.audio } cc_library_headers { name: "libaudioaidl_headers", export_include_dirs: ["include"], vendor_available: true, host_supported: true, } prebuilt_etc { name: "android.hardware.audio.service-aidl.example.rc", src: "android.hardware.audio.service-aidl.example.rc", installable: false, } prebuilt_etc { name: "android.hardware.audio.service-aidl.xml", src: "android.hardware.audio.service-aidl.xml", sub_dir: "vintf", installable: false, }