android_device_xiaomi_sm835.../vibrator/aidl/Android.bp
Jiyong Park 380fa0ba2c sm8350-common: aidl: Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Merged-In: Iebc1c5d4c277e96cf7564d882aeecb084adc53ee
Change-Id: Iebc1c5d4c277e96cf7564d882aeecb084adc53ee
(cherry picked from commit 25368375b1759a13cacbfa1a9a183d4eee7381b2)
2023-01-21 23:56:23 +05:30

68 lines
1.6 KiB
Plaintext

Common_CFlags = ["-Wall"]
Common_CFlags += ["-Werror"]
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: [
"libxiaomivibratoreffect",
],
},
},
}
cc_library_shared {
name: "vendor.qti.hardware.vibrator.impl.xiaomi_sm8350",
defaults: [
"vibrator_effect_stream_defaults",
],
vendor: true,
cflags: Common_CFlags,
srcs: [
"Vibrator.cpp",
],
shared_libs: [
"libcutils",
"libutils",
"liblog",
"libbinder_ndk",
"android.hardware.vibrator-V1-ndk",
],
export_include_dirs: ["include"]
}
cc_binary {
name: "vendor.qti.hardware.vibrator.service.xiaomi_sm8350",
vendor: true,
relative_install_path: "hw",
init_rc: ["vendor.qti.hardware.vibrator.service.xiaomi_sm8350.rc"],
vintf_fragments: [
"vendor.qti.hardware.vibrator.service.xiaomi_sm8350.xml",
],
cflags: Common_CFlags,
srcs: [
"service.cpp",
],
shared_libs: [
"libcutils",
"libutils",
"libbase",
"libbinder_ndk",
"android.hardware.vibrator-V1-ndk",
"vendor.qti.hardware.vibrator.impl.xiaomi_sm8350",
],
}