blob: d463f51511d40c792e60ee809ad3882c655bb619 [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",
Jeongik Cha38533912021-01-28 00:49:49 +090016 "android.hardware.vibrator-V2-ndk_platform",
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
Steven Morelandd44007e2019-10-24 18:12:46 -070029cc_binary {
30 name: "android.hardware.vibrator-service.example",
31 relative_install_path: "hw",
32 init_rc: ["vibrator-default.rc"],
33 vintf_fragments: ["vibrator-default.xml"],
34 vendor: true,
35 shared_libs: [
36 "libbase",
37 "libbinder_ndk",
Jeongik Cha38533912021-01-28 00:49:49 +090038 "android.hardware.vibrator-V2-ndk_platform",
Steven Morelandd44007e2019-10-24 18:12:46 -070039 ],
Steven Moreland8ba8c032019-11-18 16:23:39 -080040 static_libs: [
41 "libvibratorexampleimpl",
42 ],
43 srcs: ["main.cpp"],
Steven Morelandd44007e2019-10-24 18:12:46 -070044}