Steven Moreland | c46e984 | 2016-11-02 13:21:26 -0700 | [diff] [blame] | 1 | subdirs = [ |
| 2 | "vendor/1.0", |
| 3 | ] |
| 4 | |
Dan Willemsen | 676abdc | 2016-09-28 19:42:22 -0700 | [diff] [blame] | 5 | cc_test { |
| 6 | name: "hidl_test", |
| 7 | gtest: false, |
| 8 | srcs: ["main.cpp"], |
| 9 | |
| 10 | shared_libs: [ |
| 11 | "libbase", |
| 12 | "liblog", |
| 13 | "libcutils", |
Yifan Hong | a5abe92 | 2016-11-16 14:18:37 -0800 | [diff] [blame] | 14 | "libhidlbase", |
| 15 | "libhidltransport", |
Martijn Coenen | 99e6beb | 2016-12-01 15:48:42 +0100 | [diff] [blame] | 16 | "libhidlmemory", |
Yifan Hong | 398e6fb | 2016-10-17 11:38:09 -0700 | [diff] [blame] | 17 | "libfootest", |
Dan Willemsen | 676abdc | 2016-09-28 19:42:22 -0700 | [diff] [blame] | 18 | "libhwbinder", |
| 19 | "libnativehelper", |
Yifan Hong | 398e6fb | 2016-10-17 11:38:09 -0700 | [diff] [blame] | 20 | "libpointertest", |
Dan Willemsen | 676abdc | 2016-09-28 19:42:22 -0700 | [diff] [blame] | 21 | "libutils", |
| 22 | "android.hardware.tests.foo@1.0", |
| 23 | "android.hardware.tests.bar@1.0", |
Yifan Hong | 1e81c53 | 2016-10-18 18:43:46 -0700 | [diff] [blame] | 24 | "android.hardware.tests.inheritance@1.0", |
Dan Willemsen | 676abdc | 2016-09-28 19:42:22 -0700 | [diff] [blame] | 25 | "android.hardware.tests.pointer@1.0", |
Martijn Coenen | 99e6beb | 2016-12-01 15:48:42 +0100 | [diff] [blame] | 26 | "android.hardware.tests.memory@1.0", |
Martijn Coenen | a26c1b3 | 2016-12-14 09:32:54 +0100 | [diff] [blame] | 27 | "android.hidl.memory@1.0", // TODO remove this line when b/32185232 is fixed |
Dan Willemsen | 676abdc | 2016-09-28 19:42:22 -0700 | [diff] [blame] | 28 | ], |
| 29 | static_libs: ["libgtest"], |
| 30 | |
Steven Moreland | 40d131b | 2016-10-24 11:29:20 -0700 | [diff] [blame] | 31 | required: [ |
| 32 | // Warning, these should never be specified explicitly for anything else |
| 33 | // as for a given device, what hal implementation is used is determined |
| 34 | // by what is specified/available in a device.mk. However, this test |
| 35 | // actually depends on these test implementations (which should never be |
| 36 | // included on a device.mk). |
| 37 | "android.hardware.tests.foo@1.0-impl", |
| 38 | "android.hardware.tests.bar@1.0-impl", |
Yifan Hong | 1e81c53 | 2016-10-18 18:43:46 -0700 | [diff] [blame] | 39 | "android.hardware.tests.inheritance@1.0-impl", |
Steven Moreland | 40d131b | 2016-10-24 11:29:20 -0700 | [diff] [blame] | 40 | "android.hardware.tests.pointer@1.0-impl", |
Martijn Coenen | 19cb106 | 2016-12-06 14:49:09 +0100 | [diff] [blame] | 41 | "android.hardware.tests.memory@1.0-impl", |
Martijn Coenen | a26c1b3 | 2016-12-14 09:32:54 +0100 | [diff] [blame] | 42 | "android.hidl.memory@1.0-impl", // TODO remove this line when b/32185232 is fixed |
Steven Moreland | 40d131b | 2016-10-24 11:29:20 -0700 | [diff] [blame] | 43 | ], |
| 44 | |
Dan Willemsen | 676abdc | 2016-09-28 19:42:22 -0700 | [diff] [blame] | 45 | cflags: [ |
| 46 | "-O0", |
| 47 | "-g", |
| 48 | ], |
Martijn Coenen | bf21f20 | 2016-11-18 15:46:46 +0100 | [diff] [blame] | 49 | |
| 50 | compile_multilib: "both", |
| 51 | multilib: { |
| 52 | lib32: { |
| 53 | suffix: "32", |
| 54 | }, |
| 55 | lib64: { |
| 56 | suffix: "64", |
| 57 | }, |
| 58 | }, |
Dan Willemsen | 676abdc | 2016-09-28 19:42:22 -0700 | [diff] [blame] | 59 | } |