summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-03 19:32:14 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-03 19:32:14 -0800
commitf53ebec38718ff5d6b2aff2fa62b92a75d007ca5 (patch)
treefae6f04244f672724c715dd97c7d97a1bdd4e1f7 /Android.mk
parentd51f49a11dad52e172e4d7f6fcdf571f24efbcd5 (diff)
downloadhardware_libhardware-f53ebec38718ff5d6b2aff2fa62b92a75d007ca5.zip
hardware_libhardware-f53ebec38718ff5d6b2aff2fa62b92a75d007ca5.tar.gz
hardware_libhardware-f53ebec38718ff5d6b2aff2fa62b92a75d007ca5.tar.bz2
auto import from //depot/cupcake/@135843
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk35
1 files changed, 35 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..b2e9caf
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,35 @@
+# Copyright 2006 The Android Open Source Project
+
+# Setting LOCAL_PATH will mess up all-subdir-makefiles, so do it beforehand.
+SAVE_MAKEFILES := $(call all-subdir-makefiles)
+
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_SHARED_LIBRARIES := libcutils
+
+LOCAL_INCLUDES += $(LOCAL_PATH)
+
+ifneq ($(TARGET_SIMULATOR),true)
+ LOCAL_CFLAGS += -DQEMU_HARDWARE
+ QEMU_HARDWARE := true
+endif
+
+ifneq ($(TARGET_SIMULATOR),true)
+LOCAL_SHARED_LIBRARIES += libdl
+endif
+
+include $(SAVE_MAKEFILES)
+
+LOCAL_SRC_FILES += hardware.c
+
+# need "-lrt" on Linux simulator to pick up clock_gettime
+ifeq ($(TARGET_SIMULATOR),true)
+ ifeq ($(HOST_OS),linux)
+ LOCAL_LDLIBS += -lrt -lpthread -ldl
+ endif
+endif
+
+LOCAL_MODULE:= libhardware
+
+include $(BUILD_SHARED_LIBRARY)