blob: 7ff5ab60560af92b41e29ee0aa863e9bdc5cc1f6 [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: [
Michael Wright44753b12020-07-08 13:48:11 +01005 "Flags_test.cpp",
Garfield Tan84b087e2020-01-23 10:49:05 -08006 "IdGenerator_test.cpp",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -07007 "InputChannel_test.cpp",
Siarhei Vishniakou257553c2019-02-21 14:37:06 -06008 "InputDevice_test.cpp",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -07009 "InputEvent_test.cpp",
10 "InputPublisherAndConsumer_test.cpp",
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -060011 "InputWindow_test.cpp",
Atif Niyaz83846822019-07-18 15:17:40 -070012 "LatencyStatistics_test.cpp",
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -060013 "TouchVideoFrame_test.cpp",
Siarhei Vishniakoud4b607e2017-06-13 12:21:59 +010014 "VelocityTracker_test.cpp",
Siarhei Vishniakou54d3e182020-01-15 17:38:38 -080015 "VerifiedInputEvent_test.cpp",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070016 ],
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070017 cflags: [
18 "-Wall",
Siarhei Vishniakou635cb712017-11-01 16:32:14 -070019 "-Wextra",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070020 "-Werror",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070021 ],
Siarhei Vishniakoue9cadca2020-09-14 18:24:51 -050022 static_libs: [
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070023 "libinput",
Siarhei Vishniakoue9cadca2020-09-14 18:24:51 -050024 ],
25 shared_libs: [
Siarhei Vishniakoud4b607e2017-06-13 12:21:59 +010026 "libbase",
Siarhei Vishniakoue9cadca2020-09-14 18:24:51 -050027 "libbinder",
28 "libcutils",
29 "liblog",
30 "libui",
31 "libutils",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070032 ]
33}
34
35// NOTE: This is a compile time test, and does not need to be
36// run. All assertions are static_asserts and will fail during
37// buildtime if something's wrong.
38cc_library_static {
39 name: "StructLayout_test",
40 srcs: ["StructLayout_test.cpp"],
41 cflags: [
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070042 "-O0",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070043 "-Wall",
44 "-Werror",
Siarhei Vishniakou257553c2019-02-21 14:37:06 -060045 "-Wextra",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070046 ],
Robert Carr3720ed02018-08-08 16:08:27 -070047 shared_libs: [
48 "libinput",
49 "libcutils",
50 "libutils",
51 "libbinder",
52 "libui",
53 "libbase",
54 ]
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070055}