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-V2-ndk", 19 ], 20 export_include_dirs: ["include"], 21 srcs: [ 22 "Vibrator.cpp", 23 "VibratorManager.cpp", 24 ], 25 visibility: [ 26 ":__subpackages__", 27 "//hardware/interfaces/tests/extension/vibrator:__subpackages__", 28 ], 29 target: { 30 darwin: { 31 enabled: false, 32 }, 33 }, 34} 35 36prebuilt_etc { 37 name: "android.hardware.vibrator.xml", 38 src: "android.hardware.vibrator.xml", 39 sub_dir: "vintf", 40 installable: false, 41} 42 43cc_binary { 44 name: "android.hardware.vibrator-service.example", 45 relative_install_path: "hw", 46 init_rc: ["vibrator-default.rc"], 47 vintf_fragments: [":android.hardware.vibrator.xml"], 48 vendor: true, 49 shared_libs: [ 50 "libbase", 51 "libbinder_ndk", 52 "android.hardware.vibrator-V2-ndk", 53 ], 54 static_libs: [ 55 "libvibratorexampleimpl", 56 ], 57 srcs: ["main.cpp"], 58} 59 60cc_fuzz { 61 name: "android.hardware.vibrator-service.example_fuzzer", 62 host_supported: true, 63 defaults: ["service_fuzzer_defaults"], 64 static_libs: [ 65 "android.hardware.vibrator-V2-ndk", 66 "liblog", 67 "libvibratorexampleimpl", 68 ], 69 srcs: ["fuzzer.cpp"], 70 fuzz_config: { 71 cc: [ 72 "smoreland@google.com", 73 ], 74 }, 75} 76