blob: b23aaded78738319394617793afd07c0253e1ad6 [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: [
Chris Ye173871c2020-09-08 09:55:14 -07005 "NamedEnum_test.cpp",
Michael Wright44753b12020-07-08 13:48:11 +01006 "Flags_test.cpp",
Garfield Tan84b087e2020-01-23 10:49:05 -08007 "IdGenerator_test.cpp",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -07008 "InputChannel_test.cpp",
Siarhei Vishniakou257553c2019-02-21 14:37:06 -06009 "InputDevice_test.cpp",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070010 "InputEvent_test.cpp",
11 "InputPublisherAndConsumer_test.cpp",
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -060012 "InputWindow_test.cpp",
Atif Niyaz83846822019-07-18 15:17:40 -070013 "LatencyStatistics_test.cpp",
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -060014 "TouchVideoFrame_test.cpp",
Siarhei Vishniakoud4b607e2017-06-13 12:21:59 +010015 "VelocityTracker_test.cpp",
Siarhei Vishniakou54d3e182020-01-15 17:38:38 -080016 "VerifiedInputEvent_test.cpp",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070017 ],
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070018 cflags: [
19 "-Wall",
Siarhei Vishniakou635cb712017-11-01 16:32:14 -070020 "-Wextra",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070021 "-Werror",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070022 ],
Siarhei Vishniakoue9cadca2020-09-14 18:24:51 -050023 static_libs: [
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070024 "libinput",
Siarhei Vishniakoue9cadca2020-09-14 18:24:51 -050025 ],
26 shared_libs: [
Siarhei Vishniakoud4b607e2017-06-13 12:21:59 +010027 "libbase",
Siarhei Vishniakoue9cadca2020-09-14 18:24:51 -050028 "libbinder",
29 "libcutils",
30 "liblog",
31 "libui",
32 "libutils",
Siarhei Vishniakoua8388392020-10-21 23:58:48 -050033 ],
34 test_suites: ["device-tests"],
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070035}
36
37// NOTE: This is a compile time test, and does not need to be
38// run. All assertions are static_asserts and will fail during
39// buildtime if something's wrong.
40cc_library_static {
41 name: "StructLayout_test",
42 srcs: ["StructLayout_test.cpp"],
43 cflags: [
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070044 "-O0",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070045 "-Wall",
46 "-Werror",
Siarhei Vishniakou257553c2019-02-21 14:37:06 -060047 "-Wextra",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070048 ],
Robert Carr3720ed02018-08-08 16:08:27 -070049 shared_libs: [
50 "libinput",
51 "libcutils",
52 "libutils",
53 "libbinder",
54 "libui",
55 "libbase",
56 ]
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070057}