1package { 2 default_team: "trendy_team_haptics_framework", 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 "hardware_interfaces_license" 6 // to get the below license kinds: 7 // SPDX-license-identifier-Apache-2.0 8 default_applicable_licenses: ["hardware_interfaces_license"], 9} 10 11cc_library_static { 12 name: "libvibratorexampleimpl", 13 vendor_available: true, 14 host_supported: true, 15 shared_libs: [ 16 "libbase", 17 "libbinder_ndk", 18 "android.hardware.vibrator-V3-ndk", 19 ], 20 export_include_dirs: ["include"], 21 srcs: [ 22 "VibrationSession.cpp", 23 "Vibrator.cpp", 24 "VibratorManager.cpp", 25 ], 26 visibility: [ 27 ":__subpackages__", 28 "//hardware/interfaces/tests/extension/vibrator:__subpackages__", 29 ], 30 target: { 31 darwin: { 32 enabled: false, 33 }, 34 }, 35} 36 37prebuilt_etc { 38 name: "android.hardware.vibrator.xml", 39 src: "android.hardware.vibrator.xml", 40 sub_dir: "vintf", 41 installable: false, 42} 43 44cc_binary { 45 name: "android.hardware.vibrator-service.example", 46 relative_install_path: "hw", 47 init_rc: ["vibrator-default.rc"], 48 vintf_fragments: ["android.hardware.vibrator.xml"], 49 vendor: true, 50 shared_libs: [ 51 "libbase", 52 "libbinder_ndk", 53 "android.hardware.vibrator-V3-ndk", 54 ], 55 static_libs: [ 56 "libvibratorexampleimpl", 57 ], 58 srcs: ["main.cpp"], 59} 60 61cc_fuzz { 62 name: "android.hardware.vibrator-service.example_fuzzer", 63 host_supported: true, 64 defaults: ["service_fuzzer_defaults"], 65 static_libs: [ 66 "android.hardware.vibrator-V3-ndk", 67 "liblog", 68 "libvibratorexampleimpl", 69 ], 70 srcs: ["fuzzer.cpp"], 71 fuzz_config: { 72 cc: [ 73 "[email protected]", 74 ], 75 }, 76} 77