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