Rohit Sekhar | c5949c3 | 2023-08-23 15:19:29 +0530 | [diff] [blame] | 1 | Common_CFlags = ["-Wall"] |
| 2 | Common_CFlags += ["-Werror"] |
| 3 | |
| 4 | soong_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 | |
| 12 | soong_config_string_variable { |
| 13 | name: "vibratortargets", |
| 14 | values: ["vibratoraidlV2platformtarget", "vibratoraidlV2target"], |
| 15 | } |
| 16 | |
| 17 | vibrator_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 | |
| 36 | cc_library_shared { |
Rohit Sekhar | a0be89d | 2023-08-23 15:24:06 +0530 | [diff] [blame] | 37 | name: "vendor.qti.hardware.vibrator.impl.FP5", |
Michael Bestas | 7f59fb5 | 2024-05-25 19:11:54 +0300 | [diff] [blame] | 38 | defaults: ["vibrator_defaults"], |
Rohit Sekhar | c5949c3 | 2023-08-23 15:19:29 +0530 | [diff] [blame] | 39 | vendor: true, |
| 40 | srcs: [ |
| 41 | "Vibrator.cpp", |
| 42 | "VibratorOffload.cpp", |
| 43 | ], |
| 44 | shared_libs: [ |
| 45 | "libcutils", |
| 46 | "libutils", |
| 47 | "liblog", |
Michael Bestas | 7f59fb5 | 2024-05-25 19:11:54 +0300 | [diff] [blame] | 48 | "libqtivibratoreffect", |
Rohit Sekhar | c5949c3 | 2023-08-23 15:19:29 +0530 | [diff] [blame] | 49 | "libqtivibratoreffectoffload", |
| 50 | "libbinder_ndk", |
| 51 | ], |
| 52 | export_include_dirs: ["include"] |
| 53 | } |
| 54 | |
| 55 | cc_binary { |
Rohit Sekhar | a0be89d | 2023-08-23 15:24:06 +0530 | [diff] [blame] | 56 | name: "vendor.qti.hardware.vibrator.service.FP5", |
Rohit Sekhar | c5949c3 | 2023-08-23 15:19:29 +0530 | [diff] [blame] | 57 | defaults: ["vibrator_defaults"], |
| 58 | vendor: true, |
| 59 | relative_install_path: "hw", |
Rohit Sekhar | a0be89d | 2023-08-23 15:24:06 +0530 | [diff] [blame] | 60 | init_rc: ["vendor.qti.hardware.vibrator.service.FP5.rc"], |
Rohit Sekhar | c5949c3 | 2023-08-23 15:19:29 +0530 | [diff] [blame] | 61 | vintf_fragments: [ |
Rohit Sekhar | a0be89d | 2023-08-23 15:24:06 +0530 | [diff] [blame] | 62 | "vendor.qti.hardware.vibrator.service.FP5.xml", |
Rohit Sekhar | c5949c3 | 2023-08-23 15:19:29 +0530 | [diff] [blame] | 63 | ], |
| 64 | srcs: [ |
| 65 | "service.cpp", |
| 66 | ], |
| 67 | shared_libs: [ |
| 68 | "libcutils", |
| 69 | "libutils", |
| 70 | "libbase", |
| 71 | "libbinder_ndk", |
Rohit Sekhar | a0be89d | 2023-08-23 15:24:06 +0530 | [diff] [blame] | 72 | "vendor.qti.hardware.vibrator.impl.FP5", |
Rohit Sekhar | c5949c3 | 2023-08-23 15:19:29 +0530 | [diff] [blame] | 73 | ], |
| 74 | } |