1 # Copyright 2006 The Android Open Source Project 2 3 # Setting LOCAL_PATH will mess up all-subdir-makefiles, so do it beforehand. 4 legacy_modules := power uevent wifi qemu qemu_tracing 5 6 SAVE_MAKEFILES := $(call all-named-subdir-makefiles,$(legacy_modules)) 7 LEGACY_AUDIO_MAKEFILES := $(call all-named-subdir-makefiles,audio) 8 9 LOCAL_PATH:= $(call my-dir) 10 include $(CLEAR_VARS) 11 12 LOCAL_SHARED_LIBRARIES := libcutils liblog 13 14 LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 15 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 16 17 LOCAL_CFLAGS += -DQEMU_HARDWARE -Wno-unused-parameter -Wno-gnu-designator 18 QEMU_HARDWARE := true 19 20 LOCAL_SHARED_LIBRARIES += libdl 21 22 include $(SAVE_MAKEFILES) 23 24 LOCAL_MODULE:= libhardware_legacy 25 26 include $(BUILD_SHARED_LIBRARY) 27 28 # static library for librpc 29 include $(CLEAR_VARS) 30 31 LOCAL_MODULE:= libpower 32 33 LOCAL_SRC_FILES += power/power.c 34 LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 35 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 36 37 include $(BUILD_STATIC_LIBRARY) 38 39 # shared library for various HALs 40 include $(CLEAR_VARS) 41 42 LOCAL_MODULE := libpower 43 44 LOCAL_SRC_FILES := power/power.c 45 LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 46 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 47 48 LOCAL_SHARED_LIBRARIES := libcutils 49 50 include $(BUILD_SHARED_LIBRARY) 51 52 # legacy_audio builds it's own set of libraries that aren't linked into 53 # hardware_legacy 54 include $(LEGACY_AUDIO_MAKEFILES) 55