blob: 3b571464613ed5a1f9d69b0863322fe1f341662d [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: [
Garfield Tan84b087e2020-01-23 10:49:05 -08005 "IdGenerator_test.cpp",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -07006 "InputChannel_test.cpp",
Siarhei Vishniakou257553c2019-02-21 14:37:06 -06007 "InputDevice_test.cpp",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -07008 "InputEvent_test.cpp",
9 "InputPublisherAndConsumer_test.cpp",
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -060010 "InputWindow_test.cpp",
Atif Niyaz83846822019-07-18 15:17:40 -070011 "LatencyStatistics_test.cpp",
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -060012 "TouchVideoFrame_test.cpp",
Siarhei Vishniakoud4b607e2017-06-13 12:21:59 +010013 "VelocityTracker_test.cpp",
Siarhei Vishniakou54d3e182020-01-15 17:38:38 -080014 "VerifiedInputEvent_test.cpp",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070015 ],
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070016 cflags: [
17 "-Wall",
Siarhei Vishniakou635cb712017-11-01 16:32:14 -070018 "-Wextra",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070019 "-Werror",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070020 ],
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070021 shared_libs: [
22 "libinput",
23 "libcutils",
24 "libutils",
25 "libbinder",
26 "libui",
Siarhei Vishniakoud4b607e2017-06-13 12:21:59 +010027 "libbase",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070028 ]
29}
30
31// NOTE: This is a compile time test, and does not need to be
32// run. All assertions are static_asserts and will fail during
33// buildtime if something's wrong.
34cc_library_static {
35 name: "StructLayout_test",
36 srcs: ["StructLayout_test.cpp"],
37 cflags: [
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070038 "-O0",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070039 "-Wall",
40 "-Werror",
Siarhei Vishniakou257553c2019-02-21 14:37:06 -060041 "-Wextra",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070042 ],
Robert Carr3720ed02018-08-08 16:08:27 -070043 shared_libs: [
44 "libinput",
45 "libcutils",
46 "libutils",
47 "libbinder",
48 "libui",
49 "libbase",
50 ]
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070051}