blob: ade931e01a606ae7f0ebc041f15f69446e7a1594 [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",
10 "TouchVideoFrame_test.cpp",
Siarhei Vishniakoud4b607e2017-06-13 12:21:59 +010011 "VelocityTracker_test.cpp",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070012 ],
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070013 cflags: [
14 "-Wall",
Siarhei Vishniakou635cb712017-11-01 16:32:14 -070015 "-Wextra",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070016 "-Werror",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070017 "-Wno-unused-variable",
18 ],
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070019 shared_libs: [
20 "libinput",
21 "libcutils",
22 "libutils",
23 "libbinder",
24 "libui",
Siarhei Vishniakoud4b607e2017-06-13 12:21:59 +010025 "libbase",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070026 ]
27}
28
29// NOTE: This is a compile time test, and does not need to be
30// run. All assertions are static_asserts and will fail during
31// buildtime if something's wrong.
32cc_library_static {
33 name: "StructLayout_test",
34 srcs: ["StructLayout_test.cpp"],
35 cflags: [
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070036 "-O0",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070037 "-Wall",
38 "-Werror",
Siarhei Vishniakou257553c2019-02-21 14:37:06 -060039 "-Wextra",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070040 ],
Robert Carr3720ed02018-08-08 16:08:27 -070041 shared_libs: [
42 "libinput",
43 "libcutils",
44 "libutils",
45 "libbinder",
46 "libui",
47 "libbase",
48 ]
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070049}