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