blob: fb21d5e3b1554702d67b22c263b169b94866ada4 [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",
Siarhei Vishniakou257553c2019-02-21 14:37:06 -06006 "InputDevice_test.cpp",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -07007 "InputEvent_test.cpp",
8 "InputPublisherAndConsumer_test.cpp",
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -06009 "InputWindow_test.cpp",
Atif Niyaz83846822019-07-18 15:17:40 -070010 "LatencyStatistics_test.cpp",
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -060011 "TouchVideoFrame_test.cpp",
Siarhei Vishniakoud4b607e2017-06-13 12:21:59 +010012 "VelocityTracker_test.cpp",
Siarhei Vishniakou54d3e182020-01-15 17:38:38 -080013 "VerifiedInputEvent_test.cpp",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070014 ],
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070015 cflags: [
16 "-Wall",
Siarhei Vishniakou635cb712017-11-01 16:32:14 -070017 "-Wextra",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070018 "-Werror",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070019 ],
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070020 shared_libs: [
21 "libinput",
22 "libcutils",
23 "libutils",
24 "libbinder",
25 "libui",
Siarhei Vishniakoud4b607e2017-06-13 12:21:59 +010026 "libbase",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070027 ]
28}
29
30// NOTE: This is a compile time test, and does not need to be
31// run. All assertions are static_asserts and will fail during
32// buildtime if something's wrong.
33cc_library_static {
34 name: "StructLayout_test",
35 srcs: ["StructLayout_test.cpp"],
36 cflags: [
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070037 "-O0",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070038 "-Wall",
39 "-Werror",
Siarhei Vishniakou257553c2019-02-21 14:37:06 -060040 "-Wextra",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070041 ],
Robert Carr3720ed02018-08-08 16:08:27 -070042 shared_libs: [
43 "libinput",
44 "libcutils",
45 "libutils",
46 "libbinder",
47 "libui",
48 "libbase",
49 ]
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070050}