blob: 0f342db10e64c30c301e1918916cbc2ca1ef533c [file] [log] [blame]
Bob Badourc22b35b2021-02-23 14:26:20 -08001package {
Aditya Choudharyc5c6c622024-01-31 11:06:17 +00002 default_team: "trendy_team_haptics_framework",
Bob Badourc22b35b2021-02-23 14:26:20 -08003 // 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
Steven Moreland8ba8c032019-11-18 16:23:39 -080011cc_library_static {
12 name: "libvibratorexampleimpl",
Steven Moreland2e96b9d2022-03-15 01:45:28 +000013 vendor_available: true,
14 host_supported: true,
Steven Moreland8ba8c032019-11-18 16:23:39 -080015 shared_libs: [
16 "libbase",
17 "libbinder_ndk",
Jiyong Parkd55d28a2021-08-09 09:47:37 +090018 "android.hardware.vibrator-V2-ndk",
Steven Moreland8ba8c032019-11-18 16:23:39 -080019 ],
20 export_include_dirs: ["include"],
Lais Andrade80b18612020-10-12 18:44:40 +000021 srcs: [
22 "Vibrator.cpp",
23 "VibratorManager.cpp",
24 ],
Steven Moreland8ba8c032019-11-18 16:23:39 -080025 visibility: [
Steven Moreland07f26942020-01-06 13:40:51 -080026 ":__subpackages__",
27 "//hardware/interfaces/tests/extension/vibrator:__subpackages__",
Steven Moreland8ba8c032019-11-18 16:23:39 -080028 ],
Steven Moreland2e96b9d2022-03-15 01:45:28 +000029 target: {
30 darwin: {
31 enabled: false,
32 },
33 },
Steven Moreland8ba8c032019-11-18 16:23:39 -080034}
35
Jooyung Han83f5cfc2023-10-10 16:08:22 +090036prebuilt_etc {
Daniel Norman938b8622021-09-16 10:42:58 -070037 name: "android.hardware.vibrator.xml",
Jooyung Han83f5cfc2023-10-10 16:08:22 +090038 src: "android.hardware.vibrator.xml",
39 sub_dir: "vintf",
40 installable: false,
Daniel Norman938b8622021-09-16 10:42:58 -070041}
42
Steven Morelandd44007e2019-10-24 18:12:46 -070043cc_binary {
44 name: "android.hardware.vibrator-service.example",
45 relative_install_path: "hw",
46 init_rc: ["vibrator-default.rc"],
Daniel Norman938b8622021-09-16 10:42:58 -070047 vintf_fragments: [":android.hardware.vibrator.xml"],
Steven Morelandd44007e2019-10-24 18:12:46 -070048 vendor: true,
49 shared_libs: [
50 "libbase",
51 "libbinder_ndk",
Jiyong Parkd55d28a2021-08-09 09:47:37 +090052 "android.hardware.vibrator-V2-ndk",
Steven Morelandd44007e2019-10-24 18:12:46 -070053 ],
Steven Moreland8ba8c032019-11-18 16:23:39 -080054 static_libs: [
55 "libvibratorexampleimpl",
56 ],
57 srcs: ["main.cpp"],
Steven Morelandd44007e2019-10-24 18:12:46 -070058}
Steven Moreland2e96b9d2022-03-15 01:45:28 +000059
60cc_fuzz {
61 name: "android.hardware.vibrator-service.example_fuzzer",
62 host_supported: true,
Pawan8e13f2a2022-08-19 20:54:21 +000063 defaults: ["service_fuzzer_defaults"],
Steven Moreland2e96b9d2022-03-15 01:45:28 +000064 static_libs: [
65 "android.hardware.vibrator-V2-ndk",
Steven Moreland2e96b9d2022-03-15 01:45:28 +000066 "liblog",
Steven Moreland2e96b9d2022-03-15 01:45:28 +000067 "libvibratorexampleimpl",
68 ],
Steven Moreland2e96b9d2022-03-15 01:45:28 +000069 srcs: ["fuzzer.cpp"],
70 fuzz_config: {
71 cc: [
72 "smoreland@google.com",
73 ],
74 },
75}