OSDN Git Service

Merge remote-tracking branch 'origin/abt/topic/gmin/kitkat/sensors' into gmin/kitkat...
[android-x86/hardware-intel-libsensors.git] / Android.mk
1 #
2 # Copyright (C) 2014 Intel Corporation.
3 #
4
5 # IIO sensors HAL module implementation, compiled as hw/iio-sensors-hal.so
6
7 LOCAL_PATH := $(call my-dir)
8
9 include $(CLEAR_VARS)
10
11 src_path := .
12 src_files := $(src_path)/entry.c \
13              $(src_path)/enumeration.c \
14              $(src_path)/control.c \
15              $(src_path)/description.c \
16              $(src_path)/utils.c \
17              $(src_path)/transform.c \
18              $(src_path)/compass-calibration.c \
19              $(src_path)/matrix-ops.c \
20              $(src_path)/gyro-calibration.c \
21
22 LOCAL_C_INCLUDES += $(LOCAL_PATH) vendor/intel/hardware/iio-sensors
23 LOCAL_MODULE := sensors.$(TARGET_BOARD_PLATFORM)
24 LOCAL_MODULE_OWNER := intel
25 LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
26 LOCAL_MODULE_TAGS := optional
27 LOCAL_CFLAGS := -DLOG_TAG=\"Sensors\" -fvisibility=hidden
28 LOCAL_LDFLAGS := -Wl,--gc-sections
29 LOCAL_LDLIBS := -lpthreads
30 LOCAL_SHARED_LIBRARIES := liblog libcutils libdl
31 LOCAL_PRELINK_MODULE := false
32 LOCAL_SRC_FILES := $(src_files)
33
34 include $(BUILD_SHARED_LIBRARY)
35