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