Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 2 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 3 | include $(CLEAR_VARS) |
| 4 | |
Vojtech Bocek | 03fd6c5 | 2014-03-13 18:46:34 +0100 | [diff] [blame] | 5 | LOCAL_SRC_FILES := events.c resources.c graphics_overlay.c graphics_utils.c |
Dees_Troy | 86382ca | 2013-01-15 16:54:59 +0000 | [diff] [blame] | 6 | |
| 7 | ifneq ($(TW_BOARD_CUSTOM_GRAPHICS),) |
| 8 | LOCAL_SRC_FILES += $(TW_BOARD_CUSTOM_GRAPHICS) |
| 9 | else |
| 10 | LOCAL_SRC_FILES += graphics.c |
| 11 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 12 | |
Ethan Yonker | 4ee5ad7 | 2014-02-18 18:41:17 -0600 | [diff] [blame] | 13 | ifeq ($(TW_TARGET_USES_QCOM_BSP), true) |
| 14 | LOCAL_CFLAGS += -DMSM_BSP |
| 15 | ifeq ($(TARGET_PREBUILT_KERNEL),) |
| 16 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 17 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 18 | else |
| 19 | LOCAL_C_INCLUDES += bootable/recovery/minuitwrp/include |
| 20 | endif |
| 21 | else |
| 22 | LOCAL_C_INCLUDES += bootable/recovery/minuitwrp/include |
| 23 | endif |
| 24 | |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 25 | LOCAL_C_INCLUDES += \ |
| 26 | external/libpng \ |
| 27 | external/zlib \ |
Dees_Troy | 930bf01 | 2013-08-10 22:19:03 +0000 | [diff] [blame] | 28 | system/core/include \ |
| 29 | external/jpeg |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 30 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 31 | ifeq ($(RECOVERY_TOUCHSCREEN_SWAP_XY), true) |
| 32 | LOCAL_CFLAGS += -DRECOVERY_TOUCHSCREEN_SWAP_XY |
| 33 | endif |
| 34 | |
| 35 | ifeq ($(RECOVERY_TOUCHSCREEN_FLIP_X), true) |
| 36 | LOCAL_CFLAGS += -DRECOVERY_TOUCHSCREEN_FLIP_X |
| 37 | endif |
| 38 | |
| 39 | ifeq ($(RECOVERY_TOUCHSCREEN_FLIP_Y), true) |
| 40 | LOCAL_CFLAGS += -DRECOVERY_TOUCHSCREEN_FLIP_Y |
| 41 | endif |
| 42 | |
| 43 | ifeq ($(RECOVERY_GRAPHICS_USE_LINELENGTH), true) |
| 44 | LOCAL_CFLAGS += -DRECOVERY_GRAPHICS_USE_LINELENGTH |
| 45 | endif |
| 46 | |
| 47 | #Remove the # from the line below to enable event logging |
| 48 | #TWRP_EVENT_LOGGING := true |
| 49 | ifeq ($(TWRP_EVENT_LOGGING), true) |
| 50 | LOCAL_CFLAGS += -D_EVENT_LOGGING |
| 51 | endif |
| 52 | |
Ethan Yonker | 4ee5ad7 | 2014-02-18 18:41:17 -0600 | [diff] [blame] | 53 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888) |
| 54 | LOCAL_CFLAGS += -DRECOVERY_RGBX |
| 55 | endif |
| 56 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888) |
| 57 | LOCAL_CFLAGS += -DRECOVERY_BGRA |
| 58 | endif |
| 59 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGB_565) |
| 60 | LOCAL_CFLAGS += -DRECOVERY_RGB_565 |
| 61 | endif |
| 62 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 63 | ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"RGBX_8888") |
| 64 | LOCAL_CFLAGS += -DRECOVERY_RGBX |
| 65 | endif |
| 66 | ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"BGRA_8888") |
| 67 | LOCAL_CFLAGS += -DRECOVERY_BGRA |
| 68 | endif |
| 69 | ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"RGB_565") |
| 70 | LOCAL_CFLAGS += -DRECOVERY_RGB_565 |
| 71 | endif |
| 72 | |
| 73 | ifeq ($(BOARD_HAS_FLIPPED_SCREEN), true) |
| 74 | LOCAL_CFLAGS += -DBOARD_HAS_FLIPPED_SCREEN |
| 75 | endif |
| 76 | |
Ibrahim Awwal | 2e9cb01 | 2014-01-04 12:38:26 -0800 | [diff] [blame] | 77 | ifeq ($(TW_IGNORE_MAJOR_AXIS_0), true) |
| 78 | LOCAL_CFLAGS += -DTW_IGNORE_MAJOR_AXIS_0 |
| 79 | endif |
| 80 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 81 | ifneq ($(BOARD_USE_CUSTOM_RECOVERY_FONT),) |
| 82 | LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=$(BOARD_USE_CUSTOM_RECOVERY_FONT) |
| 83 | endif |
Flemmard | f467461 | 2014-01-10 09:14:44 +0100 | [diff] [blame] | 84 | |
| 85 | ifneq ($(TW_WHITELIST_INPUT),) |
| 86 | LOCAL_CFLAGS += -DWHITELIST_INPUT=$(TW_WHITELIST_INPUT) |
| 87 | endif |
| 88 | |
Dees_Troy | 930bf01 | 2013-08-10 22:19:03 +0000 | [diff] [blame] | 89 | LOCAL_SHARED_LIBRARIES += libz libc libcutils libjpeg |
| 90 | LOCAL_STATIC_LIBRARIES += libpng libpixelflinger_static |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 91 | LOCAL_MODULE_TAGS := eng |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 92 | LOCAL_MODULE := libminuitwrp |
| 93 | |
Dees_Troy | 930bf01 | 2013-08-10 22:19:03 +0000 | [diff] [blame] | 94 | include $(BUILD_SHARED_LIBRARY) |