summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:50 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:50 -0800
commit51704bed795b5b0e5e3c7b792dcdc2bf2d96a9e9 (patch)
tree57cf7487c9e5e66c3c2d8b4e0cebe30e1662a02c /Android.mk
parentd6054a36475b5ff502b4af78f7d272a713c1a8e7 (diff)
downloadhardware_libhardware-51704bed795b5b0e5e3c7b792dcdc2bf2d96a9e9.zip
hardware_libhardware-51704bed795b5b0e5e3c7b792dcdc2bf2d96a9e9.tar.gz
hardware_libhardware-51704bed795b5b0e5e3c7b792dcdc2bf2d96a9e9.tar.bz2
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk15
1 files changed, 14 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index 05dc61a..ccf738e 100644
--- a/Android.mk
+++ b/Android.mk
@@ -8,12 +8,25 @@ include $(CLEAR_VARS)
LOCAL_SHARED_LIBRARIES := libutils libcutils libwpa_client
+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
+ LOCAL_LDLIBS += -lrt -lpthread -ldl
endif
endif