OSDN Git Service

Android.mk: Remove USE_IIO_SENSOR_HAL and USE_IIO_ACTIVITY_RECOGNITION_HAL
[android-x86/hardware-intel-libsensors.git] / Android.mk
1 # Copyright (c) 2015 Intel Corporation
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 # IIO sensors HAL module implementation, compiled as hw/iio-sensors-hal.so
16
17 LOCAL_PATH := $(call my-dir)
18
19 include $(CLEAR_VARS)
20
21 src_path := .
22 src_files := $(src_path)/entry.c \
23              $(src_path)/enumeration.c \
24              $(src_path)/control.c \
25              $(src_path)/description.c \
26              $(src_path)/utils.c \
27              $(src_path)/transform.c \
28              $(src_path)/compass-calibration.c \
29              $(src_path)/matrix-ops.c \
30              $(src_path)/gyro-calibration.c \
31              $(src_path)/filtering.c \
32              $(src_path)/discovery.c \
33              $(src_path)/accel-calibration.c \
34
35 LOCAL_C_INCLUDES += $(LOCAL_PATH) vendor/intel/hardware/iio-sensors
36 ifeq ($(HAL_AUTODETECT),true)
37 LOCAL_MODULE := iio-sensors-hal
38 else
39 LOCAL_MODULE := sensors.$(TARGET_BOARD_PLATFORM)
40 endif
41 LOCAL_MODULE_OWNER := intel
42 LOCAL_MODULE_RELATIVE_PATH := hw
43 LOCAL_MODULE_TAGS := optional
44 LOCAL_CFLAGS := -DLOG_TAG=\"Sensors\" -fvisibility=hidden
45 ifeq ($(NO_IIO_EVENTS),true)
46 LOCAL_CFLAGS += -D__NO_EVENTS__
47 endif
48 LOCAL_LDFLAGS := -Wl,--gc-sections
49 LOCAL_SHARED_LIBRARIES := liblog libcutils libdl
50 LOCAL_PRELINK_MODULE := false
51 LOCAL_SRC_FILES := $(src_files)
52 LOCAL_PROPRIETARY_MODULE := true
53 include $(BUILD_SHARED_LIBRARY)
54
55 include $(CLEAR_VARS)
56 LOCAL_C_INCLUDES += $(LOCAL_PATH) vendor/intel/hardware/iio-sensors
57 LOCAL_MODULE := sens
58 LOCAL_CFLAGS := -DLOG_TAG=\"Sensors\" -fvisibility=hidden
59 LOCAL_SHARED_LIBRARIES := liblog libcutils libdl
60 LOCAL_SRC_FILES := sens.c
61 LOCAL_MODULE_TAGS := eng
62 LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
63 include $(BUILD_EXECUTABLE)
64
65
66 # Activity HAL module implementation
67
68 include $(CLEAR_VARS)
69
70 src_path := .
71 activity_src_files := $(src_path)/activity_event_entry.c \
72                       $(src_path)/discovery.c \
73                       $(src_path)/utils.c \
74
75 LOCAL_C_INCLUDES += $(LOCAL_PATH) vendor/intel/hardware/iio-sensors
76 LOCAL_MODULE := activity_recognition.$(TARGET_BOARD_PLATFORM)
77 LOCAL_MODULE_OWNER := intel
78 LOCAL_MODULE_RELATIVE_PATH := hw
79 LOCAL_MODULE_TAGS := optional
80 LOCAL_CFLAGS := -DLOG_TAG=\"Activity\" -fvisibility=hidden
81 LOCAL_LDFLAGS := -Wl,--gc-sections
82 LOCAL_SHARED_LIBRARIES := liblog libcutils
83 LOCAL_PRELINK_MODULE := false
84 LOCAL_SRC_FILES := $(activity_src_files)
85 LOCAL_PROPRIETARY_MODULE := true
86 include $(BUILD_SHARED_LIBRARY)
87
88 include $(CLEAR_VARS)
89 LOCAL_C_INCLUDES += $(LOCAL_PATH) vendor/intel/hardware/iio-sensors
90 LOCAL_MODULE := activity
91 LOCAL_CFLAGS := -DLOG_TAG=\"Activity\" -fvisibility=hidden
92 LOCAL_SHARED_LIBRARIES := liblog libcutils libdl
93 LOCAL_SRC_FILES := activity.c
94 LOCAL_MODULE_TAGS := eng
95 LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
96 include $(BUILD_EXECUTABLE)