1# Copyright 2013 The Android Open Source Project 2 3LOCAL_PATH := $(call my-dir) 4 5ifeq ($(strip $(BOARD_CHARGER_NO_UI)),true) 6LOCAL_CHARGER_NO_UI := true 7endif 8 9### charger_res_images ### 10ifneq ($(strip $(LOCAL_CHARGER_NO_UI)),true) 11define _add-charger-image 12include $$(CLEAR_VARS) 13LOCAL_MODULE := system_core_charger_res_images_$(notdir $(1)) 14LOCAL_MODULE_STEM := $(notdir $(1)) 15_img_modules += $$(LOCAL_MODULE) 16LOCAL_SRC_FILES := $1 17LOCAL_MODULE_TAGS := optional 18LOCAL_MODULE_CLASS := ETC 19LOCAL_MODULE_PATH := $$(TARGET_ROOT_OUT)/res/images/charger 20include $$(BUILD_PREBUILT) 21endef 22 23_img_modules := 24_images := 25$(foreach _img, $(call find-subdir-subdir-files, "images", "*.png"), \ 26 $(eval $(call _add-charger-image,$(_img)))) 27 28include $(CLEAR_VARS) 29LOCAL_MODULE := charger_res_images 30LOCAL_MODULE_TAGS := optional 31LOCAL_REQUIRED_MODULES := $(_img_modules) 32include $(BUILD_PHONY_PACKAGE) 33 34_add-charger-image := 35_img_modules := 36endif # LOCAL_CHARGER_NO_UI 37