The Android Open Source Project | f53ebec | 2009-03-03 19:32:14 -0800 | [diff] [blame] | 1 | # Copyright 2006 The Android Open Source Project |
| 2 | |
| 3 | # Setting LOCAL_PATH will mess up all-subdir-makefiles, so do it beforehand. |
| 4 | SAVE_MAKEFILES := $(call all-subdir-makefiles) |
| 5 | |
| 6 | LOCAL_PATH:= $(call my-dir) |
| 7 | include $(CLEAR_VARS) |
| 8 | |
| 9 | LOCAL_SHARED_LIBRARIES := libcutils |
| 10 | |
| 11 | LOCAL_INCLUDES += $(LOCAL_PATH) |
| 12 | |
| 13 | ifneq ($(TARGET_SIMULATOR),true) |
| 14 | LOCAL_CFLAGS += -DQEMU_HARDWARE |
| 15 | QEMU_HARDWARE := true |
| 16 | endif |
| 17 | |
| 18 | ifneq ($(TARGET_SIMULATOR),true) |
| 19 | LOCAL_SHARED_LIBRARIES += libdl |
| 20 | endif |
| 21 | |
| 22 | include $(SAVE_MAKEFILES) |
| 23 | |
| 24 | LOCAL_SRC_FILES += hardware.c |
| 25 | |
| 26 | # need "-lrt" on Linux simulator to pick up clock_gettime |
| 27 | ifeq ($(TARGET_SIMULATOR),true) |
| 28 | ifeq ($(HOST_OS),linux) |
| 29 | LOCAL_LDLIBS += -lrt -lpthread -ldl |
| 30 | endif |
| 31 | endif |
| 32 | |
| 33 | LOCAL_MODULE:= libhardware |
| 34 | |
| 35 | include $(BUILD_SHARED_LIBRARY) |
Mathias Agopian | a8a7516 | 2009-04-10 14:24:31 -0700 | [diff] [blame] | 36 | |
| 37 | include $(addsuffix /Android.mk, $(addprefix $(LOCAL_PATH)/, \ |
| 38 | modules/gralloc \ |
| 39 | )) |
| 40 | |