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