summaryrefslogtreecommitdiff
path: root/tests/input/evdev/Android.bp
blob: 10fa1461d282c4083435cb0892c21252c35152f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "hardware_libhardware_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["hardware_libhardware_license"],
}

cc_test {
    name: "libinput_evdevtests",

    srcs: [
        "BitUtils_test.cpp",
        "InputDevice_test.cpp",
        "InputHub_test.cpp",
        "InputMocks.cpp",
        "MouseInputMapper_test.cpp",
        "SwitchInputMapper_test.cpp",
        "TestHelpers.cpp",
    ],

    static_libs: ["libgmock"],

    shared_libs: [
        "libinput_evdev",
        "liblog",
        "libutils",
    ],

    cflags: [
        "-Wall",
        "-Wextra",
        "-Werror",
        "-Wno-unused-parameter",

        // TestHelpers uses mktemp. As the path is given to TempFile, we can't do too much
        // here (e.g., use mkdtemp first). At least races will lead to an early failure, as
        // mkfifo fails on existing files.
        "-Wno-deprecated-declarations",
    ],
}