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 | |
Dees_Troy | 86382ca | 2013-01-15 16:54:59 +0000 | [diff] [blame] | 5 | LOCAL_SRC_FILES := events.c resources.c |
| 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 | |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 13 | LOCAL_C_INCLUDES += \ |
| 14 | external/libpng \ |
| 15 | external/zlib \ |
Dees_Troy | 930bf01 | 2013-08-10 22:19:03 +0000 | [diff] [blame] | 16 | system/core/include \ |
| 17 | external/jpeg |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 18 | |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 19 | LOCAL_C_INCLUDES += \ |
| 20 | bootable/recovery/libjpegtwrp |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 21 | |
| 22 | ifeq ($(RECOVERY_TOUCHSCREEN_SWAP_XY), true) |
| 23 | LOCAL_CFLAGS += -DRECOVERY_TOUCHSCREEN_SWAP_XY |
| 24 | endif |
| 25 | |
| 26 | ifeq ($(RECOVERY_TOUCHSCREEN_FLIP_X), true) |
| 27 | LOCAL_CFLAGS += -DRECOVERY_TOUCHSCREEN_FLIP_X |
| 28 | endif |
| 29 | |
| 30 | ifeq ($(RECOVERY_TOUCHSCREEN_FLIP_Y), true) |
| 31 | LOCAL_CFLAGS += -DRECOVERY_TOUCHSCREEN_FLIP_Y |
| 32 | endif |
| 33 | |
| 34 | ifeq ($(RECOVERY_GRAPHICS_USE_LINELENGTH), true) |
| 35 | LOCAL_CFLAGS += -DRECOVERY_GRAPHICS_USE_LINELENGTH |
| 36 | endif |
| 37 | |
| 38 | #Remove the # from the line below to enable event logging |
| 39 | #TWRP_EVENT_LOGGING := true |
| 40 | ifeq ($(TWRP_EVENT_LOGGING), true) |
| 41 | LOCAL_CFLAGS += -D_EVENT_LOGGING |
| 42 | endif |
| 43 | |
| 44 | ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"RGBX_8888") |
| 45 | LOCAL_CFLAGS += -DRECOVERY_RGBX |
| 46 | endif |
| 47 | ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"BGRA_8888") |
| 48 | LOCAL_CFLAGS += -DRECOVERY_BGRA |
| 49 | endif |
| 50 | ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"RGB_565") |
| 51 | LOCAL_CFLAGS += -DRECOVERY_RGB_565 |
| 52 | endif |
| 53 | |
| 54 | ifeq ($(BOARD_HAS_FLIPPED_SCREEN), true) |
| 55 | LOCAL_CFLAGS += -DBOARD_HAS_FLIPPED_SCREEN |
| 56 | endif |
| 57 | |
| 58 | ifneq ($(BOARD_USE_CUSTOM_RECOVERY_FONT),) |
| 59 | LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=$(BOARD_USE_CUSTOM_RECOVERY_FONT) |
| 60 | endif |
Dees_Troy | 930bf01 | 2013-08-10 22:19:03 +0000 | [diff] [blame] | 61 | LOCAL_SHARED_LIBRARIES += libz libc libcutils libjpeg |
| 62 | LOCAL_STATIC_LIBRARIES += libpng libpixelflinger_static |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 63 | LOCAL_MODULE_TAGS := eng |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 64 | LOCAL_MODULE := libminuitwrp |
| 65 | |
Dees_Troy | 930bf01 | 2013-08-10 22:19:03 +0000 | [diff] [blame] | 66 | include $(BUILD_SHARED_LIBRARY) |