blob: 5367a9804fd00d0dc8e9b1d0f8182490ed15e789 [file] [log] [blame]
Dima Zavinf48b2362011-08-30 10:46:09 -07001# Copyright 2011 The Android Open Source Project
2
Brian Swetland303e6ac2011-09-20 17:38:06 -07003ifneq ($(BUILD_TINY_ANDROID),true)
4
Dima Zavinf48b2362011-08-30 10:46:09 -07005LOCAL_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)
Brian Swetland303e6ac2011-09-20 17:38:06 -070023
Dima Zavin0052abd2011-09-22 15:49:04 -070024define _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 :=
Dima Zavindcecd4c2011-09-25 22:27:13 -070049
Brian Swetland303e6ac2011-09-20 17:38:06 -070050endif