blob: 9782c1a05a3152dfbe1dee131c62622ad7084d99 [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 ],
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070022 shared_libs: [
23 "libinput",
24 "libcutils",
25 "libutils",
26 "libbinder",
27 "libui",
Siarhei Vishniakoud4b607e2017-06-13 12:21:59 +010028 "libbase",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070029 ]
30}
31
32// NOTE: This is a compile time test, and does not need to be
33// run. All assertions are static_asserts and will fail during
34// buildtime if something's wrong.
35cc_library_static {
36 name: "StructLayout_test",
37 srcs: ["StructLayout_test.cpp"],
38 cflags: [
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070039 "-O0",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070040 "-Wall",
41 "-Werror",
Siarhei Vishniakou257553c2019-02-21 14:37:06 -060042 "-Wextra",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070043 ],
Robert Carr3720ed02018-08-08 16:08:27 -070044 shared_libs: [
45 "libinput",
46 "libcutils",
47 "libutils",
48 "libbinder",
49 "libui",
50 "libbase",
51 ]
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070052}