1# Copyright 2011 The Android Open Source Project 2 3ifneq ($(BUILD_TINY_ANDROID),true) 4 5LOCAL_PATH := $(call my-dir) 6include $(CLEAR_VARS) 7 8LOCAL_SRC_FILES := \ 9 charger.c 10 11LOCAL_MODULE := charger 12LOCAL_MODULE_TAGS := optional 13LOCAL_FORCE_STATIC_EXECUTABLE := true 14LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) 15LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED) 16 17LOCAL_C_INCLUDES := bootable/recovery 18 19LOCAL_STATIC_LIBRARIES := libminui libpixelflinger_static libpng 20LOCAL_STATIC_LIBRARIES += libz libstdc++ libcutils libc 21 22include $(BUILD_EXECUTABLE) 23 24define _add-charger-image 25include $$(CLEAR_VARS) 26LOCAL_MODULE := system_core_charger_$(notdir $(1)) 27LOCAL_MODULE_STEM := $(notdir $(1)) 28_img_modules += $$(LOCAL_MODULE) 29LOCAL_SRC_FILES := $1 30LOCAL_MODULE_TAGS := optional 31LOCAL_MODULE_CLASS := ETC 32LOCAL_MODULE_PATH := $$(TARGET_ROOT_OUT)/res/images/charger 33include $$(BUILD_PREBUILT) 34endef 35 36_img_modules := 37_images := 38$(foreach _img, $(call find-subdir-subdir-files, "images", "*.png"), \ 39 $(eval $(call _add-charger-image,$(_img)))) 40 41include $(CLEAR_VARS) 42LOCAL_MODULE := charger_res_images 43LOCAL_MODULE_TAGS := optional 44LOCAL_REQUIRED_MODULES := $(_img_modules) 45include $(BUILD_PHONY_PACKAGE) 46 47_add-charger-image := 48_img_modules := 49 50endif 51