The Android Open Source Project | cc49016 | 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 | |
Mathias Agopian | 9cb1980 | 2009-05-19 14:05:32 -0700 | [diff] [blame^] | 9 | LOCAL_SHARED_LIBRARIES := libutils libbinder libcutils libwpa_client |
The Android Open Source Project | cc49016 | 2009-03-03 19:32:14 -0800 | [diff] [blame] | 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 | # need "-lrt" on Linux simulator to pick up clock_gettime |
| 25 | ifeq ($(TARGET_SIMULATOR),true) |
| 26 | ifeq ($(HOST_OS),linux) |
| 27 | LOCAL_LDLIBS += -lrt -lpthread -ldl |
| 28 | endif |
| 29 | endif |
| 30 | |
| 31 | LOCAL_MODULE:= libhardware_legacy |
| 32 | |
| 33 | include $(BUILD_SHARED_LIBRARY) |