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