blob: 8c8ffaa88489a4e78d419b81b37256354b5b9cdc [file] [log] [blame]
Dees_Troy51a0e822012-09-05 15:24:24 -04001LOCAL_PATH := $(call my-dir)
Dees_Troy2673cec2013-04-02 20:22:16 +00002
Dees_Troy51a0e822012-09-05 15:24:24 -04003include $(CLEAR_VARS)
4
Dees_Troy86382ca2013-01-15 16:54:59 +00005LOCAL_SRC_FILES := events.c resources.c
6
7ifneq ($(TW_BOARD_CUSTOM_GRAPHICS),)
8 LOCAL_SRC_FILES += $(TW_BOARD_CUSTOM_GRAPHICS)
9else
10 LOCAL_SRC_FILES += graphics.c
11endif
Dees_Troy51a0e822012-09-05 15:24:24 -040012
Dees_Troy2673cec2013-04-02 20:22:16 +000013LOCAL_C_INCLUDES += \
14 external/libpng \
15 external/zlib \
Dees_Troy930bf012013-08-10 22:19:03 +000016 system/core/include \
17 external/jpeg
Dees_Troy51a0e822012-09-05 15:24:24 -040018
Dees_Troy51a0e822012-09-05 15:24:24 -040019ifeq ($(RECOVERY_TOUCHSCREEN_SWAP_XY), true)
20LOCAL_CFLAGS += -DRECOVERY_TOUCHSCREEN_SWAP_XY
21endif
22
23ifeq ($(RECOVERY_TOUCHSCREEN_FLIP_X), true)
24LOCAL_CFLAGS += -DRECOVERY_TOUCHSCREEN_FLIP_X
25endif
26
27ifeq ($(RECOVERY_TOUCHSCREEN_FLIP_Y), true)
28LOCAL_CFLAGS += -DRECOVERY_TOUCHSCREEN_FLIP_Y
29endif
30
31ifeq ($(RECOVERY_GRAPHICS_USE_LINELENGTH), true)
32LOCAL_CFLAGS += -DRECOVERY_GRAPHICS_USE_LINELENGTH
33endif
34
35#Remove the # from the line below to enable event logging
36#TWRP_EVENT_LOGGING := true
37ifeq ($(TWRP_EVENT_LOGGING), true)
38LOCAL_CFLAGS += -D_EVENT_LOGGING
39endif
40
41ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"RGBX_8888")
42 LOCAL_CFLAGS += -DRECOVERY_RGBX
43endif
44ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"BGRA_8888")
45 LOCAL_CFLAGS += -DRECOVERY_BGRA
46endif
47ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"RGB_565")
48 LOCAL_CFLAGS += -DRECOVERY_RGB_565
49endif
50
51ifeq ($(BOARD_HAS_FLIPPED_SCREEN), true)
52LOCAL_CFLAGS += -DBOARD_HAS_FLIPPED_SCREEN
53endif
54
Ibrahim Awwal2e9cb012014-01-04 12:38:26 -080055ifeq ($(TW_IGNORE_MAJOR_AXIS_0), true)
56LOCAL_CFLAGS += -DTW_IGNORE_MAJOR_AXIS_0
57endif
58
Dees_Troy51a0e822012-09-05 15:24:24 -040059ifneq ($(BOARD_USE_CUSTOM_RECOVERY_FONT),)
60 LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=$(BOARD_USE_CUSTOM_RECOVERY_FONT)
61endif
Dees_Troy930bf012013-08-10 22:19:03 +000062LOCAL_SHARED_LIBRARIES += libz libc libcutils libjpeg
63LOCAL_STATIC_LIBRARIES += libpng libpixelflinger_static
Dees_Troy2673cec2013-04-02 20:22:16 +000064LOCAL_MODULE_TAGS := eng
Dees_Troy51a0e822012-09-05 15:24:24 -040065LOCAL_MODULE := libminuitwrp
66
Dees_Troy930bf012013-08-10 22:19:03 +000067include $(BUILD_SHARED_LIBRARY)