• 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 {
11    name: "libexample_vib_getter",
12    srcs: ["getter.cpp"],
13    product_available: true,
14    vendor_available: true,
15    shared_libs: [
16        "liblog",
17        "libbinder_ndk",
18    ],
19    header_libs: ["jni_headers"],
20    stl: "c++_shared",
21    visibility: [":__subpackages__"],
22}
23
24android_app {
25    name: "ExampleVibratorJavaVendorClient",
26    vendor: true,
27    static_libs: ["android.hardware.vibrator-V1-java"],
28    jni_libs: ["libexample_vib_getter"],
29    use_embedded_native_libs: true,
30    jarjar_rules: "jarjar.txt",
31    stl: "c++_shared",
32    srcs: ["example/vib/MyActivity.java"],
33    sdk_version: "system_current",
34    visibility: [":__subpackages__"],
35}
36
37android_app {
38    name: "ExampleVibratorJavaProductClient",
39    product_specific: true,
40    static_libs: ["android.hardware.vibrator-V1-java"],
41    jni_libs: ["libexample_vib_getter"],
42    use_embedded_native_libs: true,
43    jarjar_rules: "jarjar.txt",
44    stl: "c++_shared",
45    srcs: ["example/vib/MyActivity.java"],
46    sdk_version: "system_current",
47    visibility: [":__subpackages__"],
48    // If PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE is not true, product apps
49    // may use unstable APIs. jni_uses_platform_apis must set to use the
50    // non-SDK jni libs in this case.
51    // This is not required if PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE is
52    // set to true.
53    jni_uses_platform_apis: true,
54}
55