package { // 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: "android.hardware.audio.effect-util_default", defaults: ["hidl_defaults"], vendor_available: true, export_include_dirs: ["include"], srcs: [ "EffectUtils.cpp", ], shared_libs: [ "liblog", "libutils", "libhidlbase", "android.hardware.audio.common-util", ], export_shared_lib_headers: [ "android.hardware.audio.common-util", ], header_libs: [ "libaudio_system_headers", "libhardware_headers", ], } cc_library_shared { name: "android.hardware.audio.effect@2.0-util", defaults: ["android.hardware.audio.effect-util_default"], shared_libs: [ "android.hardware.audio.common@2.0", "android.hardware.audio.common@2.0-util", "android.hardware.audio.effect@2.0", ], cflags: [ "-DMAJOR_VERSION=2", "-DMINOR_VERSION=0", "-include common/all-versions/VersionMacro.h", ], } cc_library_shared { name: "android.hardware.audio.effect@4.0-util", defaults: ["android.hardware.audio.effect-util_default"], shared_libs: [ "android.hardware.audio.common@4.0", "android.hardware.audio.common@4.0-util", "android.hardware.audio.effect@4.0", ], cflags: [ "-DMAJOR_VERSION=4", "-DMINOR_VERSION=0", "-include common/all-versions/VersionMacro.h", ], } cc_library_shared { name: "android.hardware.audio.effect@5.0-util", defaults: ["android.hardware.audio.effect-util_default"], shared_libs: [ "android.hardware.audio.common@5.0", "android.hardware.audio.common@5.0-util", "android.hardware.audio.effect@5.0", ], cflags: [ "-DMAJOR_VERSION=5", "-DMINOR_VERSION=0", "-include common/all-versions/VersionMacro.h", ], } cc_library_shared { name: "android.hardware.audio.effect@6.0-util", defaults: ["android.hardware.audio.effect-util_default"], shared_libs: [ "android.hardware.audio.common@6.0", "android.hardware.audio.common@6.0-util", "android.hardware.audio.effect@6.0", ], cflags: [ "-DMAJOR_VERSION=6", "-DMINOR_VERSION=0", "-include common/all-versions/VersionMacro.h", ], } cc_library { name: "android.hardware.audio.effect@7.0-util", defaults: ["android.hardware.audio.effect-util_default"], shared_libs: [ "android.hardware.audio.common@7.0", "android.hardware.audio.common@7.0-util", "android.hardware.audio.effect@7.0", ], cflags: [ "-DMAJOR_VERSION=7", "-DMINOR_VERSION=0", "-include common/all-versions/VersionMacro.h", ], } // Note: this isn't a VTS test, but rather a unit test // to verify correctness of conversion utilities. cc_test { name: "android.hardware.audio.effect@7.0-util_tests", defaults: ["android.hardware.audio.effect-util_default"], srcs: ["tests/effectutils_tests.cpp"], // Use static linking to allow running in presubmit on // targets that don't have HAL V7. static_libs: [ "android.hardware.audio.common@7.0", "android.hardware.audio.common@7.0-enums", "android.hardware.audio.common@7.0-util", "android.hardware.audio.effect@7.0", "android.hardware.audio.effect@7.0-util", ], shared_libs: [ "libbase", "libxml2", ], cflags: [ "-Werror", "-Wall", "-DMAJOR_VERSION=7", "-DMINOR_VERSION=0", "-include common/all-versions/VersionMacro.h", ], test_suites: ["device-tests"], }