summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornkk71 <nkk71x@gmail.com>2017-01-19 15:56:07 +0100
committerDees Troy <dees_troy@teamw.in>2017-02-02 16:16:52 +0100
commit6e4114f8b7fc7c00ae0610f82cf2cbf1e26678b4 (patch)
treea4dd3cda950d5e28115deed4f12817156e579ab8
parentrecovery: adjust mkfs.f2fs location (diff)
downloadandroid_bootable_recovery-6e4114f8b7fc7c00ae0610f82cf2cbf1e26678b4.tar
android_bootable_recovery-6e4114f8b7fc7c00ae0610f82cf2cbf1e26678b4.tar.gz
android_bootable_recovery-6e4114f8b7fc7c00ae0610f82cf2cbf1e26678b4.tar.bz2
android_bootable_recovery-6e4114f8b7fc7c00ae0610f82cf2cbf1e26678b4.tar.lz
android_bootable_recovery-6e4114f8b7fc7c00ae0610f82cf2cbf1e26678b4.tar.xz
android_bootable_recovery-6e4114f8b7fc7c00ae0610f82cf2cbf1e26678b4.tar.zst
android_bootable_recovery-6e4114f8b7fc7c00ae0610f82cf2cbf1e26678b4.zip
Diffstat (limited to '')
-rw-r--r--gui/Android.mk38
1 files changed, 22 insertions, 16 deletions
diff --git a/gui/Android.mk b/gui/Android.mk
index 8361bcbb4..a1cd043a2 100644
--- a/gui/Android.mk
+++ b/gui/Android.mk
@@ -90,6 +90,13 @@ LOCAL_MODULE_TAGS := eng
LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)$(TWRES_PATH)
+TWRP_RES := $(commands_recovery_local_path)/gui/theme/common/fonts
+TWRP_RES += $(commands_recovery_local_path)/gui/theme/common/languages
+ifeq ($(TW_EXTRA_LANGUAGES),true)
+ TWRP_RES += $(commands_recovery_local_path)/gui/theme/extra-languages/fonts
+ TWRP_RES += $(commands_recovery_local_path)/gui/theme/extra-languages/languages
+endif
+
ifeq ($(TW_CUSTOM_THEME),)
ifeq ($(TW_THEME),)
ifeq ($(DEVICE_RESOLUTION),)
@@ -114,31 +121,30 @@ ifeq ($(TW_CUSTOM_THEME),)
endif
endif
-TWRP_THEME_LOC := $(commands_recovery_local_path)/gui/theme/$(TW_THEME)
-TWRP_RES := $(commands_recovery_local_path)/gui/theme/common/fonts
-TWRP_RES += $(commands_recovery_local_path)/gui/theme/common/languages
-TWRP_RES += $(commands_recovery_local_path)/gui/theme/common/$(word 1,$(subst _, ,$(TW_THEME))).xml
-ifeq ($(TW_EXTRA_LANGUAGES),true)
- TWRP_RES += $(commands_recovery_local_path)/gui/theme/extra-languages/fonts
- TWRP_RES += $(commands_recovery_local_path)/gui/theme/extra-languages/languages
+ TWRP_THEME_LOC := $(commands_recovery_local_path)/gui/theme/$(TW_THEME)
+ TWRP_RES += $(commands_recovery_local_path)/gui/theme/common/$(word 1,$(subst _, ,$(TW_THEME))).xml
+ # for future copying of used include xmls and fonts:
+ # UI_XML := $(TWRP_THEME_LOC)/ui.xml
+ # TWRP_INCLUDE_XMLS := $(shell xmllint --xpath '/recovery/include/xmlfile/@name' $(UI_XML)|sed -n 's/[^\"]*\"\([^\"]*\)\"[^\"]*/\1\n/gp'|sort|uniq)
+ # TWRP_FONTS_TTF := $(shell xmllint --xpath '/recovery/resources/font/@filename' $(UI_XML)|sed -n 's/[^\"]*\"\([^\"]*\)\"[^\"]*/\1\n/gp'|sort|uniq)niq)
+else
+ TWRP_THEME_LOC := $(TW_CUSTOM_THEME)
endif
-# for future copying of used include xmls and fonts:
-# UI_XML := $(TWRP_THEME_LOC)/ui.xml
-# TWRP_INCLUDE_XMLS := $(shell xmllint --xpath '/recovery/include/xmlfile/@name' $(UI_XML)|sed -n 's/[^\"]*\"\([^\"]*\)\"[^\"]*/\1\n/gp'|sort|uniq)
-# TWRP_FONTS_TTF := $(shell xmllint --xpath '/recovery/resources/font/@filename' $(UI_XML)|sed -n 's/[^\"]*\"\([^\"]*\)\"[^\"]*/\1\n/gp'|sort|uniq)niq)
+TWRP_RES += $(TW_ADDITIONAL_RES)
+
ifeq ($(wildcard $(TWRP_THEME_LOC)/ui.xml),)
$(warning ****************************************************************************)
- $(warning * TW_THEME is not valid: '$(TW_THEME)')
+ ifeq ($(TW_CUSTOM_THEME),)
+ $(warning * TW_THEME is not valid: '$(TW_THEME)')
+ else
+ $(warning * TW_CUSTOM_THEME is not valid: '$(TW_CUSTOM_THEME)')
+ endif
$(warning * Please choose an appropriate TW_THEME or create a new one for your device.)
$(warning * Available themes:)
$(warning * $(notdir $(wildcard $(commands_recovery_local_path)/gui/theme/*_*)))
$(warning ****************************************************************************)
$(error stopping)
endif
-else
- TWRP_THEME_LOC := $(TW_CUSTOM_THEME)
-endif
-TWRP_RES += $(TW_ADDITIONAL_RES)
TWRP_RES_GEN := $(intermediates)/twrp
$(TWRP_RES_GEN):