blob: de228cdfad83baa8e66258a94ebd14548e4b6296 [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",
Lais Andradea3c332f2024-06-20 10:46:06 +010018 "android.hardware.vibrator-V3-ndk",
Steven Moreland8ba8c032019-11-18 16:23:39 -080019 ],
20 export_include_dirs: ["include"],
Lais Andrade80b18612020-10-12 18:44:40 +000021 srcs: [
Lais Andradef1120b12024-08-23 15:12:12 +010022 "VibrationSession.cpp",
Lais Andrade80b18612020-10-12 18:44:40 +000023 "Vibrator.cpp",
24 "VibratorManager.cpp",
25 ],
Steven Moreland8ba8c032019-11-18 16:23:39 -080026 visibility: [
Steven Moreland07f26942020-01-06 13:40:51 -080027 ":__subpackages__",
28 "//hardware/interfaces/tests/extension/vibrator:__subpackages__",
Steven Moreland8ba8c032019-11-18 16:23:39 -080029 ],
Steven Moreland2e96b9d2022-03-15 01:45:28 +000030 target: {
31 darwin: {
32 enabled: false,
33 },
34 },
Steven Moreland8ba8c032019-11-18 16:23:39 -080035}
36
Jooyung Han83f5cfc2023-10-10 16:08:22 +090037prebuilt_etc {
Daniel Norman938b8622021-09-16 10:42:58 -070038 name: "android.hardware.vibrator.xml",
Jooyung Han83f5cfc2023-10-10 16:08:22 +090039 src: "android.hardware.vibrator.xml",
40 sub_dir: "vintf",
41 installable: false,
Daniel Norman938b8622021-09-16 10:42:58 -070042}
43
Steven Morelandd44007e2019-10-24 18:12:46 -070044cc_binary {
45 name: "android.hardware.vibrator-service.example",
46 relative_install_path: "hw",
47 init_rc: ["vibrator-default.rc"],
Cole Faustbe7e47f2024-10-22 16:30:58 -070048 vintf_fragments: ["android.hardware.vibrator.xml"],
Steven Morelandd44007e2019-10-24 18:12:46 -070049 vendor: true,
50 shared_libs: [
51 "libbase",
52 "libbinder_ndk",
Lais Andradea3c332f2024-06-20 10:46:06 +010053 "android.hardware.vibrator-V3-ndk",
Steven Morelandd44007e2019-10-24 18:12:46 -070054 ],
Steven Moreland8ba8c032019-11-18 16:23:39 -080055 static_libs: [
56 "libvibratorexampleimpl",
57 ],
58 srcs: ["main.cpp"],
Steven Morelandd44007e2019-10-24 18:12:46 -070059}
Steven Moreland2e96b9d2022-03-15 01:45:28 +000060
61cc_fuzz {
62 name: "android.hardware.vibrator-service.example_fuzzer",
63 host_supported: true,
Pawan8e13f2a2022-08-19 20:54:21 +000064 defaults: ["service_fuzzer_defaults"],
Steven Moreland2e96b9d2022-03-15 01:45:28 +000065 static_libs: [
Lais Andradea3c332f2024-06-20 10:46:06 +010066 "android.hardware.vibrator-V3-ndk",
Steven Moreland2e96b9d2022-03-15 01:45:28 +000067 "liblog",
Steven Moreland2e96b9d2022-03-15 01:45:28 +000068 "libvibratorexampleimpl",
69 ],
Steven Moreland2e96b9d2022-03-15 01:45:28 +000070 srcs: ["fuzzer.cpp"],
71 fuzz_config: {
72 cc: [
73 "smoreland@google.com",
74 ],
75 },
76}