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