Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 1 | // Build the unit tests. |
| 2 | cc_test { |
| 3 | name: "libinput_tests", |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 4 | srcs: [ |
Chris Ye | 173871c | 2020-09-08 09:55:14 -0700 | [diff] [blame] | 5 | "NamedEnum_test.cpp", |
Michael Wright | 44753b1 | 2020-07-08 13:48:11 +0100 | [diff] [blame] | 6 | "Flags_test.cpp", |
Garfield Tan | 84b087e | 2020-01-23 10:49:05 -0800 | [diff] [blame] | 7 | "IdGenerator_test.cpp", |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 8 | "InputChannel_test.cpp", |
Siarhei Vishniakou | 257553c | 2019-02-21 14:37:06 -0600 | [diff] [blame] | 9 | "InputDevice_test.cpp", |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 10 | "InputEvent_test.cpp", |
| 11 | "InputPublisherAndConsumer_test.cpp", |
Siarhei Vishniakou | 5ac663d | 2019-02-15 17:15:56 -0600 | [diff] [blame] | 12 | "InputWindow_test.cpp", |
Atif Niyaz | 8384682 | 2019-07-18 15:17:40 -0700 | [diff] [blame] | 13 | "LatencyStatistics_test.cpp", |
Siarhei Vishniakou | 5ac663d | 2019-02-15 17:15:56 -0600 | [diff] [blame] | 14 | "TouchVideoFrame_test.cpp", |
Siarhei Vishniakou | d4b607e | 2017-06-13 12:21:59 +0100 | [diff] [blame] | 15 | "VelocityTracker_test.cpp", |
Siarhei Vishniakou | 54d3e18 | 2020-01-15 17:38:38 -0800 | [diff] [blame] | 16 | "VerifiedInputEvent_test.cpp", |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 17 | ], |
Chih-Hung Hsieh | 687a0d1 | 2017-10-05 15:20:11 -0700 | [diff] [blame] | 18 | cflags: [ |
| 19 | "-Wall", |
Siarhei Vishniakou | 635cb71 | 2017-11-01 16:32:14 -0700 | [diff] [blame] | 20 | "-Wextra", |
Chih-Hung Hsieh | 687a0d1 | 2017-10-05 15:20:11 -0700 | [diff] [blame] | 21 | "-Werror", |
Chih-Hung Hsieh | 687a0d1 | 2017-10-05 15:20:11 -0700 | [diff] [blame] | 22 | ], |
Siarhei Vishniakou | e9cadca | 2020-09-14 18:24:51 -0500 | [diff] [blame] | 23 | static_libs: [ |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 24 | "libinput", |
Siarhei Vishniakou | e9cadca | 2020-09-14 18:24:51 -0500 | [diff] [blame] | 25 | ], |
| 26 | shared_libs: [ |
Siarhei Vishniakou | d4b607e | 2017-06-13 12:21:59 +0100 | [diff] [blame] | 27 | "libbase", |
Siarhei Vishniakou | e9cadca | 2020-09-14 18:24:51 -0500 | [diff] [blame] | 28 | "libbinder", |
| 29 | "libcutils", |
| 30 | "liblog", |
| 31 | "libui", |
| 32 | "libutils", |
Siarhei Vishniakou | a838839 | 2020-10-21 23:58:48 -0500 | [diff] [blame^] | 33 | ], |
| 34 | test_suites: ["device-tests"], |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | // NOTE: This is a compile time test, and does not need to be |
| 38 | // run. All assertions are static_asserts and will fail during |
| 39 | // buildtime if something's wrong. |
| 40 | cc_library_static { |
| 41 | name: "StructLayout_test", |
| 42 | srcs: ["StructLayout_test.cpp"], |
| 43 | cflags: [ |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 44 | "-O0", |
Chih-Hung Hsieh | 687a0d1 | 2017-10-05 15:20:11 -0700 | [diff] [blame] | 45 | "-Wall", |
| 46 | "-Werror", |
Siarhei Vishniakou | 257553c | 2019-02-21 14:37:06 -0600 | [diff] [blame] | 47 | "-Wextra", |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 48 | ], |
Robert Carr | 3720ed0 | 2018-08-08 16:08:27 -0700 | [diff] [blame] | 49 | shared_libs: [ |
| 50 | "libinput", |
| 51 | "libcutils", |
| 52 | "libutils", |
| 53 | "libbinder", |
| 54 | "libui", |
| 55 | "libbase", |
| 56 | ] |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 57 | } |