blob: 5cc84ac7ac538da324df7d0c5f37742425eafd05 [file] [log] [blame]
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08001LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
Doug Zongker830b3e32014-03-11 13:22:04 -07004LOCAL_SRC_FILES := graphics.c graphics_fbdev.c events.c resources.c
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08005
6LOCAL_C_INCLUDES +=\
7 external/libpng\
8 external/zlib
9
10LOCAL_MODULE := libminui
11
Doug Zongker9c5efe62012-07-11 13:21:02 -070012# This used to compare against values in double-quotes (which are just
13# ordinary characters in this context). Strip double-quotes from the
14# value so that either will work.
15
16ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070017 LOCAL_CFLAGS += -DRECOVERY_RGBX
18endif
Doug Zongker9c5efe62012-07-11 13:21:02 -070019ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070020 LOCAL_CFLAGS += -DRECOVERY_BGRA
Doug Zongkerbe3e6f12011-01-13 16:43:44 -080021endif
22
Doug Zongkerc560a672012-12-18 16:31:27 -080023ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),)
24 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT)
25else
26 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0
27endif
28
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080029include $(BUILD_STATIC_LIBRARY)