summaryrefslogtreecommitdiffstats
path: root/minuitwrp
diff options
context:
space:
mode:
Diffstat (limited to 'minuitwrp')
-rw-r--r--minuitwrp/Android.mk10
1 files changed, 8 insertions, 2 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