blob: 0a760de9a903a22562b6ed016341f643a0be2873 [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 \
16 system/core/include
Dees_Troy51a0e822012-09-05 15:24:24 -040017
Dees_Troy2673cec2013-04-02 20:22:16 +000018LOCAL_C_INCLUDES += \
19 bootable/recovery/libjpegtwrp
Dees_Troy51a0e822012-09-05 15:24:24 -040020
21ifeq ($(RECOVERY_TOUCHSCREEN_SWAP_XY), true)
22LOCAL_CFLAGS += -DRECOVERY_TOUCHSCREEN_SWAP_XY
23endif
24
25ifeq ($(RECOVERY_TOUCHSCREEN_FLIP_X), true)
26LOCAL_CFLAGS += -DRECOVERY_TOUCHSCREEN_FLIP_X
27endif
28
29ifeq ($(RECOVERY_TOUCHSCREEN_FLIP_Y), true)
30LOCAL_CFLAGS += -DRECOVERY_TOUCHSCREEN_FLIP_Y
31endif
32
33ifeq ($(RECOVERY_GRAPHICS_USE_LINELENGTH), true)
34LOCAL_CFLAGS += -DRECOVERY_GRAPHICS_USE_LINELENGTH
35endif
36
37#Remove the # from the line below to enable event logging
38#TWRP_EVENT_LOGGING := true
39ifeq ($(TWRP_EVENT_LOGGING), true)
40LOCAL_CFLAGS += -D_EVENT_LOGGING
41endif
42
43ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"RGBX_8888")
44 LOCAL_CFLAGS += -DRECOVERY_RGBX
45endif
46ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"BGRA_8888")
47 LOCAL_CFLAGS += -DRECOVERY_BGRA
48endif
49ifeq ($(TARGET_RECOVERY_PIXEL_FORMAT),"RGB_565")
50 LOCAL_CFLAGS += -DRECOVERY_RGB_565
51endif
52
53ifeq ($(BOARD_HAS_FLIPPED_SCREEN), true)
54LOCAL_CFLAGS += -DBOARD_HAS_FLIPPED_SCREEN
55endif
56
57ifneq ($(BOARD_USE_CUSTOM_RECOVERY_FONT),)
58 LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=$(BOARD_USE_CUSTOM_RECOVERY_FONT)
59endif
Dees_Troy66fc8b52013-04-05 19:42:15 +000060LOCAL_SHARED_LIBRARIES += libz libc libcutils
61LOCAL_STATIC_LIBRARIES += libpng libjpegtwrp libpixelflinger_static
Dees_Troy2673cec2013-04-02 20:22:16 +000062LOCAL_MODULE_TAGS := eng
Dees_Troy51a0e822012-09-05 15:24:24 -040063LOCAL_MODULE := libminuitwrp
64
Dees_Troy2673cec2013-04-02 20:22:16 +000065include $(BUILD_SHARED_LIBRARY)