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