Dima Zavin | f48b236 | 2011-08-30 10:46:09 -0700 | [diff] [blame] | 1 | # Copyright 2011 The Android Open Source Project |
| 2 | |
Brian Swetland | 303e6ac | 2011-09-20 17:38:06 -0700 | [diff] [blame] | 3 | ifneq ($(BUILD_TINY_ANDROID),true) |
| 4 | |
Dima Zavin | f48b236 | 2011-08-30 10:46:09 -0700 | [diff] [blame] | 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) |
Brian Swetland | 303e6ac | 2011-09-20 17:38:06 -0700 | [diff] [blame] | 23 | |
Dima Zavin | 0052abd | 2011-09-22 15:49:04 -0700 | [diff] [blame] | 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 := |
Dima Zavin | dcecd4c | 2011-09-25 22:27:13 -0700 | [diff] [blame] | 49 | |
Brian Swetland | 303e6ac | 2011-09-20 17:38:06 -0700 | [diff] [blame] | 50 | endif |