OSDN Git Service

3a8df418bd3f3f4c027c9882f2e25effb00b448b
[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
18 LOCAL_C_INCLUDES += $(LOCAL_PATH) vendor/intel/hardware/iio-sensors-hal
19 LOCAL_MODULE := iio-sensors-hal
20 LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
21 LOCAL_MODULE_TAGS := optional
22 LOCAL_CFLAGS := -DLOG_TAG=\"Sensors\" -fvisibility=hidden
23 LOCAL_LDFLAGS := -Wl,--gc-sections
24 LOCAL_SHARED_LIBRARIES := liblog libcutils libdl
25 LOCAL_PRELINK_MODULE := false
26 LOCAL_SRC_FILES := $(src_files)
27
28 include $(BUILD_SHARED_LIBRARY)
29