blob: c4140bebc813cd74f7ef37c6b60aad60a8730f0b [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,
60 static_libs: [
61 "android.hardware.vibrator-V2-ndk",
62 "libbase",
63 "libbinder_random_parcel",
64 "libcutils",
65 "liblog",
Steven Moreland2e96b9d2022-03-15 01:45:28 +000066 "libvibratorexampleimpl",
67 ],
68 target: {
69 android: {
70 shared_libs: [
71 "libbinder_ndk",
72 "libbinder",
Pirama Arumuga Nainar3be0ec62022-04-11 20:04:20 +000073 "libutils",
Steven Moreland2e96b9d2022-03-15 01:45:28 +000074 ],
75 },
76 host: {
77 static_libs: [
78 "libbinder_ndk",
79 "libbinder",
Pirama Arumuga Nainar3be0ec62022-04-11 20:04:20 +000080 "libutils",
Steven Moreland2e96b9d2022-03-15 01:45:28 +000081 ],
82 },
83 darwin: {
84 enabled: false,
85 },
86 },
87 srcs: ["fuzzer.cpp"],
88 fuzz_config: {
89 cc: [
90 "smoreland@google.com",
91 ],
92 },
93}