blob: c1c35e1b892732197a9cd5e3289735de261b1893 [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",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070013 ],
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070014 cflags: [
15 "-Wall",
Siarhei Vishniakou635cb712017-11-01 16:32:14 -070016 "-Wextra",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070017 "-Werror",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070018 "-Wno-unused-variable",
19 ],
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}