device_xiaomi_sm6150-common/fingerprint/Android.bp
Arian a8c1391091
sm6150-common: fingerprint: Allow to build without fingerprintextension
Change-Id: Ib51286dafaf0633ba959332ecdb5ad277c6714bf
2021-04-25 15:23:51 +02:00

39 lines
1.2 KiB
Plaintext

cc_defaults {
name: "xiaomi_sm6150_fingerprint_defaults",
defaults: ["hidl_defaults"],
vendor: true,
relative_install_path: "hw",
srcs: [
"BiometricsFingerprint.cpp",
"service.cpp",
],
shared_libs: [
"libcutils",
"liblog",
"libhidlbase",
"libhardware",
"libutils",
"android.hardware.biometrics.fingerprint@2.1",
],
}
cc_binary {
name: "android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sm6150",
defaults: ["xiaomi_sm6150_fingerprint_defaults"],
init_rc: ["android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sm6150.rc"],
vintf_fragments: ["android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sm6150.xml"],
}
cc_binary {
name: "android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sm6150-ext",
defaults: ["xiaomi_sm6150_fingerprint_defaults"],
init_rc: ["android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sm6150-ext.rc"],
vintf_fragments: [
"android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sm6150.xml",
"vendor.xiaomi.hardware.fingerprintextension@1.0.xml",
],
shared_libs: ["vendor.xiaomi.hardware.fingerprintextension@1.0"],
cflags: ["-DXIAOMI_FINGERPRINTEXTENSION"],
}