blob: 5aae37dae8ef19cf3049dbc217344e9fc68f7e5a [file] [log] [blame]
Dan Willemsenc7dd2b92016-08-25 17:05:22 -07001// Build the unit tests.
Bob Badour3306e492021-02-25 15:35:37 -08002package {
3 // See: http://go/android-license-faq
4 // A large-scale-change added 'default_applicable_licenses' to import
5 // all of the 'license_kinds' from "frameworks_native_license"
6 // to get the below license kinds:
7 // SPDX-license-identifier-Apache-2.0
8 default_applicable_licenses: ["frameworks_native_license"],
9}
10
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070011cc_test {
12 name: "libinput_tests",
Siarhei Vishniakou5e83dfe2022-09-28 17:04:42 -070013 host_supported: true,
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070014 srcs: [
Garfield Tan84b087e2020-01-23 10:49:05 -080015 "IdGenerator_test.cpp",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070016 "InputChannel_test.cpp",
Siarhei Vishniakou257553c2019-02-21 14:37:06 -060017 "InputDevice_test.cpp",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070018 "InputEvent_test.cpp",
19 "InputPublisherAndConsumer_test.cpp",
Siarhei Vishniakou0ced3cc2017-11-21 15:33:17 -080020 "TouchResampling_test.cpp",
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -060021 "TouchVideoFrame_test.cpp",
Siarhei Vishniakoud4b607e2017-06-13 12:21:59 +010022 "VelocityTracker_test.cpp",
Siarhei Vishniakou54d3e182020-01-15 17:38:38 -080023 "VerifiedInputEvent_test.cpp",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070024 ],
chaviw98318de2021-05-19 16:45:23 -050025 static_libs: [
26 "libgui_window_info_static",
27 "libinput",
Siarhei Vishniakou5e83dfe2022-09-28 17:04:42 -070028 "libui-types",
chaviw98318de2021-05-19 16:45:23 -050029 ],
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070030 cflags: [
31 "-Wall",
Siarhei Vishniakou635cb712017-11-01 16:32:14 -070032 "-Wextra",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070033 "-Werror",
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070034 ],
Siarhei Vishniakoue9cadca2020-09-14 18:24:51 -050035 shared_libs: [
Siarhei Vishniakoud4b607e2017-06-13 12:21:59 +010036 "libbase",
Siarhei Vishniakoue9cadca2020-09-14 18:24:51 -050037 "libbinder",
38 "libcutils",
39 "liblog",
Siarhei Vishniakoue9cadca2020-09-14 18:24:51 -050040 "libutils",
Siarhei Vishniakoua9fd82c2022-05-18 09:42:52 -070041 "libvintf",
Siarhei Vishniakoua8388392020-10-21 23:58:48 -050042 ],
Siarhei Vishniakoua9fd82c2022-05-18 09:42:52 -070043 data: ["data/*"],
Siarhei Vishniakou5e83dfe2022-09-28 17:04:42 -070044 test_options: {
45 unit_test: true,
46 },
Siarhei Vishniakoua8388392020-10-21 23:58:48 -050047 test_suites: ["device-tests"],
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070048}
49
50// NOTE: This is a compile time test, and does not need to be
51// run. All assertions are static_asserts and will fail during
52// buildtime if something's wrong.
53cc_library_static {
54 name: "StructLayout_test",
55 srcs: ["StructLayout_test.cpp"],
Siarhei Vishniakoudbdb6732021-04-26 19:40:26 +000056 compile_multilib: "both",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070057 cflags: [
Chih-Hung Hsieh687a0d12017-10-05 15:20:11 -070058 "-Wall",
59 "-Werror",
Siarhei Vishniakou257553c2019-02-21 14:37:06 -060060 "-Wextra",
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070061 ],
Robert Carr3720ed02018-08-08 16:08:27 -070062 shared_libs: [
63 "libinput",
64 "libcutils",
65 "libutils",
66 "libbinder",
Robert Carr3720ed02018-08-08 16:08:27 -070067 "libbase",
Philip Junker90bc9492021-12-10 18:39:42 +010068 ],
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070069}