blob: 061bee67ec05c3f39a3580c7b1e28f303cfb90e1 [file] [log] [blame]
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08001LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
Ethan Yonkera33161b2014-11-06 15:11:20 -06004LOCAL_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 +=\
Ethan Yonker304f32f2014-11-07 10:14:05 -060012 external/libpng \
13 external/zlib \
14 system/core/include/pixelflinger
Dees Troy62b75ab2014-05-02 13:20:33 +000015
16ifeq ($(TW_TARGET_USES_QCOM_BSP), true)
17 LOCAL_CFLAGS += -DMSM_BSP
18 ifeq ($(TARGET_PREBUILT_KERNEL),)
19 LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
20 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
21 else
Matt Mower55c75ca2014-08-31 11:30:15 -050022 LOCAL_C_INCLUDES += $(commands_recovery_local_path)/minui/include
Dees Troy62b75ab2014-05-02 13:20:33 +000023 endif
24else
Matt Mower55c75ca2014-08-31 11:30:15 -050025 LOCAL_C_INCLUDES += $(commands_recovery_local_path)/minui/include
Dees Troy62b75ab2014-05-02 13:20:33 +000026endif
27
Dees_Troy51a0e822012-09-05 15:24:24 -040028LOCAL_STATIC_LIBRARY := libpng
Ethan Yonker304f32f2014-11-07 10:14:05 -060029LOCAL_WHOLE_STATIC_LIBRARIES := libpixelflinger_static
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080030LOCAL_MODULE := libminui
31
Doug Zongker9c5efe62012-07-11 13:21:02 -070032# This used to compare against values in double-quotes (which are just
33# ordinary characters in this context). Strip double-quotes from the
34# value so that either will work.
35
36ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070037 LOCAL_CFLAGS += -DRECOVERY_RGBX
38endif
Doug Zongker9c5efe62012-07-11 13:21:02 -070039ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070040 LOCAL_CFLAGS += -DRECOVERY_BGRA
Doug Zongkerbe3e6f12011-01-13 16:43:44 -080041endif
42
Doug Zongkerc560a672012-12-18 16:31:27 -080043ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),)
44 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT)
45else
46 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0
47endif
48
Matt Mower4a5db2d2014-01-20 16:14:25 -060049ifneq ($(TW_BRIGHTNESS_PATH),)
50 LOCAL_CFLAGS += -DTW_BRIGHTNESS_PATH=\"$(TW_BRIGHTNESS_PATH)\"
51endif
52ifneq ($(TW_MAX_BRIGHTNESS),)
53 LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=$(TW_MAX_BRIGHTNESS)
54else
55 LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=255
56endif
57ifneq ($(TW_NO_SCREEN_BLANK),)
58 LOCAL_CFLAGS += -DTW_NO_SCREEN_BLANK
Ethan Chen0940e412013-10-22 13:48:50 -070059endif
60
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080061include $(BUILD_STATIC_LIBRARY)
Dees Troy62b75ab2014-05-02 13:20:33 +000062
63include $(CLEAR_VARS)
64
Ethan Yonkera33161b2014-11-06 15:11:20 -060065LOCAL_SRC_FILES := graphics_overlay.c events.c resources.c
Dees Troy62b75ab2014-05-02 13:20:33 +000066ifneq ($(BOARD_CUSTOM_GRAPHICS),)
67 LOCAL_SRC_FILES += $(BOARD_CUSTOM_GRAPHICS)
68else
69 LOCAL_SRC_FILES += graphics.c
70endif
71
72ifeq ($(TW_TARGET_USES_QCOM_BSP), true)
73 LOCAL_CFLAGS += -DMSM_BSP
74 ifeq ($(TARGET_PREBUILT_KERNEL),)
75 LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
76 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
77 else
Matt Mower55c75ca2014-08-31 11:30:15 -050078 LOCAL_C_INCLUDES += $(commands_recovery_local_path)/minui/include
Dees Troy62b75ab2014-05-02 13:20:33 +000079 endif
80else
Matt Mower55c75ca2014-08-31 11:30:15 -050081 LOCAL_C_INCLUDES += $(commands_recovery_local_path)/minui/include
Dees Troy62b75ab2014-05-02 13:20:33 +000082endif
83
84LOCAL_C_INCLUDES +=\
85 external/libpng\
86 external/zlib
87
88LOCAL_MODULE := libminui
89
90LOCAL_ARM_MODE:= arm
91LOCAL_SHARED_LIBRARIES := libpng libpixelflinger
92# This used to compare against values in double-quotes (which are just
93# ordinary characters in this context). Strip double-quotes from the
94# value so that either will work.
95
96ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888)
97 LOCAL_CFLAGS += -DRECOVERY_RGBX
98endif
99ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888)
100 LOCAL_CFLAGS += -DRECOVERY_BGRA
101endif
102
103ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),)
104 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT)
105else
106 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0
107endif
108
109ifneq ($(TW_BRIGHTNESS_PATH),)
110 LOCAL_CFLAGS += -DTW_BRIGHTNESS_PATH=\"$(TW_BRIGHTNESS_PATH)\"
111endif
112ifneq ($(TW_MAX_BRIGHTNESS),)
113 LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=$(TW_MAX_BRIGHTNESS)
114else
115 LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=255
116endif
117ifneq ($(TW_NO_SCREEN_BLANK),)
118 LOCAL_CFLAGS += -DTW_NO_SCREEN_BLANK
119endif
120
121LOCAL_CFLAGS += -DFASTMMI_FEATURE
122
123include $(BUILD_SHARED_LIBRARY)