* This is a partial revert of 5fba81168e8446448da68a5e546c2aa77b8dd148. * CAF adds the kernel headers dep to fetch one single value that is removed in that commit. Easier to just carry it here, especially considering most devices won't have this in generated_kernel_headers, even. Change-Id: I5b7daab2731e4b6b529cdb1ccf0fe173f677f8fd
85 lines
2.0 KiB
Plaintext
85 lines
2.0 KiB
Plaintext
Common_CFlags = ["-Wall"]
|
|
Common_CFlags += ["-Werror"]
|
|
|
|
cc_library_shared {
|
|
name: "vendor.qti.hardware.vibrator.impl",
|
|
vendor: true,
|
|
cflags: Common_CFlags,
|
|
srcs: [
|
|
"Vibrator.cpp",
|
|
],
|
|
shared_libs: [
|
|
"libcutils",
|
|
"libutils",
|
|
"liblog",
|
|
"libqtivibratoreffect",
|
|
"libbinder_ndk",
|
|
"android.hardware.vibrator-V1-ndk_platform",
|
|
],
|
|
export_include_dirs: ["include"]
|
|
}
|
|
|
|
cc_binary {
|
|
name: "vendor.qti.hardware.vibrator.service",
|
|
vendor: true,
|
|
relative_install_path: "hw",
|
|
init_rc: ["vendor.qti.hardware.vibrator.service.rc"],
|
|
vintf_fragments: [
|
|
"vendor.qti.hardware.vibrator.service.xml",
|
|
],
|
|
cflags: Common_CFlags,
|
|
srcs: [
|
|
"service.cpp",
|
|
],
|
|
shared_libs: [
|
|
"libcutils",
|
|
"libutils",
|
|
"libbase",
|
|
"libbinder_ndk",
|
|
"android.hardware.vibrator-V1-ndk_platform",
|
|
"vendor.qti.hardware.vibrator.impl",
|
|
],
|
|
}
|
|
|
|
cc_library_shared {
|
|
name: "vendor.qti.hardware.vibrator.offload.impl",
|
|
vendor: true,
|
|
cflags: Common_CFlags + ["-DTARGET_SUPPORTS_OFFLOAD"],
|
|
srcs: [
|
|
"Vibrator.cpp",
|
|
"VibratorOffload.cpp",
|
|
],
|
|
shared_libs: [
|
|
"libcutils",
|
|
"libutils",
|
|
"liblog",
|
|
"libqtivibratoreffect",
|
|
"libqtivibratoreffectoffload",
|
|
"libbinder_ndk",
|
|
"android.hardware.vibrator-V1-ndk_platform",
|
|
],
|
|
export_include_dirs: ["include"],
|
|
}
|
|
|
|
cc_binary {
|
|
name: "vendor.qti.hardware.vibrator.offload.service",
|
|
vendor: true,
|
|
relative_install_path: "hw",
|
|
init_rc: ["vendor.qti.hardware.vibrator.offload.service.rc"],
|
|
vintf_fragments: [
|
|
"vendor.qti.hardware.vibrator.offload.service.xml",
|
|
],
|
|
cflags: Common_CFlags + ["-DTARGET_SUPPORTS_OFFLOAD"],
|
|
srcs: [
|
|
"service.cpp",
|
|
],
|
|
shared_libs: [
|
|
"libcutils",
|
|
"libutils",
|
|
"libbase",
|
|
"libbinder_ndk",
|
|
"android.hardware.vibrator-V1-ndk_platform",
|
|
"vendor.qti.hardware.vibrator.offload.impl",
|
|
],
|
|
}
|