Saketh Sathuvalli | b99e1bc | 2018-02-21 17:10:34 +0530 | [diff] [blame] | 1 | // Build the unit tests for effects |
| 2 | |
Bob Badour | 948e6aa | 2021-02-12 21:02:31 -0800 | [diff] [blame] | 3 | package { |
| 4 | // See: http://go/android-license-faq |
| 5 | // A large-scale-change added 'default_applicable_licenses' to import |
| 6 | // all of the 'license_kinds' from "frameworks_av_license" |
| 7 | // to get the below license kinds: |
| 8 | // SPDX-license-identifier-Apache-2.0 |
| 9 | default_applicable_licenses: ["frameworks_av_license"], |
| 10 | } |
| 11 | |
Saketh Sathuvalli | b99e1bc | 2018-02-21 17:10:34 +0530 | [diff] [blame] | 12 | cc_test { |
Harish Mahendrakar | 9f33dba | 2021-02-17 18:25:21 -0800 | [diff] [blame] | 13 | name: "EffectBundleTest", |
| 14 | vendor: true, |
| 15 | gtest: true, |
| 16 | host_supported: true, |
| 17 | test_suites: ["device-tests"], |
Harish Mahendrakar | 88de9c4 | 2021-03-03 12:39:09 -0800 | [diff] [blame^] | 18 | srcs: [ |
| 19 | "EffectBundleTest.cpp", |
| 20 | "EffectTestHelper.cpp", |
| 21 | ], |
Harish Mahendrakar | 9f33dba | 2021-02-17 18:25:21 -0800 | [diff] [blame] | 22 | static_libs: [ |
| 23 | "libaudioutils", |
| 24 | "libbundlewrapper", |
| 25 | "libmusicbundle", |
| 26 | ], |
| 27 | shared_libs: [ |
| 28 | "liblog", |
| 29 | ], |
| 30 | header_libs: [ |
| 31 | "libhardware_headers", |
| 32 | ], |
| 33 | } |
| 34 | |
| 35 | cc_test { |
Saketh Sathuvalli | b99e1bc | 2018-02-21 17:10:34 +0530 | [diff] [blame] | 36 | name: "lvmtest", |
| 37 | host_supported: false, |
| 38 | proprietary: true, |
| 39 | |
| 40 | include_dirs: [ |
| 41 | "frameworks/av/media/libeffects/lvm/lib/Bass/lib", |
| 42 | "frameworks/av/media/libeffects/lvm/lib/Bass/src", |
| 43 | "frameworks/av/media/libeffects/lvm/lib/Bundle/src", |
| 44 | "frameworks/av/media/libeffects/lvm/lib/Common/src", |
| 45 | "frameworks/av/media/libeffects/lvm/lib/Eq/lib", |
| 46 | "frameworks/av/media/libeffects/lvm/lib/Eq/src", |
| 47 | "frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/lib", |
| 48 | "frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src", |
| 49 | "frameworks/av/media/libeffects/lvm/lib/StereoWidening/lib", |
| 50 | "frameworks/av/media/libeffects/lvm/lib/StereoWidening/src", |
| 51 | "frameworks/av/media/libeffects/lvm/wrapper/Bundle", |
| 52 | ], |
| 53 | |
| 54 | header_libs: [ |
| 55 | "libaudioeffects", |
| 56 | ], |
| 57 | |
| 58 | shared_libs: [ |
| 59 | "libaudioutils", |
| 60 | "liblog", |
| 61 | ], |
| 62 | |
| 63 | static_libs: [ |
| 64 | "libmusicbundle", |
| 65 | ], |
| 66 | |
| 67 | srcs: ["lvmtest.cpp"], |
| 68 | |
| 69 | cflags: [ |
Saketh Sathuvalli | b99e1bc | 2018-02-21 17:10:34 +0530 | [diff] [blame] | 70 | "-DSUPPORT_MC", |
| 71 | |
| 72 | "-Wall", |
| 73 | "-Werror", |
| 74 | "-Wextra", |
| 75 | ], |
| 76 | } |
Saketh Sathuvalli | b89991f | 2019-01-10 19:26:43 +0530 | [diff] [blame] | 77 | |
| 78 | cc_test { |
Saketh Sathuvalli | 927bea3 | 2020-08-16 19:18:28 +0530 | [diff] [blame] | 79 | name: "reverb_test", |
Harish Mahendrakar | 6d2e79b | 2021-02-17 13:47:44 -0800 | [diff] [blame] | 80 | host_supported: true, |
Saketh Sathuvalli | 927bea3 | 2020-08-16 19:18:28 +0530 | [diff] [blame] | 81 | proprietary: true, |
Julien Desprez | 3163a9f | 2021-02-20 00:56:48 +0000 | [diff] [blame] | 82 | gtest: false, |
Saketh Sathuvalli | 927bea3 | 2020-08-16 19:18:28 +0530 | [diff] [blame] | 83 | |
| 84 | include_dirs: [ |
Harish Mahendrakar | 0bbbe07 | 2020-10-01 23:28:48 +0530 | [diff] [blame] | 85 | "frameworks/av/media/libeffects/lvm/wrapper/Reverb", |
Saketh Sathuvalli | 927bea3 | 2020-08-16 19:18:28 +0530 | [diff] [blame] | 86 | ], |
| 87 | |
| 88 | header_libs: [ |
| 89 | "libaudioeffects", |
| 90 | ], |
| 91 | |
| 92 | shared_libs: [ |
| 93 | "libaudioutils", |
| 94 | "liblog", |
Saketh Sathuvalli | 927bea3 | 2020-08-16 19:18:28 +0530 | [diff] [blame] | 95 | ], |
| 96 | |
Harish Mahendrakar | 3a3fcfe | 2020-12-30 14:54:04 -0800 | [diff] [blame] | 97 | static_libs: [ |
| 98 | "libreverb", |
| 99 | "libreverbwrapper", |
| 100 | ], |
Saketh Sathuvalli | 927bea3 | 2020-08-16 19:18:28 +0530 | [diff] [blame] | 101 | srcs: [ |
| 102 | "reverb_test.cpp", |
| 103 | ], |
| 104 | |
| 105 | cflags: [ |
| 106 | "-Wall", |
| 107 | "-Werror", |
| 108 | "-Wextra", |
| 109 | ], |
| 110 | } |
| 111 | |
| 112 | cc_test { |
Saketh Sathuvalli | b89991f | 2019-01-10 19:26:43 +0530 | [diff] [blame] | 113 | name: "snr", |
| 114 | host_supported: false, |
| 115 | |
| 116 | srcs: ["snr.cpp"], |
| 117 | |
| 118 | cflags: [ |
| 119 | "-Wall", |
| 120 | "-Werror", |
| 121 | "-Wextra", |
| 122 | ], |
| 123 | } |