blob: 967a096bc400943f75bc109ad0caed266fa71ed0 [file] [log] [blame]
The Android Open Source Projectf53ebec2009-03-03 19:32:14 -08001# 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 Projectf53ebec2009-03-03 19:32:14 -08004
5LOCAL_PATH:= $(call my-dir)
6include $(CLEAR_VARS)
7
8LOCAL_SHARED_LIBRARIES := libcutils
9
10LOCAL_INCLUDES += $(LOCAL_PATH)
11
12ifneq ($(TARGET_SIMULATOR),true)
13 LOCAL_CFLAGS += -DQEMU_HARDWARE
14 QEMU_HARDWARE := true
15endif
16
17ifneq ($(TARGET_SIMULATOR),true)
18LOCAL_SHARED_LIBRARIES += libdl
19endif
20
The Android Open Source Projectf53ebec2009-03-03 19:32:14 -080021LOCAL_SRC_FILES += hardware.c
22
23# need "-lrt" on Linux simulator to pick up clock_gettime
24ifeq ($(TARGET_SIMULATOR),true)
25 ifeq ($(HOST_OS),linux)
26 LOCAL_LDLIBS += -lrt -lpthread -ldl
27 endif
28endif
29
30LOCAL_MODULE:= libhardware
31
32include $(BUILD_SHARED_LIBRARY)
Mathias Agopiana8a75162009-04-10 14:24:31 -070033
34include $(addsuffix /Android.mk, $(addprefix $(LOCAL_PATH)/, \
35 modules/gralloc \
Mathias Agopiancdefccd2010-07-15 18:29:03 -070036 tests \
Mathias Agopiana8a75162009-04-10 14:24:31 -070037 ))
38