summaryrefslogtreecommitdiffstats
path: root/libsensors/Android.mk
diff options
context:
space:
mode:
authorMike J. Chen <mjchen@sta.samsung.com>2010-09-11 22:16:37 -0700
committerEd Heyl <edheyl@google.com>2010-09-17 16:05:55 -0700
commitac9a9cd2cbbe20629ef08d21caeecb099035e109 (patch)
tree4f220af2223c7c41ddf83c795dffcb669d660314 /libsensors/Android.mk
parentdc7b509df677daf52b9a1757ca44bf67b7c04706 (diff)
downloaddevice_samsung_crespo-ac9a9cd2cbbe20629ef08d21caeecb099035e109.tar.gz
device_samsung_crespo-ac9a9cd2cbbe20629ef08d21caeecb099035e109.tar.bz2
device_samsung_crespo-ac9a9cd2cbbe20629ef08d21caeecb099035e109.zip
S5PC11X: SENSOR: Add libsensor HAL.
Goes with kernel drivers. Modeled after NexusOne version that uses input framework. We removed the old device nodes and add rules to make the new sysfs attributes accessible with the right permissions. Change-Id: I61e12da6c553eee664cebee9b9b9a77f9d099020 Signed-off-by: Mike J. Chen <mjchen@sta.samsung.com>
Diffstat (limited to 'libsensors/Android.mk')
-rw-r--r--libsensors/Android.mk45
1 files changed, 45 insertions, 0 deletions
diff --git a/libsensors/Android.mk b/libsensors/Android.mk
new file mode 100644
index 0000000..535b3df
--- /dev/null
+++ b/libsensors/Android.mk
@@ -0,0 +1,45 @@
+# Copyright (C) 2008 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.
+
+
+LOCAL_PATH := $(call my-dir)
+
+ifneq ($(TARGET_SIMULATOR),true)
+
+# HAL module implemenation, not prelinked, and stored in
+# hw/<SENSORS_HARDWARE_MODULE_ID>.<ro.product.board>.so
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := sensors.crespo
+
+LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
+
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_CFLAGS := -DLOG_TAG=\"Sensors\"
+LOCAL_SRC_FILES := \
+ sensors.cpp \
+ SensorBase.cpp \
+ LightSensor.cpp \
+ ProximitySensor.cpp \
+ AkmSensor.cpp \
+ GyroSensor.cpp \
+ InputEventReader.cpp
+
+LOCAL_SHARED_LIBRARIES := liblog libcutils
+LOCAL_PRELINK_MODULE := false
+
+include $(BUILD_SHARED_LIBRARY)
+
+endif # !TARGET_SIMULATOR