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: true,
13    shared_libs: [
14        "libbase",
15        "libbinder_ndk",
16        "android.hardware.vibrator-V2-ndk_platform",
17    ],
18    export_include_dirs: ["include"],
19    srcs: [
20        "Vibrator.cpp",
21        "VibratorManager.cpp",
22    ],
23    visibility: [
24        ":__subpackages__",
25        "//hardware/interfaces/tests/extension/vibrator:__subpackages__",
26    ],
27}
28
29cc_binary {
30    name: "android.hardware.vibrator-service.example",
31    relative_install_path: "hw",
32    init_rc: ["vibrator-default.rc"],
33    vintf_fragments: ["vibrator-default.xml"],
34    vendor: true,
35    shared_libs: [
36        "libbase",
37        "libbinder_ndk",
38        "android.hardware.vibrator-V2-ndk_platform",
39    ],
40    static_libs: [
41        "libvibratorexampleimpl",
42    ],
43    srcs: ["main.cpp"],
44}
45