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 | ], |
| 11 | shared_libs: [ |
| 12 | "libinput", |
| 13 | "libcutils", |
| 14 | "libutils", |
| 15 | "libbinder", |
| 16 | "libui", |
Siarhei Vishniakou | d4b607e | 2017-06-13 12:21:59 +0100 | [diff] [blame^] | 17 | "libbase", |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 18 | ] |
| 19 | } |
| 20 | |
| 21 | // NOTE: This is a compile time test, and does not need to be |
| 22 | // run. All assertions are static_asserts and will fail during |
| 23 | // buildtime if something's wrong. |
| 24 | cc_library_static { |
| 25 | name: "StructLayout_test", |
| 26 | srcs: ["StructLayout_test.cpp"], |
| 27 | cflags: [ |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 28 | "-O0", |
| 29 | ], |
| 30 | } |