-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathAndroid.mk
48 lines (37 loc) · 1.18 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
LOCAL_PATH := $(call my-dir)
# HAL module implemenation, not prelinked and stored in
# hw/<SENSORS_HARDWARE_MODULE_ID>.<ro.product.board>.so
include $(CLEAR_VARS)
DASH_ROOT := $(LOCAL_PATH)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_SHARED_LIBRARIES := \
liblog \
libcutils
LOCAL_SRC_FILES += sensors_module.c \
sensors_list.c \
sensors_config.c \
sensors_fifo.c \
sensors_worker.c \
sensors_select.c \
sensors_wrapper.c \
sensors_input_cache.c \
sensors_sysfs.c \
sensors/sensor_util.c
LOCAL_CFLAGS += -I$(LOCAL_PATH)/sensors
# Uncomment to enable debug
#LOCAL_CFLAGS += -DDEBUG -UNDEBUG
# Comment to enable debug
LOCAL_CFLAGS += -DLOG_NDEBUG
# Set 1 to enable verbose debug
LOCAL_CFLAGS += -DDEBUG_VERBOSE=0
include $(LOCAL_PATH)/sensors/Sensors.mk
LOCAL_SRC_FILES += $(patsubst %,sensors/%, $(yes-files))
LOCAL_CFLAGS += $(yes-cflags)
LOCAL_C_INCLUDES += $(yes-c-includes)
LOCAL_STATIC_LIBRARIES += $(yes-static-libs)
LOCAL_SHARED_LIBRARIES += $(yes-shared-libs)
LOCAL_MODULE := sensors.default
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
include $(call first-makefiles-under, $(LOCAL_PATH)/libs)