blob: 1d6508a4e731134bff733096dd0baf7f38f45c24 [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 {
Rohit Sekhara0be89d2023-08-23 15:24:06 +053037 name: "vendor.qti.hardware.vibrator.impl.FP5",
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 {
Rohit Sekhara0be89d2023-08-23 15:24:06 +053056 name: "vendor.qti.hardware.vibrator.service.FP5",
Rohit Sekharc5949c32023-08-23 15:19:29 +053057 defaults: ["vibrator_defaults"],
58 vendor: true,
59 relative_install_path: "hw",
Rohit Sekhara0be89d2023-08-23 15:24:06 +053060 init_rc: ["vendor.qti.hardware.vibrator.service.FP5.rc"],
Rohit Sekharc5949c32023-08-23 15:19:29 +053061 vintf_fragments: [
Rohit Sekhara0be89d2023-08-23 15:24:06 +053062 "vendor.qti.hardware.vibrator.service.FP5.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",
Rohit Sekhara0be89d2023-08-23 15:24:06 +053072 "vendor.qti.hardware.vibrator.impl.FP5",
Rohit Sekharc5949c32023-08-23 15:19:29 +053073 ],
74}