blob: 78bb4ed0c422fbb75e84dd1f43dc71415e78559c [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
Daniel Norman938b8622021-09-16 10:42:58 -070035filegroup {
36 name: "android.hardware.vibrator.xml",
37 srcs: ["android.hardware.vibrator.xml"],
38}
39
Steven Morelandd44007e2019-10-24 18:12:46 -070040cc_binary {
41 name: "android.hardware.vibrator-service.example",
42 relative_install_path: "hw",
43 init_rc: ["vibrator-default.rc"],
Daniel Norman938b8622021-09-16 10:42:58 -070044 vintf_fragments: [":android.hardware.vibrator.xml"],
Steven Morelandd44007e2019-10-24 18:12:46 -070045 vendor: true,
46 shared_libs: [
47 "libbase",
48 "libbinder_ndk",
Jiyong Parkd55d28a2021-08-09 09:47:37 +090049 "android.hardware.vibrator-V2-ndk",
Steven Morelandd44007e2019-10-24 18:12:46 -070050 ],
Steven Moreland8ba8c032019-11-18 16:23:39 -080051 static_libs: [
52 "libvibratorexampleimpl",
53 ],
54 srcs: ["main.cpp"],
Steven Morelandd44007e2019-10-24 18:12:46 -070055}
Steven Moreland2e96b9d2022-03-15 01:45:28 +000056
57cc_fuzz {
58 name: "android.hardware.vibrator-service.example_fuzzer",
59 host_supported: true,
Pawan8e13f2a2022-08-19 20:54:21 +000060 defaults: ["service_fuzzer_defaults"],
Steven Moreland2e96b9d2022-03-15 01:45:28 +000061 static_libs: [
62 "android.hardware.vibrator-V2-ndk",
Steven Moreland2e96b9d2022-03-15 01:45:28 +000063 "liblog",
Steven Moreland2e96b9d2022-03-15 01:45:28 +000064 "libvibratorexampleimpl",
65 ],
Steven Moreland2e96b9d2022-03-15 01:45:28 +000066 srcs: ["fuzzer.cpp"],
67 fuzz_config: {
68 cc: [
69 "smoreland@google.com",
70 ],
71 },
72}