hardware_xiaomi/hidl/touch/Android.bp
luk1337 8a55af6b3c
touch: Make HIGH_TOUCH_POLLING_PATH configurable via Soong flag
Change-Id: I7649e084b2604c46f47c07c355913720935e1298
2022-05-13 18:02:35 +02:00

46 lines
1.1 KiB
Plaintext

//
// Copyright (C) 2022 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
soong_config_module_type {
name: "xiaomi_touch_hal_cc_defaults",
module_type: "cc_defaults",
config_namespace: "XIAOMI_TOUCH",
value_variables: ["HIGH_TOUCH_POLLING_PATH"],
properties: ["cppflags"],
}
xiaomi_touch_hal_cc_defaults {
name: "xiaomi_touch_hal_defaults",
soong_config_variables: {
HIGH_TOUCH_POLLING_PATH: {
cppflags: ["-DHIGH_TOUCH_POLLING_PATH=\"%s\""],
},
},
}
cc_binary {
name: "vendor.lineage.touch@1.0-service.xiaomi",
vintf_fragments: ["vendor.lineage.touch@1.0-service.xiaomi.xml"],
init_rc: ["vendor.lineage.touch@1.0-service.xiaomi.rc"],
defaults: [
"hidl_defaults",
"xiaomi_touch_hal_defaults",
],
relative_install_path: "hw",
proprietary: true,
srcs: [
"HighTouchPollingRate.cpp",
"service.cpp",
],
shared_libs: [
"libbase",
"libbinder",
"libhidlbase",
"libutils",
"vendor.lineage.touch@1.0",
],
}