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", |
| 9 | ], |
Chih-Hung Hsieh | 687a0d1 | 2017-10-05 15:20:11 -0700 | [diff] [blame^] | 10 | cflags: [ |
| 11 | "-Wall", |
| 12 | "-Werror", |
| 13 | "-Wno-error=sign-compare", // to fix later |
| 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", |
| 22 | ] |
| 23 | } |
| 24 | |
| 25 | // NOTE: This is a compile time test, and does not need to be |
| 26 | // run. All assertions are static_asserts and will fail during |
| 27 | // buildtime if something's wrong. |
| 28 | cc_library_static { |
| 29 | name: "StructLayout_test", |
| 30 | srcs: ["StructLayout_test.cpp"], |
| 31 | cflags: [ |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 32 | "-O0", |
Chih-Hung Hsieh | 687a0d1 | 2017-10-05 15:20:11 -0700 | [diff] [blame^] | 33 | "-Wall", |
| 34 | "-Werror", |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 35 | ], |
| 36 | } |