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