summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wallace <greg@gregtwallace.com>2016-01-27 23:15:51 +0100
committerDees Troy <dees_troy@teamw.in>2016-02-03 05:15:10 +0100
commitace7623306e715bc366e726a0ad844156f00445d (patch)
tree68e7eeb4d167e5fe6c4679a003386c1a1c0fe613
parentLanguage: Update & Fix zh_TW.xml (diff)
downloadandroid_bootable_recovery-ace7623306e715bc366e726a0ad844156f00445d.tar
android_bootable_recovery-ace7623306e715bc366e726a0ad844156f00445d.tar.gz
android_bootable_recovery-ace7623306e715bc366e726a0ad844156f00445d.tar.bz2
android_bootable_recovery-ace7623306e715bc366e726a0ad844156f00445d.tar.lz
android_bootable_recovery-ace7623306e715bc366e726a0ad844156f00445d.tar.xz
android_bootable_recovery-ace7623306e715bc366e726a0ad844156f00445d.tar.zst
android_bootable_recovery-ace7623306e715bc366e726a0ad844156f00445d.zip
-rw-r--r--minuitwrp/Android.mk10
-rw-r--r--prebuilt/Android.mk4
2 files changed, 11 insertions, 3 deletions
diff --git a/minuitwrp/Android.mk b/minuitwrp/Android.mk
index 7f6b727b8..811685c0e 100644
--- a/minuitwrp/Android.mk
+++ b/minuitwrp/Android.mk
@@ -58,7 +58,11 @@ LOCAL_C_INCLUDES += \
external/freetype/include \
external/libcxx/include
-#external/jpeg \
+ifneq ($(TW_INCLUDE_JPEG),)
+ LOCAL_C_INCLUDES += \
+ external/jpeg
+ LOCAL_CFLAGS += -DTW_INCLUDE_JPEG
+endif
ifeq ($(RECOVERY_TOUCHSCREEN_SWAP_XY), true)
LOCAL_CFLAGS += -DRECOVERY_TOUCHSCREEN_SWAP_XY
@@ -169,7 +173,9 @@ LOCAL_CLANG := true
LOCAL_CFLAGS += -DTWRES=\"$(TWRES_PATH)\"
LOCAL_SHARED_LIBRARIES += libft2 libz libc libcutils libpng libutils
-#libjpeg
+ifneq ($(TW_INCLUDE_JPEG),)
+ LOCAL_SHARED_LIBRARIES += libjpeg
+endif
LOCAL_STATIC_LIBRARIES += libpixelflinger_twrp
LOCAL_MODULE_TAGS := eng
LOCAL_MODULE := libminuitwrp
diff --git a/prebuilt/Android.mk b/prebuilt/Android.mk
index f1cdc90db..dba181003 100644
--- a/prebuilt/Android.mk
+++ b/prebuilt/Android.mk
@@ -122,7 +122,9 @@ ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext4_utils.so
endif
RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libaosprecovery.so
-#RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libjpeg.so
+ifneq ($(TW_INCLUDE_JPEG),)
+ RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libjpeg.so
+endif
ifeq ($(TWHAVE_SELINUX), true)
RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libselinux.so
ifneq ($(TARGET_USERIMAGES_USE_EXT4), true)