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. |
Dima Zavin | 2dad3e4 | 2011-04-19 16:09:19 -0700 | [diff] [blame] | 4 | legacy_modules := power uevent vibrator wifi qemu qemu_tracing |
| 5 | |
| 6 | SAVE_MAKEFILES := $(call all-named-subdir-makefiles,$(legacy_modules)) |
Dima Zavin | b7e1f72 | 2011-04-19 16:15:44 -0700 | [diff] [blame] | 7 | LEGACY_AUDIO_MAKEFILES := $(call all-named-subdir-makefiles,audio) |
The Android Open Source Project | cc49016 | 2009-03-03 19:32:14 -0800 | [diff] [blame] | 8 | |
| 9 | LOCAL_PATH:= $(call my-dir) |
| 10 | include $(CLEAR_VARS) |
| 11 | |
Dima Zavin | 1d10e7d | 2011-04-15 19:36:35 -0700 | [diff] [blame] | 12 | LOCAL_SHARED_LIBRARIES := libcutils libwpa_client |
The Android Open Source Project | cc49016 | 2009-03-03 19:32:14 -0800 | [diff] [blame] | 13 | |
| 14 | LOCAL_INCLUDES += $(LOCAL_PATH) |
| 15 | |
| 16 | ifneq ($(TARGET_SIMULATOR),true) |
| 17 | LOCAL_CFLAGS += -DQEMU_HARDWARE |
| 18 | QEMU_HARDWARE := true |
| 19 | endif |
| 20 | |
| 21 | ifneq ($(TARGET_SIMULATOR),true) |
| 22 | LOCAL_SHARED_LIBRARIES += libdl |
| 23 | endif |
| 24 | |
| 25 | include $(SAVE_MAKEFILES) |
| 26 | |
| 27 | # need "-lrt" on Linux simulator to pick up clock_gettime |
| 28 | ifeq ($(TARGET_SIMULATOR),true) |
| 29 | ifeq ($(HOST_OS),linux) |
| 30 | LOCAL_LDLIBS += -lrt -lpthread -ldl |
| 31 | endif |
| 32 | endif |
| 33 | |
| 34 | LOCAL_MODULE:= libhardware_legacy |
| 35 | |
| 36 | include $(BUILD_SHARED_LIBRARY) |
Mike Lockwood | 62c2f85 | 2010-03-09 10:43:16 -0500 | [diff] [blame] | 37 | |
| 38 | # static library for librpc |
| 39 | include $(CLEAR_VARS) |
| 40 | |
| 41 | LOCAL_MODULE:= libpower |
| 42 | |
| 43 | LOCAL_SRC_FILES += power/power.c |
| 44 | |
| 45 | include $(BUILD_STATIC_LIBRARY) |
Dima Zavin | 329eccd | 2011-04-15 19:37:35 -0700 | [diff] [blame] | 46 | |
| 47 | # shared library for various HALs |
| 48 | include $(CLEAR_VARS) |
| 49 | |
| 50 | LOCAL_MODULE := libpower |
| 51 | |
| 52 | LOCAL_SRC_FILES := power/power.c |
| 53 | |
| 54 | LOCAL_SHARED_LIBRARIES := libcutils |
| 55 | |
| 56 | include $(BUILD_SHARED_LIBRARY) |
Dima Zavin | b7e1f72 | 2011-04-19 16:15:44 -0700 | [diff] [blame] | 57 | |
| 58 | # legacy_audio builds it's own set of libraries that aren't linked into |
| 59 | # hardware_legacy |
| 60 | include $(LEGACY_AUDIO_MAKEFILES) |