OSDN Git Service

libsensors: workaround sensors never detected
[android-x86/hardware-intel-libsensors.git] / bdw_wsb / Android.mk
1 # Copyright (C) 2008 The Android Open Source Project
2 #
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
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
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.
14
15 # HAL module implemenation, not prelinked, and stored in
16 # hw/<SENSORS_HARDWARE_MODULE_ID>.<ro.product.board>.so
17
18 ifeq ($(TARGET_PRODUCT_DEVICE),bdw_wsb)
19 ifeq ($(BOARD_USE_PLATFORM_SENSOR_LIB),true)
20
21 LOCAL_PATH := $(call my-dir)
22
23 include $(CLEAR_VARS)
24
25 # Common files.
26 common_src_path := ..
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 \
33
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_Proximity.cpp \
40                     $(common_src_path)/HidSensor_Pressure.cpp \
41                     $(common_src_path)/RotVecSensor.cpp \
42                     $(common_src_path)/SynthCompassSensor.cpp \
43                     $(common_src_path)/OrientationSensor.cpp \
44
45 include external/stlport/libstlport.mk
46 LOCAL_C_INCLUDES += $(LOCAL_PATH) vendor/intel/hardware/libsensors
47
48 LOCAL_MODULE := sensors.$(TARGET_DEVICE)
49 LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
50 LOCAL_MODULE_TAGS := optional
51 LOCAL_CFLAGS := -DLOG_TAG=\"Sensors\"
52 LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libstlport
53 LOCAL_PRELINK_MODULE := false
54 LOCAL_SRC_FILES := $(common_src_files) $(sensor_src_files) BoardConfig.cpp
55
56 include $(BUILD_SHARED_LIBRARY)
57
58 endif # BOARD_USE_PLATFORM_SENSOR_LIB == true
59 endif # TARGET_BOARD_PLATFORM == haswell