blob: 44147a52ccf68a0675e74275b498b6b8c9b9adf1 [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",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070033 ]
34}
35
36// NOTE: This is a compile time test, and does not need to be
37// run. All assertions are static_asserts and will fail during
38// buildtime if something's wrong.
39cc_library_static {
40 name: "StructLayout_test",
41 srcs: ["StructLayout_test.cpp"],
42 cflags: [
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070043 "-O0",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070044 "-Wall",
45 "-Werror",
Siarhei Vishniakou257553c2019-02-21 14:37:06 -060046 "-Wextra",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070047 ],
Robert Carr3720ed02018-08-08 16:08:27 -070048 shared_libs: [
49 "libinput",
50 "libcutils",
51 "libutils",
52 "libbinder",
53 "libui",
54 "libbase",
55 ]
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070056}