diff options
author | Vojtech Bocek <vbocek@gmail.com> | 2014-09-07 15:01:56 +0200 |
---|---|---|
committer | Dees Troy <dees_troy@teamw.in> | 2014-10-14 15:06:56 +0200 |
commit | 76ee903d84d5b477016fb6ed6bdee1a21e237903 (patch) | |
tree | b5e773d53ce727911db18ba12d1e96b690c78c54 /gui/Android.mk | |
parent | Fix exfat-fuse handling (diff) | |
download | android_bootable_recovery-76ee903d84d5b477016fb6ed6bdee1a21e237903.tar android_bootable_recovery-76ee903d84d5b477016fb6ed6bdee1a21e237903.tar.gz android_bootable_recovery-76ee903d84d5b477016fb6ed6bdee1a21e237903.tar.bz2 android_bootable_recovery-76ee903d84d5b477016fb6ed6bdee1a21e237903.tar.lz android_bootable_recovery-76ee903d84d5b477016fb6ed6bdee1a21e237903.tar.xz android_bootable_recovery-76ee903d84d5b477016fb6ed6bdee1a21e237903.tar.zst android_bootable_recovery-76ee903d84d5b477016fb6ed6bdee1a21e237903.zip |
Diffstat (limited to 'gui/Android.mk')
-rw-r--r-- | gui/Android.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gui/Android.mk b/gui/Android.mk index 52d5f5573..baae3edf8 100644 --- a/gui/Android.mk +++ b/gui/Android.mk @@ -59,6 +59,9 @@ endif ifeq ($(TW_OEM_BUILD), true) LOCAL_CFLAGS += -DTW_OEM_BUILD endif +ifeq ($(TW_DISABLE_TTF), true) + LOCAL_CFLAGS += -DTW_DISABLE_TTF +endif ifeq ($(DEVICE_RESOLUTION),) $(warning ********************************************************************************) @@ -104,6 +107,13 @@ ifeq ($(TW_CUSTOM_THEME),) else TWRP_THEME_LOC := $(TW_CUSTOM_THEME) endif + +ifeq ($(TW_DISABLE_TTF), true) + TWRP_REMOVE_FONT := rm -f $(TARGET_RECOVERY_ROOT_OUT)/res/fonts/*.ttf +else + TWRP_REMOVE_FONT := rm -f $(TARGET_RECOVERY_ROOT_OUT)/res/fonts/*.dat +endif + TWRP_RES_GEN := $(intermediates)/twrp ifneq ($(TW_USE_TOOLBOX), true) TWRP_SH_TARGET := /sbin/busybox @@ -116,6 +126,7 @@ $(TWRP_RES_GEN): cp -fr $(TWRP_RES_LOC)/* $(TARGET_RECOVERY_ROOT_OUT)/res/ cp -fr $(TWRP_THEME_LOC)/* $(TARGET_RECOVERY_ROOT_OUT)/res/ $(TWRP_COMMON_XML) + $(TWRP_REMOVE_FONT) mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/sbin/ ln -sf $(TWRP_SH_TARGET) $(TARGET_RECOVERY_ROOT_OUT)/sbin/sh ln -sf /sbin/pigz $(TARGET_RECOVERY_ROOT_OUT)/sbin/gzip |