blob: 6e5f45f0b446db2ba6d666cb97be846a2f791d0e [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
55ifneq ($(BOARD_USE_CUSTOM_RECOVERY_FONT),)
56 LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=$(BOARD_USE_CUSTOM_RECOVERY_FONT)
57endif
Dees_Troy930bf012013-08-10 22:19:03 +000058LOCAL_SHARED_LIBRARIES += libz libc libcutils libjpeg
59LOCAL_STATIC_LIBRARIES += libpng libpixelflinger_static
Dees_Troy2673cec2013-04-02 20:22:16 +000060LOCAL_MODULE_TAGS := eng
Dees_Troy51a0e822012-09-05 15:24:24 -040061LOCAL_MODULE := libminuitwrp
62
Dees_Troy930bf012013-08-10 22:19:03 +000063include $(BUILD_SHARED_LIBRARY)