Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
Dees_Troy | 86382ca | 2013-01-15 16:54:59 +0000 | [diff] [blame] | 4 | LOCAL_SRC_FILES := events.c resources.c |
| 5 | |
| 6 | ifneq ($(TW_BOARD_CUSTOM_GRAPHICS),) |
| 7 | LOCAL_SRC_FILES += $(TW_BOARD_CUSTOM_GRAPHICS) |
| 8 | else |
| 9 | LOCAL_SRC_FILES += graphics.c |
| 10 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 11 | |
| 12 | LOCAL_C_INCLUDES +=\ |
| 13 | external/libpng\ |
| 14 | external/zlib\ |
| 15 | external/jpeg |
| 16 | |
| 17 | |
| 18 | ifeq ($(RECOVERY_TOUCHSCREEN_SWAP_XY), true) |
| 19 | LOCAL_CFLAGS += -DRECOVERY_TOUCHSCREEN_SWAP_XY |
| 20 | endif |
| 21 | |
| 22 | ifeq ($(RECOVERY_TOUCHSCREEN_FLIP_X), true) |
| 23 | LOCAL_CFLAGS += -DRECOVERY_TOUCHSCREEN_FLIP_X |
| 24 | endif |
| 25 | |
| 26 | ifeq ($(RECOVERY_TOUCHSCREEN_FLIP_Y), true) |
| 27 | LOCAL_CFLAGS += -DRECOVERY_TOUCHSCREEN_FLIP_Y |
| 28 | endif |
| 29 | |
| 30 | ifeq ($(RECOVERY_GRAPHICS_USE_LINELENGTH), true) |
| 31 | LOCAL_CFLAGS += -DRECOVERY_GRAPHICS_USE_LINELENGTH |
| 32 | endif |
| 33 | |
| 34 | #Remove the # from the line below to enable event logging |
| 35 | #TWRP_EVENT_LOGGING := true |
| 36 | ifeq ($(TWRP_EVENT_LOGGING), true) |
| 37 | LOCAL_CFLAGS += -D_EVENT_LOGGING |
| 38 | endif |
| 39 | |
| 40 | ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"RGBX_8888") |
| 41 | LOCAL_CFLAGS += -DRECOVERY_RGBX |
| 42 | endif |
| 43 | ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"BGRA_8888") |
| 44 | LOCAL_CFLAGS += -DRECOVERY_BGRA |
| 45 | endif |
| 46 | ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"RGB_565") |
| 47 | LOCAL_CFLAGS += -DRECOVERY_RGB_565 |
| 48 | endif |
| 49 | |
| 50 | ifeq ($(BOARD_HAS_FLIPPED_SCREEN), true) |
| 51 | LOCAL_CFLAGS += -DBOARD_HAS_FLIPPED_SCREEN |
| 52 | endif |
| 53 | |
| 54 | ifneq ($(BOARD_USE_CUSTOM_RECOVERY_FONT),) |
| 55 | LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=$(BOARD_USE_CUSTOM_RECOVERY_FONT) |
| 56 | endif |
| 57 | LOCAL_STATIC_LIBRARY := libpng |
| 58 | LOCAL_MODULE := libminuitwrp |
| 59 | |
| 60 | include $(BUILD_STATIC_LIBRARY) |