Files
device_xiaomi_pipa/peripheralmanager/Android.bp
Roman Lubij 946ee66c69 (DNM) pipa: peripheralmanager: Reimplement angle detection
Thanks luka177 for the code for retrieving the accelerometer data from the KB. This is mostly WIP overall, but it does seem to work *okay*.
2025-08-18 13:15:26 +00:00

56 lines
953 B
Plaintext

//
// Copyright (C) 2023-2025 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
android_app {
name: "XiaomiPeripheralManager",
defaults: [
"SettingsLibDefaults",
],
certificate: "platform",
srcs: ["src/**/*.java"],
platform_apis: true,
privileged: true,
system_ext_specific: true,
resource_dirs: ["res"],
static_libs: [
"androidx.core_core",
"androidx.preference_preference",
],
required: [
"xiaomi-pen",
"xiaomi-keyboard"
],
}
cc_binary {
name: "xiaomi-pen",
vendor: true,
srcs: [
"xiaomi-pen.cpp",
],
}
cc_binary {
name: "xiaomi-keyboard",
vendor: true,
srcs: [
"xiaomi-keyboard.cpp",
],
shared_libs: [
"libcutils",
"liblog",
"libsensorndkbridge",
],
arch: {
arm: {
cflags: ["-mfpu=neon", "-mfloat-abi=softfp"],
},
},
}