blob: fb71a82ab10b6df4b93cf3c1f53d377152be5629 [file] [log] [blame]
Bob Badourc22b35b2021-02-23 14:26:20 -08001package {
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
Steven Moreland8ba8c032019-11-18 16:23:39 -080010cc_library_static {
11 name: "libvibratorexampleimpl",
Steven Moreland2e96b9d2022-03-15 01:45:28 +000012 vendor_available: true,
13 host_supported: true,
Steven Moreland8ba8c032019-11-18 16:23:39 -080014 shared_libs: [
15 "libbase",
16 "libbinder_ndk",
Jiyong Parkd55d28a2021-08-09 09:47:37 +090017 "android.hardware.vibrator-V2-ndk",
Steven Moreland8ba8c032019-11-18 16:23:39 -080018 ],
19 export_include_dirs: ["include"],
Lais Andrade80b18612020-10-12 18:44:40 +000020 srcs: [
21 "Vibrator.cpp",
22 "VibratorManager.cpp",
23 ],
Steven Moreland8ba8c032019-11-18 16:23:39 -080024 visibility: [
Steven Moreland07f26942020-01-06 13:40:51 -080025 ":__subpackages__",
26 "//hardware/interfaces/tests/extension/vibrator:__subpackages__",
Steven Moreland8ba8c032019-11-18 16:23:39 -080027 ],
Steven Moreland2e96b9d2022-03-15 01:45:28 +000028 target: {
29 darwin: {
30 enabled: false,
31 },
32 },
Steven Moreland8ba8c032019-11-18 16:23:39 -080033}
34
Jooyung Han83f5cfc2023-10-10 16:08:22 +090035prebuilt_etc {
Daniel Norman938b8622021-09-16 10:42:58 -070036 name: "android.hardware.vibrator.xml",
Jooyung Han83f5cfc2023-10-10 16:08:22 +090037 src: "android.hardware.vibrator.xml",
38 sub_dir: "vintf",
39 installable: false,
Daniel Norman938b8622021-09-16 10:42:58 -070040}
41
Steven Morelandd44007e2019-10-24 18:12:46 -070042cc_binary {
43 name: "android.hardware.vibrator-service.example",
44 relative_install_path: "hw",
45 init_rc: ["vibrator-default.rc"],
Daniel Norman938b8622021-09-16 10:42:58 -070046 vintf_fragments: [":android.hardware.vibrator.xml"],
Steven Morelandd44007e2019-10-24 18:12:46 -070047 vendor: true,
48 shared_libs: [
49 "libbase",
50 "libbinder_ndk",
Jiyong Parkd55d28a2021-08-09 09:47:37 +090051 "android.hardware.vibrator-V2-ndk",
Steven Morelandd44007e2019-10-24 18:12:46 -070052 ],
Steven Moreland8ba8c032019-11-18 16:23:39 -080053 static_libs: [
54 "libvibratorexampleimpl",
55 ],
56 srcs: ["main.cpp"],
Steven Morelandd44007e2019-10-24 18:12:46 -070057}
Steven Moreland2e96b9d2022-03-15 01:45:28 +000058
59cc_fuzz {
60 name: "android.hardware.vibrator-service.example_fuzzer",
61 host_supported: true,
Pawan8e13f2a2022-08-19 20:54:21 +000062 defaults: ["service_fuzzer_defaults"],
Steven Moreland2e96b9d2022-03-15 01:45:28 +000063 static_libs: [
64 "android.hardware.vibrator-V2-ndk",
Steven Moreland2e96b9d2022-03-15 01:45:28 +000065 "liblog",
Steven Moreland2e96b9d2022-03-15 01:45:28 +000066 "libvibratorexampleimpl",
67 ],
Steven Moreland2e96b9d2022-03-15 01:45:28 +000068 srcs: ["fuzzer.cpp"],
69 fuzz_config: {
70 cc: [
71 "smoreland@google.com",
72 ],
73 },
74}