blob: 83a93c0fd46850147ecb23017a30731fdde7428f [file] [log] [blame]
Rohit Sekharc5949c32023-08-23 15:19:29 +05301Common_CFlags = ["-Wall"]
2Common_CFlags += ["-Werror"]
3
4soong_config_module_type {
5 name: "vibrator_cc_defaults",
6 module_type: "cc_defaults",
7 config_namespace: "vibrator",
8 variables: ["vibratortargets"],
9 properties: ["shared_libs"],
10}
11
12soong_config_string_variable {
13 name: "vibratortargets",
14 values: ["vibratoraidlV2platformtarget", "vibratoraidlV2target"],
15}
16
17vibrator_cc_defaults {
18 name: "vibrator_defaults",
19 soong_config_variables: {
20 vibratortargets: {
21 vibratoraidlV2platformtarget: {
22 shared_libs: [
23 "android.hardware.vibrator-V2-ndk_platform",
24 ],
25 },
26 vibratoraidlV2target: {
27 shared_libs: [
28 "android.hardware.vibrator-V2-ndk",
29 ],
30 },
31 },
32 },
33}
34
35
36cc_library_shared {
Michael Bestas9e3d0d62024-05-28 03:47:26 +030037 name: "vendor.qti.hardware.vibrator.impl.otter",
Michael Bestas7f59fb52024-05-25 19:11:54 +030038 defaults: ["vibrator_defaults"],
Rohit Sekharc5949c32023-08-23 15:19:29 +053039 vendor: true,
40 srcs: [
41 "Vibrator.cpp",
42 "VibratorOffload.cpp",
43 ],
44 shared_libs: [
45 "libcutils",
46 "libutils",
47 "liblog",
Michael Bestas7f59fb52024-05-25 19:11:54 +030048 "libqtivibratoreffect",
Rohit Sekharc5949c32023-08-23 15:19:29 +053049 "libqtivibratoreffectoffload",
50 "libbinder_ndk",
51 ],
52 export_include_dirs: ["include"]
53}
54
55cc_binary {
Michael Bestas9e3d0d62024-05-28 03:47:26 +030056 name: "vendor.qti.hardware.vibrator.service.otter",
Rohit Sekharc5949c32023-08-23 15:19:29 +053057 defaults: ["vibrator_defaults"],
58 vendor: true,
59 relative_install_path: "hw",
Michael Bestas9e3d0d62024-05-28 03:47:26 +030060 init_rc: ["vendor.qti.hardware.vibrator.service.otter.rc"],
Rohit Sekharc5949c32023-08-23 15:19:29 +053061 vintf_fragments: [
Michael Bestas9e3d0d62024-05-28 03:47:26 +030062 "vendor.qti.hardware.vibrator.service.otter.xml",
Rohit Sekharc5949c32023-08-23 15:19:29 +053063 ],
64 srcs: [
65 "service.cpp",
66 ],
67 shared_libs: [
68 "libcutils",
69 "libutils",
70 "libbase",
71 "libbinder_ndk",
Michael Bestas9e3d0d62024-05-28 03:47:26 +030072 "vendor.qti.hardware.vibrator.impl.otter",
Rohit Sekharc5949c32023-08-23 15:19:29 +053073 ],
74}