blob: 0e3b1df00923726b0f712f42f370432c664b7dca [file] [log] [blame]
Steve Kondik75956202016-08-07 23:21:29 -07001LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4LOCAL_SRC_FILES := healthd_board_cm.cpp
5LOCAL_MODULE := libhealthd.cm
6LOCAL_CFLAGS := -Werror
7LOCAL_C_INCLUDES := \
Luca Stefani7d2b6d22016-08-25 14:41:17 +02008 system/core/healthd/include \
Steve Kondik75956202016-08-07 23:21:29 -07009 bootable/recovery
Adrian DCcadd0be2016-08-14 11:44:31 +020010ifneq ($(BACKLIGHT_PATH),)
11 LOCAL_CFLAGS += -DHEALTHD_BACKLIGHT_PATH=\"$(BACKLIGHT_PATH)\"
12endif
13ifneq ($(SECONDARY_BACKLIGHT_PATH),)
14 LOCAL_CFLAGS += -DHEALTHD_SECONDARY_BACKLIGHT_PATH=\"$(SECONDARY_BACKLIGHT_PATH)\"
15endif
16ifneq ($(HEALTHD_BACKLIGHT_LEVEL),)
17 LOCAL_CFLAGS += -DHEALTHD_BACKLIGHT_LEVEL=$(HEALTHD_BACKLIGHT_LEVEL)
18endif
Steve Kondik75956202016-08-07 23:21:29 -070019include $(BUILD_STATIC_LIBRARY)
20
21include $(CLEAR_VARS)
22LOCAL_MODULE := font_log.png
23LOCAL_SRC_FILES := fonts/$(PRODUCT_AAPT_PREF_CONFIG)/font_log.png
24LOCAL_MODULE_TAGS := optional
25LOCAL_MODULE_CLASS := ETC
26LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/res/images
27include $(BUILD_PREBUILT)
28
29include $(CLEAR_VARS)
30
31define _add-charger-image
32include $$(CLEAR_VARS)
33LOCAL_MODULE := vendor_cm_charger_$(notdir $(1))
34LOCAL_MODULE_STEM := $(notdir $(1))
35_img_modules += $$(LOCAL_MODULE)
36LOCAL_SRC_FILES := $1
37LOCAL_MODULE_TAGS := optional
38LOCAL_MODULE_CLASS := ETC
39LOCAL_MODULE_PATH := $$(TARGET_ROOT_OUT)/res/images/charger
40include $$(BUILD_PREBUILT)
41endef
42
43_img_modules :=
44_images :=
45$(foreach _img, $(call find-subdir-subdir-files, "images/$(PRODUCT_AAPT_PREF_CONFIG)", "*.png"), \
46 $(eval $(call _add-charger-image,$(_img))))
47
48include $(CLEAR_VARS)
49LOCAL_MODULE := cm_charger_res_images
50LOCAL_MODULE_TAGS := optional
51LOCAL_REQUIRED_MODULES := $(_img_modules)
52LOCAL_OVERRIDES_PACKAGES := charger_res_images
53include $(BUILD_PHONY_PACKAGE)
54
55_add-charger-image :=
56_img_modules :=