1 # Copyright (C) 2008 The Android Open Source Project
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 # HAL module implemenation, not prelinked, and stored in
16 # hw/<SENSORS_HARDWARE_MODULE_ID>.<ro.product.board>.so
18 ifeq ($(TARGET_BOARD_PLATFORM),baytrail)
19 ifeq ($(BOARD_USE_PLATFORM_SENSOR_LIB),true)
21 LOCAL_PATH := $(call my-dir)
27 common_src_files := $(common_src_path)/sensors.cpp \
28 $(common_src_path)/SensorBase.cpp \
29 $(common_src_path)/SensorInputDev.cpp \
30 $(common_src_path)/InputEventReader.cpp \
31 $(common_src_path)/Helpers.cpp \
32 $(common_src_path)/SensorIIODev.cpp \
34 # Board specific sensors.
35 sensor_src_files := $(common_src_path)/HidSensor_Accel3D.cpp \
36 $(common_src_path)/HidSensor_Gyro3D.cpp \
37 $(common_src_path)/HidSensor_Compass3D.cpp \
38 $(common_src_path)/HidSensor_ALS.cpp \
39 $(common_src_path)/HidSensor_Pressure.cpp \
40 $(common_src_path)/RotVecSensor.cpp \
41 $(common_src_path)/SynthCompassSensor.cpp \
42 $(common_src_path)/OrientationSensor.cpp \
44 include external/stlport/libstlport.mk
45 LOCAL_C_INCLUDES += $(LOCAL_PATH) vendor/intel/hardware/libsensors
47 LOCAL_MODULE := sensors.$(TARGET_DEVICE)
48 LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
49 LOCAL_MODULE_TAGS := optional
50 LOCAL_CFLAGS := -DLOG_TAG=\"Sensors\"
51 LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libstlport
52 LOCAL_PRELINK_MODULE := false
53 LOCAL_SRC_FILES := $(common_src_files) $(sensor_src_files) BoardConfig.cpp
55 include $(BUILD_SHARED_LIBRARY)
57 endif # BOARD_USE_PLATFORM_SENSOR_LIB == true
58 endif # TARGET_BOARD_PLATFORM == baytrail