2013-06-12 22:25:59 +02:00
|
|
|
# Copyright 2013 The Android Open Source Project
|
|
|
|
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
2013-08-14 00:50:42 +02:00
|
|
|
|
2016-02-13 04:53:15 +01:00
|
|
|
ifeq ($(strip $(BOARD_CHARGER_NO_UI)),true)
|
|
|
|
LOCAL_CHARGER_NO_UI := true
|
|
|
|
endif
|
|
|
|
|
2018-09-07 21:52:46 +02:00
|
|
|
### charger_res_images ###
|
2016-02-13 04:53:15 +01:00
|
|
|
ifneq ($(strip $(LOCAL_CHARGER_NO_UI)),true)
|
2013-09-09 21:09:08 +02:00
|
|
|
define _add-charger-image
|
|
|
|
include $$(CLEAR_VARS)
|
2016-08-12 00:29:50 +02:00
|
|
|
LOCAL_MODULE := system_core_charger_res_images_$(notdir $(1))
|
2013-09-09 21:09:08 +02:00
|
|
|
LOCAL_MODULE_STEM := $(notdir $(1))
|
|
|
|
_img_modules += $$(LOCAL_MODULE)
|
|
|
|
LOCAL_SRC_FILES := $1
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_MODULE_CLASS := ETC
|
|
|
|
LOCAL_MODULE_PATH := $$(TARGET_ROOT_OUT)/res/images/charger
|
|
|
|
include $$(BUILD_PREBUILT)
|
|
|
|
endef
|
|
|
|
|
|
|
|
_img_modules :=
|
|
|
|
_images :=
|
|
|
|
$(foreach _img, $(call find-subdir-subdir-files, "images", "*.png"), \
|
|
|
|
$(eval $(call _add-charger-image,$(_img))))
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := charger_res_images
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_REQUIRED_MODULES := $(_img_modules)
|
|
|
|
include $(BUILD_PHONY_PACKAGE)
|
|
|
|
|
|
|
|
_add-charger-image :=
|
|
|
|
_img_modules :=
|
2016-02-13 04:53:15 +01:00
|
|
|
endif # LOCAL_CHARGER_NO_UI
|