This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
hardware_oplus-CherishOS/aidl/vibrator/Android.bp
Pig fdfa73426a vibrator: Simplify soc check and drop prop dep
[npjohnson]: adapt to reflect 18.1 upstream merges as well as
include now required headers.

Change-Id: I8581d22deac451d0c44e4b3135d2729da2865a36
2022-04-11 16:27:27 +01:00

86 lines
2.1 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"],
header_libs: ["qti_kernel_headers"],
}
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",
],
}