blob: e8c1b9ccfb182a601aa96044e0e49890f9eb2d4e [file] [log] [blame]
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08001LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
Dees Troy62b75ab2014-05-02 13:20:33 +00004LOCAL_SRC_FILES := graphics_overlay.c events.c resources.c
Koushik Duttaaac48542011-11-16 16:47:53 -08005ifneq ($(BOARD_CUSTOM_GRAPHICS),)
6 LOCAL_SRC_FILES += $(BOARD_CUSTOM_GRAPHICS)
7else
8 LOCAL_SRC_FILES += graphics.c
9endif
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080010
11LOCAL_C_INCLUDES +=\
12 external/libpng\
13 external/zlib
Dees Troy62b75ab2014-05-02 13:20:33 +000014
15ifeq ($(TW_TARGET_USES_QCOM_BSP), true)
16 LOCAL_CFLAGS += -DMSM_BSP
17 ifeq ($(TARGET_PREBUILT_KERNEL),)
18 LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
19 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
20 else
21 LOCAL_C_INCLUDES += bootable/recovery/minui/include
22 endif
23else
24 LOCAL_C_INCLUDES += bootable/recovery/minui/include
25endif
26
Dees_Troy51a0e822012-09-05 15:24:24 -040027LOCAL_STATIC_LIBRARY := libpng
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080028LOCAL_MODULE := libminui
29
Doug Zongker9c5efe62012-07-11 13:21:02 -070030# This used to compare against values in double-quotes (which are just
31# ordinary characters in this context). Strip double-quotes from the
32# value so that either will work.
33
34ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070035 LOCAL_CFLAGS += -DRECOVERY_RGBX
36endif
Doug Zongker9c5efe62012-07-11 13:21:02 -070037ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070038 LOCAL_CFLAGS += -DRECOVERY_BGRA
Doug Zongkerbe3e6f12011-01-13 16:43:44 -080039endif
40
Doug Zongkerc560a672012-12-18 16:31:27 -080041ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),)
42 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT)
43else
44 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0
45endif
46
Matt Mower4a5db2d2014-01-20 16:14:25 -060047ifneq ($(TW_BRIGHTNESS_PATH),)
48 LOCAL_CFLAGS += -DTW_BRIGHTNESS_PATH=\"$(TW_BRIGHTNESS_PATH)\"
49endif
50ifneq ($(TW_MAX_BRIGHTNESS),)
51 LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=$(TW_MAX_BRIGHTNESS)
52else
53 LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=255
54endif
55ifneq ($(TW_NO_SCREEN_BLANK),)
56 LOCAL_CFLAGS += -DTW_NO_SCREEN_BLANK
Ethan Chen0940e412013-10-22 13:48:50 -070057endif
58
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080059include $(BUILD_STATIC_LIBRARY)
Dees Troy62b75ab2014-05-02 13:20:33 +000060
61include $(CLEAR_VARS)
62
63LOCAL_SRC_FILES := graphics_overlay.c events.c resources.c
64ifneq ($(BOARD_CUSTOM_GRAPHICS),)
65 LOCAL_SRC_FILES += $(BOARD_CUSTOM_GRAPHICS)
66else
67 LOCAL_SRC_FILES += graphics.c
68endif
69
70ifeq ($(TW_TARGET_USES_QCOM_BSP), true)
71 LOCAL_CFLAGS += -DMSM_BSP
72 ifeq ($(TARGET_PREBUILT_KERNEL),)
73 LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
74 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
75 else
76 LOCAL_C_INCLUDES += bootable/recovery/minui/include
77 endif
78else
79 LOCAL_C_INCLUDES += bootable/recovery/minui/include
80endif
81
82LOCAL_C_INCLUDES +=\
83 external/libpng\
84 external/zlib
85
86LOCAL_MODULE := libminui
87
88LOCAL_ARM_MODE:= arm
89LOCAL_SHARED_LIBRARIES := libpng libpixelflinger
90# This used to compare against values in double-quotes (which are just
91# ordinary characters in this context). Strip double-quotes from the
92# value so that either will work.
93
94ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888)
95 LOCAL_CFLAGS += -DRECOVERY_RGBX
96endif
97ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888)
98 LOCAL_CFLAGS += -DRECOVERY_BGRA
99endif
100
101ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),)
102 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT)
103else
104 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0
105endif
106
107ifneq ($(TW_BRIGHTNESS_PATH),)
108 LOCAL_CFLAGS += -DTW_BRIGHTNESS_PATH=\"$(TW_BRIGHTNESS_PATH)\"
109endif
110ifneq ($(TW_MAX_BRIGHTNESS),)
111 LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=$(TW_MAX_BRIGHTNESS)
112else
113 LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=255
114endif
115ifneq ($(TW_NO_SCREEN_BLANK),)
116 LOCAL_CFLAGS += -DTW_NO_SCREEN_BLANK
117endif
118
119LOCAL_CFLAGS += -DFASTMMI_FEATURE
120
121include $(BUILD_SHARED_LIBRARY)