blob: f06119f3f73aac256209b21354081b4a3981c028 [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",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -07009 ],
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070010 cflags: [
11 "-Wall",
Siarhei Vishniakou635cb712017-11-01 16:32:14 -070012 "-Wextra",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070013 "-Werror",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070014 "-Wno-unused-variable",
15 ],
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070016 shared_libs: [
17 "libinput",
18 "libcutils",
19 "libutils",
20 "libbinder",
21 "libui",
Siarhei Vishniakoud4b607e2017-06-13 12:21:59 +010022 "libbase",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070023 ]
24}
25
26// NOTE: This is a compile time test, and does not need to be
27// run. All assertions are static_asserts and will fail during
28// buildtime if something's wrong.
29cc_library_static {
30 name: "StructLayout_test",
31 srcs: ["StructLayout_test.cpp"],
32 cflags: [
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070033 "-O0",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070034 "-Wall",
35 "-Werror",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070036 ],
37}