• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Build the unit tests.
2package {
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
11cc_test {
12    name: "libinput_tests",
13    srcs: [
14        "IdGenerator_test.cpp",
15        "InputChannel_test.cpp",
16        "InputDevice_test.cpp",
17        "InputEvent_test.cpp",
18        "InputPublisherAndConsumer_test.cpp",
19        "TouchVideoFrame_test.cpp",
20        "VelocityTracker_test.cpp",
21        "VerifiedInputEvent_test.cpp",
22    ],
23    static_libs: [
24        "libgui_window_info_static",
25        "libinput",
26    ],
27    cflags: [
28        "-Wall",
29        "-Wextra",
30        "-Werror",
31    ],
32    shared_libs: [
33        "libbase",
34        "libbinder",
35        "libcutils",
36        "liblog",
37        "libui",
38        "libutils",
39        "libvintf",
40    ],
41    data: ["data/*"],
42    test_suites: ["device-tests"],
43}
44
45// NOTE: This is a compile time test, and does not need to be
46// run. All assertions are static_asserts and will fail during
47// buildtime if something's wrong.
48cc_library_static {
49    name: "StructLayout_test",
50    srcs: ["StructLayout_test.cpp"],
51    compile_multilib: "both",
52    cflags: [
53        "-Wall",
54        "-Werror",
55        "-Wextra",
56    ],
57    shared_libs: [
58        "libinput",
59        "libcutils",
60        "libutils",
61        "libbinder",
62        "libui",
63        "libbase",
64    ],
65}
66