blob: 57ba2a25a8739541096872696ef0c310fa6767ad [file] [log] [blame]
Dan Willemsenc7dd2b92016-08-25 17:05:22 -07001// Build the unit tests.
2cc_test {
3 name: "libinput_tests",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -07004 srcs: [
5 "InputChannel_test.cpp",
6 "InputEvent_test.cpp",
7 "InputPublisherAndConsumer_test.cpp",
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -06008 "InputWindow_test.cpp",
9 "TouchVideoFrame_test.cpp",
Siarhei Vishniakoud4b607e2017-06-13 12:21:59 +010010 "VelocityTracker_test.cpp",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070011 ],
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070012 cflags: [
13 "-Wall",
Siarhei Vishniakou635cb712017-11-01 16:32:14 -070014 "-Wextra",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070015 "-Werror",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070016 "-Wno-unused-variable",
17 ],
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070018 shared_libs: [
19 "libinput",
20 "libcutils",
21 "libutils",
22 "libbinder",
23 "libui",
Siarhei Vishniakoud4b607e2017-06-13 12:21:59 +010024 "libbase",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070025 ]
26}
27
28// NOTE: This is a compile time test, and does not need to be
29// run. All assertions are static_asserts and will fail during
30// buildtime if something's wrong.
31cc_library_static {
32 name: "StructLayout_test",
33 srcs: ["StructLayout_test.cpp"],
34 cflags: [
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070035 "-O0",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070036 "-Wall",
37 "-Werror",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070038 ],
Robert Carr3720ed02018-08-08 16:08:27 -070039 shared_libs: [
40 "libinput",
41 "libcutils",
42 "libutils",
43 "libbinder",
44 "libui",
45 "libbase",
46 ]
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070047}