OSDN Git Service

REVERTME: libsensors: Add support for BYT-M
[android-x86/hardware-intel-libsensors.git] / bytm / 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_BOARD_PLATFORM),baytrail)
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)/RotVecSensor.cpp \
40                     $(common_src_path)/SynthCompassSensor.cpp \
41                     $(common_src_path)/OrientationSensor.cpp \
42
43 include external/stlport/libstlport.mk
44 LOCAL_C_INCLUDES += $(LOCAL_PATH) vendor/intel/hardware/libsensors
45
46 LOCAL_MODULE := sensors.$(TARGET_DEVICE)
47 LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
48 LOCAL_MODULE_TAGS := optional
49 LOCAL_CFLAGS := -DLOG_TAG=\"Sensors\"
50 LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libstlport
51 LOCAL_PRELINK_MODULE := false
52 LOCAL_SRC_FILES := $(common_src_files) $(sensor_src_files) BoardConfig.cpp
53
54 include $(BUILD_SHARED_LIBRARY)
55
56 endif # BOARD_USE_PLATFORM_SENSOR_LIB == true
57 endif # TARGET_BOARD_PLATFORM == baytrail