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