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