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