blob: e1bf76ef1e22f1130012a2f65d1bc2399b8e4d5c [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_Troy2673cec2013-04-02 20:22:16 +000019LOCAL_C_INCLUDES += \
20 bootable/recovery/libjpegtwrp
Dees_Troy51a0e822012-09-05 15:24:24 -040021
22ifeq ($(RECOVERY_TOUCHSCREEN_SWAP_XY), true)
23LOCAL_CFLAGS += -DRECOVERY_TOUCHSCREEN_SWAP_XY
24endif
25
26ifeq ($(RECOVERY_TOUCHSCREEN_FLIP_X), true)
27LOCAL_CFLAGS += -DRECOVERY_TOUCHSCREEN_FLIP_X
28endif
29
30ifeq ($(RECOVERY_TOUCHSCREEN_FLIP_Y), true)
31LOCAL_CFLAGS += -DRECOVERY_TOUCHSCREEN_FLIP_Y
32endif
33
34ifeq ($(RECOVERY_GRAPHICS_USE_LINELENGTH), true)
35LOCAL_CFLAGS += -DRECOVERY_GRAPHICS_USE_LINELENGTH
36endif
37
38#Remove the # from the line below to enable event logging
39#TWRP_EVENT_LOGGING := true
40ifeq ($(TWRP_EVENT_LOGGING), true)
41LOCAL_CFLAGS += -D_EVENT_LOGGING
42endif
43
44ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"RGBX_8888")
45 LOCAL_CFLAGS += -DRECOVERY_RGBX
46endif
47ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"BGRA_8888")
48 LOCAL_CFLAGS += -DRECOVERY_BGRA
49endif
50ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"RGB_565")
51 LOCAL_CFLAGS += -DRECOVERY_RGB_565
52endif
53
54ifeq ($(BOARD_HAS_FLIPPED_SCREEN), true)
55LOCAL_CFLAGS += -DBOARD_HAS_FLIPPED_SCREEN
56endif
57
58ifneq ($(BOARD_USE_CUSTOM_RECOVERY_FONT),)
59 LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=$(BOARD_USE_CUSTOM_RECOVERY_FONT)
60endif
Dees_Troy930bf012013-08-10 22:19:03 +000061LOCAL_SHARED_LIBRARIES += libz libc libcutils libjpeg
62LOCAL_STATIC_LIBRARIES += libpng libpixelflinger_static
Dees_Troy2673cec2013-04-02 20:22:16 +000063LOCAL_MODULE_TAGS := eng
Dees_Troy51a0e822012-09-05 15:24:24 -040064LOCAL_MODULE := libminuitwrp
65
Dees_Troy930bf012013-08-10 22:19:03 +000066include $(BUILD_SHARED_LIBRARY)