Mikhail Naganov | a9ac889 | 2021-01-15 19:05:04 +0000 | [diff] [blame] | 1 | cc_defaults { |
| 2 | name: "android.hardware.audio.effect-util_default", |
| 3 | defaults: ["hidl_defaults"], |
| 4 | |
| 5 | vendor_available: true, |
| 6 | |
| 7 | export_include_dirs: ["include"], |
| 8 | |
| 9 | srcs: [ |
| 10 | "EffectUtils.cpp", |
| 11 | ], |
| 12 | |
| 13 | shared_libs: [ |
| 14 | "liblog", |
| 15 | "libutils", |
| 16 | "libhidlbase", |
| 17 | "android.hardware.audio.common-util", |
| 18 | ], |
| 19 | export_shared_lib_headers: [ |
| 20 | "android.hardware.audio.common-util", |
| 21 | ], |
| 22 | |
| 23 | header_libs: [ |
| 24 | "libaudio_system_headers", |
| 25 | "libhardware_headers", |
| 26 | ], |
| 27 | } |
| 28 | |
| 29 | cc_library_shared { |
| 30 | name: "android.hardware.audio.effect@2.0-util", |
| 31 | defaults: ["android.hardware.audio.effect-util_default"], |
| 32 | shared_libs: [ |
| 33 | "android.hardware.audio.common@2.0", |
| 34 | "android.hardware.audio.common@2.0-util", |
| 35 | "android.hardware.audio.effect@2.0", |
| 36 | ], |
| 37 | cflags: [ |
| 38 | "-DMAJOR_VERSION=2", |
| 39 | "-DMINOR_VERSION=0", |
| 40 | "-include common/all-versions/VersionMacro.h", |
| 41 | ], |
| 42 | } |
| 43 | |
| 44 | cc_library_shared { |
| 45 | name: "android.hardware.audio.effect@4.0-util", |
| 46 | defaults: ["android.hardware.audio.effect-util_default"], |
| 47 | shared_libs: [ |
| 48 | "android.hardware.audio.common@4.0", |
| 49 | "android.hardware.audio.common@4.0-util", |
| 50 | "android.hardware.audio.effect@4.0", |
| 51 | ], |
| 52 | cflags: [ |
| 53 | "-DMAJOR_VERSION=4", |
| 54 | "-DMINOR_VERSION=0", |
| 55 | "-include common/all-versions/VersionMacro.h", |
| 56 | ], |
| 57 | } |
| 58 | |
| 59 | cc_library_shared { |
| 60 | name: "android.hardware.audio.effect@5.0-util", |
| 61 | defaults: ["android.hardware.audio.effect-util_default"], |
| 62 | shared_libs: [ |
| 63 | "android.hardware.audio.common@5.0", |
| 64 | "android.hardware.audio.common@5.0-util", |
| 65 | "android.hardware.audio.effect@5.0", |
| 66 | ], |
| 67 | cflags: [ |
| 68 | "-DMAJOR_VERSION=5", |
| 69 | "-DMINOR_VERSION=0", |
| 70 | "-include common/all-versions/VersionMacro.h", |
| 71 | ], |
| 72 | } |
| 73 | |
| 74 | cc_library_shared { |
| 75 | name: "android.hardware.audio.effect@6.0-util", |
| 76 | defaults: ["android.hardware.audio.effect-util_default"], |
| 77 | shared_libs: [ |
| 78 | "android.hardware.audio.common@6.0", |
| 79 | "android.hardware.audio.common@6.0-util", |
| 80 | "android.hardware.audio.effect@6.0", |
| 81 | ], |
| 82 | cflags: [ |
| 83 | "-DMAJOR_VERSION=6", |
| 84 | "-DMINOR_VERSION=0", |
| 85 | "-include common/all-versions/VersionMacro.h", |
| 86 | ], |
| 87 | } |
| 88 | |
| 89 | cc_library { |
| 90 | name: "android.hardware.audio.effect@7.0-util", |
| 91 | defaults: ["android.hardware.audio.effect-util_default"], |
| 92 | shared_libs: [ |
| 93 | "android.hardware.audio.common@7.0", |
| 94 | "android.hardware.audio.common@7.0-util", |
| 95 | "android.hardware.audio.effect@7.0", |
| 96 | ], |
| 97 | cflags: [ |
| 98 | "-DMAJOR_VERSION=7", |
| 99 | "-DMINOR_VERSION=0", |
| 100 | "-include common/all-versions/VersionMacro.h", |
| 101 | ], |
| 102 | } |
| 103 | |
| 104 | // Note: this isn't a VTS test, but rather a unit test |
| 105 | // to verify correctness of conversion utilities. |
| 106 | cc_test { |
| 107 | name: "android.hardware.audio.effect@7.0-util_tests", |
| 108 | defaults: ["android.hardware.audio.effect-util_default"], |
| 109 | |
| 110 | srcs: ["tests/effectutils_tests.cpp"], |
| 111 | |
| 112 | // Use static linking to allow running in presubmit on |
| 113 | // targets that don't have HAL V7. |
| 114 | static_libs: [ |
| 115 | "android.hardware.audio.common@7.0", |
| 116 | "android.hardware.audio.common@7.0-enums", |
| 117 | "android.hardware.audio.common@7.0-util", |
| 118 | "android.hardware.audio.effect@7.0", |
| 119 | "android.hardware.audio.effect@7.0-util", |
| 120 | ], |
| 121 | |
| 122 | shared_libs: [ |
| 123 | "libbase", |
| 124 | "libxml2", |
| 125 | ], |
| 126 | |
| 127 | cflags: [ |
| 128 | "-Werror", |
| 129 | "-Wall", |
| 130 | "-DMAJOR_VERSION=7", |
| 131 | "-DMINOR_VERSION=0", |
| 132 | "-include common/all-versions/VersionMacro.h", |
| 133 | ], |
| 134 | |
| 135 | test_suites: ["device-tests"], |
| 136 | } |