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