• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "hardware_interfaces_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["hardware_interfaces_license"],
8}
9
10cc_library_static {
11    name: "libvibratorexampleimpl",
12    vendor_available: true,
13    host_supported: true,
14    shared_libs: [
15        "libbase",
16        "libbinder_ndk",
17        "android.hardware.vibrator-V2-ndk",
18    ],
19    export_include_dirs: ["include"],
20    srcs: [
21        "Vibrator.cpp",
22        "VibratorManager.cpp",
23    ],
24    visibility: [
25        ":__subpackages__",
26        "//hardware/interfaces/tests/extension/vibrator:__subpackages__",
27    ],
28    target: {
29        darwin: {
30            enabled: false,
31        },
32    },
33}
34
35filegroup {
36    name: "android.hardware.vibrator.xml",
37    srcs: ["android.hardware.vibrator.xml"],
38}
39
40cc_binary {
41    name: "android.hardware.vibrator-service.example",
42    relative_install_path: "hw",
43    init_rc: ["vibrator-default.rc"],
44    vintf_fragments: [":android.hardware.vibrator.xml"],
45    vendor: true,
46    shared_libs: [
47        "libbase",
48        "libbinder_ndk",
49        "android.hardware.vibrator-V2-ndk",
50    ],
51    static_libs: [
52        "libvibratorexampleimpl",
53    ],
54    srcs: ["main.cpp"],
55}
56
57cc_fuzz {
58    name: "android.hardware.vibrator-service.example_fuzzer",
59    host_supported: true,
60    static_libs: [
61        "android.hardware.vibrator-V2-ndk",
62        "libbase",
63        "libbinder_random_parcel",
64        "libcutils",
65        "liblog",
66        "libvibratorexampleimpl",
67    ],
68    target: {
69        android: {
70            shared_libs: [
71                "libbinder_ndk",
72                "libbinder",
73                "libutils",
74            ],
75        },
76        host: {
77            static_libs: [
78                "libbinder_ndk",
79                "libbinder",
80                "libutils",
81            ],
82        },
83        darwin: {
84            enabled: false,
85        },
86    },
87    srcs: ["fuzzer.cpp"],
88    fuzz_config: {
89        cc: [
90            "smoreland@google.com",
91        ],
92    },
93}
94