2021-09-05 07:44:13 -04:00
|
|
|
Common_CFlags = ["-Wall"]
|
|
|
|
Common_CFlags += ["-Werror"]
|
|
|
|
|
2022-02-24 12:40:09 -05:00
|
|
|
soong_config_module_type {
|
|
|
|
name: "vibrator_effect_stream",
|
|
|
|
module_type: "cc_defaults",
|
|
|
|
config_namespace: "xiaomiSm8350Vars",
|
|
|
|
bool_variables: ["vibrator_use_effect_stream"],
|
|
|
|
properties: [
|
|
|
|
"cflags",
|
|
|
|
"shared_libs",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
vibrator_effect_stream {
|
|
|
|
name: "vibrator_effect_stream_defaults",
|
|
|
|
soong_config_variables: {
|
|
|
|
vibrator_use_effect_stream: {
|
|
|
|
cflags: ["-DUSE_EFFECT_STREAM"],
|
|
|
|
shared_libs: [
|
2022-02-24 05:54:56 -05:00
|
|
|
"libxiaomivibratoreffect",
|
2022-02-24 12:40:09 -05:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2021-09-05 07:44:13 -04:00
|
|
|
cc_library_shared {
|
2021-09-05 07:49:50 -04:00
|
|
|
name: "vendor.qti.hardware.vibrator.impl.xiaomi_sm8350",
|
2022-02-24 12:40:09 -05:00
|
|
|
defaults: [
|
|
|
|
"vibrator_effect_stream_defaults",
|
|
|
|
],
|
2021-09-05 07:44:13 -04:00
|
|
|
vendor: true,
|
|
|
|
cflags: Common_CFlags,
|
|
|
|
srcs: [
|
|
|
|
"Vibrator.cpp",
|
|
|
|
],
|
|
|
|
shared_libs: [
|
|
|
|
"libcutils",
|
|
|
|
"libutils",
|
|
|
|
"liblog",
|
|
|
|
"libbinder_ndk",
|
2021-01-27 10:49:48 -05:00
|
|
|
"android.hardware.vibrator-V1-ndk_platform",
|
2021-09-05 07:44:13 -04:00
|
|
|
],
|
|
|
|
export_include_dirs: ["include"]
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_binary {
|
2021-09-05 07:49:50 -04:00
|
|
|
name: "vendor.qti.hardware.vibrator.service.xiaomi_sm8350",
|
2021-09-05 07:44:13 -04:00
|
|
|
vendor: true,
|
|
|
|
relative_install_path: "hw",
|
2022-03-06 19:02:44 -05:00
|
|
|
init_rc: ["vendor.qti.hardware.vibrator.service.xiaomi_sm8350.rc"],
|
2021-09-05 07:44:13 -04:00
|
|
|
vintf_fragments: [
|
2022-03-06 19:02:44 -05:00
|
|
|
"vendor.qti.hardware.vibrator.service.xiaomi_sm8350.xml",
|
2021-09-05 07:44:13 -04:00
|
|
|
],
|
|
|
|
cflags: Common_CFlags,
|
|
|
|
srcs: [
|
|
|
|
"service.cpp",
|
|
|
|
],
|
|
|
|
shared_libs: [
|
|
|
|
"libcutils",
|
|
|
|
"libutils",
|
|
|
|
"libbase",
|
|
|
|
"libbinder_ndk",
|
2021-01-27 10:49:48 -05:00
|
|
|
"android.hardware.vibrator-V1-ndk_platform",
|
2021-09-05 07:49:50 -04:00
|
|
|
"vendor.qti.hardware.vibrator.impl.xiaomi_sm8350",
|
2021-09-05 07:44:13 -04:00
|
|
|
],
|
|
|
|
}
|