blob: fdd945e90e01b2b480b268203fa551bd9249d890 [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 Vishniakoud4b607e2017-06-13 12:21:59 +01008 "VelocityTracker_test.cpp",
Robert Carr3720ed02018-08-08 16:08:27 -07009 "InputWindow_test.cpp"
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070010 ],
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070011 cflags: [
12 "-Wall",
Siarhei Vishniakou635cb712017-11-01 16:32:14 -070013 "-Wextra",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070014 "-Werror",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070015 "-Wno-unused-variable",
16 ],
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070017 shared_libs: [
18 "libinput",
19 "libcutils",
20 "libutils",
21 "libbinder",
22 "libui",
Siarhei Vishniakoud4b607e2017-06-13 12:21:59 +010023 "libbase",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070024 ]
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.
30cc_library_static {
31 name: "StructLayout_test",
32 srcs: ["StructLayout_test.cpp"],
33 cflags: [
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070034 "-O0",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070035 "-Wall",
36 "-Werror",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070037 ],
Robert Carr3720ed02018-08-08 16:08:27 -070038 shared_libs: [
39 "libinput",
40 "libcutils",
41 "libutils",
42 "libbinder",
43 "libui",
44 "libbase",
45 ]
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070046}