android_device_xiaomi_sm835.../fingerprint/Android.bp
Pig 57738613fb sm8350-common: fingerprint: Add xiaomi fingerprintextension support
Co-authored-by: C457 <android.c357@gmail.com>
Signed-off-by: Arian <arian.kulmer@web.de>
Change-Id: Ie9deb0dfcc689034cd3c4b9095e319130ba8d8cd
2022-04-02 00:02:26 +02:00

51 lines
1.3 KiB
Plaintext

soong_config_module_type {
name: "fingerprint_extension",
module_type: "cc_defaults",
config_namespace: "xiaomiSm8350Vars",
bool_variables: ["fingerprint_use_extension"],
properties: [
"cflags",
"shared_libs",
"vintf_fragments",
],
}
fingerprint_extension {
name: "fingerprint_extension_defaults",
soong_config_variables: {
fingerprint_use_extension: {
cflags: ["-DUSE_EXTENSION"],
shared_libs: [
"vendor.xiaomi.hardware.fingerprintextension@1.0",
],
vintf_fragments: ["vendor.xiaomi.hardware.fingerprintextension@1.0.xml"],
},
},
}
cc_binary {
name: "android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sm8350",
defaults: [
"hidl_defaults",
"fingerprint_extension_defaults",
],
init_rc: ["android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sm8350.rc"],
vintf_fragments: ["android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sm8350.xml"],
vendor: true,
relative_install_path: "hw",
srcs: [
"BiometricsFingerprint.cpp",
"service.cpp",
],
shared_libs: [
"libcutils",
"liblog",
"libhidlbase",
"libhardware",
"libutils",
"android.hardware.biometrics.fingerprint@2.1",
],
}