blob: 2e12dfb2dde6f5e9945557e3c1526be735aa6772 [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",
12 vendor: true,
13 shared_libs: [
14 "libbase",
15 "libbinder_ndk",
Jiyong Parkd55d28a2021-08-09 09:47:37 +090016 "android.hardware.vibrator-V2-ndk",
Steven Moreland8ba8c032019-11-18 16:23:39 -080017 ],
18 export_include_dirs: ["include"],
Lais Andrade80b18612020-10-12 18:44:40 +000019 srcs: [
20 "Vibrator.cpp",
21 "VibratorManager.cpp",
22 ],
Steven Moreland8ba8c032019-11-18 16:23:39 -080023 visibility: [
Steven Moreland07f26942020-01-06 13:40:51 -080024 ":__subpackages__",
25 "//hardware/interfaces/tests/extension/vibrator:__subpackages__",
Steven Moreland8ba8c032019-11-18 16:23:39 -080026 ],
27}
28
Daniel Norman938b8622021-09-16 10:42:58 -070029filegroup {
30 name: "android.hardware.vibrator.xml",
31 srcs: ["android.hardware.vibrator.xml"],
32}
33
Steven Morelandd44007e2019-10-24 18:12:46 -070034cc_binary {
35 name: "android.hardware.vibrator-service.example",
36 relative_install_path: "hw",
37 init_rc: ["vibrator-default.rc"],
Daniel Norman938b8622021-09-16 10:42:58 -070038 vintf_fragments: [":android.hardware.vibrator.xml"],
Steven Morelandd44007e2019-10-24 18:12:46 -070039 vendor: true,
40 shared_libs: [
41 "libbase",
42 "libbinder_ndk",
Jiyong Parkd55d28a2021-08-09 09:47:37 +090043 "android.hardware.vibrator-V2-ndk",
Steven Morelandd44007e2019-10-24 18:12:46 -070044 ],
Steven Moreland8ba8c032019-11-18 16:23:39 -080045 static_libs: [
46 "libvibratorexampleimpl",
47 ],
48 srcs: ["main.cpp"],
Steven Morelandd44007e2019-10-24 18:12:46 -070049}