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 | |
Dima Zavin | 1d10e7d | 2011-04-15 19:36:35 -0700 | [diff] [blame^] | 9 | LOCAL_SHARED_LIBRARIES := 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) |
Mike Lockwood | 62c2f85 | 2010-03-09 10:43:16 -0500 | [diff] [blame] | 34 | |
| 35 | # static library for librpc |
| 36 | include $(CLEAR_VARS) |
| 37 | |
| 38 | LOCAL_MODULE:= libpower |
| 39 | |
| 40 | LOCAL_SRC_FILES += power/power.c |
| 41 | |
| 42 | include $(BUILD_STATIC_LIBRARY) |