summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhengyin Qian <qianzy@google.com>2015-12-09 16:08:48 -0800
committerZhengyin Qian <qianzy@google.com>2015-12-09 16:08:48 -0800
commit2f7df3191d933bc5df29ab12fed58e3b6a8b86dc (patch)
tree65b32281941a54d5d03ebf3b2bfed21f85e07dec
parentddb76749a18e11f64dac780afc3c158245c009f8 (diff)
downloadsensors-2f7df3191d933bc5df29ab12fed58e3b6a8b86dc.tar.gz
add an option to use prebuilts
Change-Id: I340fb240f4109cddfda70cd17a07d06fef0b8209
-rw-r--r--als/Android.mk4
-rw-r--r--libsensors_iio/src/Android.mk4
-rw-r--r--tilt/Android.mk3
3 files changed, 11 insertions, 0 deletions
diff --git a/als/Android.mk b/als/Android.mk
index 7d756fc..9a1d5db 100644
--- a/als/Android.mk
+++ b/als/Android.mk
@@ -13,6 +13,8 @@
# limitations under the License.
#
+ifeq ($(USE_SENSOR_HAL_PREBUILTS),false)
+
LOCAL_PATH := $(call my-dir)
# HAL module implemenation, not prelinked, and stored in
@@ -84,3 +86,5 @@ LOCAL_SRC_FILES := \
LOCAL_SHARED_LIBRARIES := liblog libutils libdl
include $(BUILD_SHARED_LIBRARY)
+
+endif # USE_SENSOR_HAL_PREBUILTS
diff --git a/libsensors_iio/src/Android.mk b/libsensors_iio/src/Android.mk
index ca2d400..aa5f757 100644
--- a/libsensors_iio/src/Android.mk
+++ b/libsensors_iio/src/Android.mk
@@ -15,6 +15,8 @@
# limitations under the License.
#/
+ifeq ($(USE_SENSOR_HAL_PREBUILTS),false)
+
ifneq ($(TARGET_SIMULATOR),true)
LOCAL_PATH := $(call my-dir)
@@ -171,3 +173,5 @@ include $(BUILD_SHARED_LIBRARY)
include $(call all-makefiles-under, $(LOCAL_PATH))
endif # !TARGET_SIMULATOR
+
+endif # USE_SENSOR_HAL_PREBUILTS
diff --git a/tilt/Android.mk b/tilt/Android.mk
index 3b543a3..6c5f9d5 100644
--- a/tilt/Android.mk
+++ b/tilt/Android.mk
@@ -13,6 +13,8 @@
# limitations under the License.
#
+ifeq ($(USE_SENSOR_HAL_PREBUILTS),false)
+
LOCAL_PATH := $(call my-dir)
# HAL module implemenation, not prelinked, and stored in
@@ -85,3 +87,4 @@ LOCAL_SHARED_LIBRARIES := liblog libutils libdl
include $(BUILD_SHARED_LIBRARY)
+endif # USE_SENSOR_HAL_PREBUILTS