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