Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 1 | // Build the unit tests. |
Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 2 | package { |
| 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 Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 11 | cc_test { |
| 12 | name: "libinput_tests", |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 13 | srcs: [ |
Garfield Tan | 84b087e | 2020-01-23 10:49:05 -0800 | [diff] [blame] | 14 | "IdGenerator_test.cpp", |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 15 | "InputChannel_test.cpp", |
Siarhei Vishniakou | 257553c | 2019-02-21 14:37:06 -0600 | [diff] [blame] | 16 | "InputDevice_test.cpp", |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 17 | "InputEvent_test.cpp", |
| 18 | "InputPublisherAndConsumer_test.cpp", |
Siarhei Vishniakou | 0ced3cc | 2017-11-21 15:33:17 -0800 | [diff] [blame] | 19 | "TouchResampling_test.cpp", |
Siarhei Vishniakou | 5ac663d | 2019-02-15 17:15:56 -0600 | [diff] [blame] | 20 | "TouchVideoFrame_test.cpp", |
Siarhei Vishniakou | d4b607e | 2017-06-13 12:21:59 +0100 | [diff] [blame] | 21 | "VelocityTracker_test.cpp", |
Siarhei Vishniakou | 54d3e18 | 2020-01-15 17:38:38 -0800 | [diff] [blame] | 22 | "VerifiedInputEvent_test.cpp", |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 23 | ], |
chaviw | 98318de | 2021-05-19 16:45:23 -0500 | [diff] [blame] | 24 | static_libs: [ |
| 25 | "libgui_window_info_static", |
| 26 | "libinput", |
| 27 | ], |
Chih-Hung Hsieh | 687a0d1 | 2017-10-05 15:20:11 -0700 | [diff] [blame] | 28 | cflags: [ |
| 29 | "-Wall", |
Siarhei Vishniakou | 635cb71 | 2017-11-01 16:32:14 -0700 | [diff] [blame] | 30 | "-Wextra", |
Chih-Hung Hsieh | 687a0d1 | 2017-10-05 15:20:11 -0700 | [diff] [blame] | 31 | "-Werror", |
Chih-Hung Hsieh | 687a0d1 | 2017-10-05 15:20:11 -0700 | [diff] [blame] | 32 | ], |
Siarhei Vishniakou | e9cadca | 2020-09-14 18:24:51 -0500 | [diff] [blame] | 33 | shared_libs: [ |
Siarhei Vishniakou | d4b607e | 2017-06-13 12:21:59 +0100 | [diff] [blame] | 34 | "libbase", |
Siarhei Vishniakou | e9cadca | 2020-09-14 18:24:51 -0500 | [diff] [blame] | 35 | "libbinder", |
| 36 | "libcutils", |
| 37 | "liblog", |
| 38 | "libui", |
| 39 | "libutils", |
Siarhei Vishniakou | a9fd82c | 2022-05-18 09:42:52 -0700 | [diff] [blame] | 40 | "libvintf", |
Siarhei Vishniakou | a838839 | 2020-10-21 23:58:48 -0500 | [diff] [blame] | 41 | ], |
Siarhei Vishniakou | a9fd82c | 2022-05-18 09:42:52 -0700 | [diff] [blame] | 42 | data: ["data/*"], |
Siarhei Vishniakou | a838839 | 2020-10-21 23:58:48 -0500 | [diff] [blame] | 43 | test_suites: ["device-tests"], |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 44 | } |
| 45 | |
| 46 | // NOTE: This is a compile time test, and does not need to be |
| 47 | // run. All assertions are static_asserts and will fail during |
| 48 | // buildtime if something's wrong. |
| 49 | cc_library_static { |
| 50 | name: "StructLayout_test", |
| 51 | srcs: ["StructLayout_test.cpp"], |
Siarhei Vishniakou | dbdb673 | 2021-04-26 19:40:26 +0000 | [diff] [blame] | 52 | compile_multilib: "both", |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 53 | cflags: [ |
Chih-Hung Hsieh | 687a0d1 | 2017-10-05 15:20:11 -0700 | [diff] [blame] | 54 | "-Wall", |
| 55 | "-Werror", |
Siarhei Vishniakou | 257553c | 2019-02-21 14:37:06 -0600 | [diff] [blame] | 56 | "-Wextra", |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 57 | ], |
Robert Carr | 3720ed0 | 2018-08-08 16:08:27 -0700 | [diff] [blame] | 58 | shared_libs: [ |
| 59 | "libinput", |
| 60 | "libcutils", |
| 61 | "libutils", |
| 62 | "libbinder", |
| 63 | "libui", |
| 64 | "libbase", |
Philip Junker | 90bc949 | 2021-12-10 18:39:42 +0100 | [diff] [blame] | 65 | ], |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 66 | } |