blob: 7a64c56235a97f0aed79dc897d63f5a50e498985 [file] [log] [blame]
/*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
prebuilt_etc {
name: "android.hardware.sensors@2.0-impl.ranchu.etc",
vendor: true,
sub_dir: "sensors",
filename: "hals.conf",
arch: {
arm: { src: "hals32.conf" },
arm64: { src: "hals64.conf" },
x86: { src: "hals32.conf" },
x86_64: { src: "hals64.conf" },
}
}
cc_library_shared {
name: "android.hardware.sensors@2.0-impl.ranchu",
vendor: true,
relative_install_path: "hw",
defaults: ["hidl_defaults"],
srcs: [
"multihal_sensors.cpp",
"multihal_sensors_epoll.cpp",
"multihal_sensors_qemu.cpp",
"sensor_list.cpp",
"util.cpp",
"entry.cpp"
],
shared_libs: [
"android.hardware.sensors@2.0",
"android.hardware.sensors@2.0-ScopedWakelock",
"libbase",
"libhidlbase",
"liblog",
"libutils",
],
header_libs: ["android.hardware.sensors@2.0-multihal.header"],
cflags: [
"-DLOG_TAG=\"android.hardware.sensors@2.0-impl.ranchu\"",
"-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION",
],
required: ["android.hardware.sensors@2.0-impl.ranchu.etc"]
}