blob: 9bda6dd367dec06da4a77d9b07452200967d5362 [file] [log] [blame]
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08001LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
Koushik Duttaaac48542011-11-16 16:47:53 -08004LOCAL_SRC_FILES := events.c resources.c
5ifneq ($(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_Troy51a0e822012-09-05 15:24:24 -040014LOCAL_STATIC_LIBRARY := libpng
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080015LOCAL_MODULE := libminui
16
Doug Zongker9c5efe62012-07-11 13:21:02 -070017# This used to compare against values in double-quotes (which are just
18# ordinary characters in this context). Strip double-quotes from the
19# value so that either will work.
20
21ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070022 LOCAL_CFLAGS += -DRECOVERY_RGBX
23endif
Doug Zongker9c5efe62012-07-11 13:21:02 -070024ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070025 LOCAL_CFLAGS += -DRECOVERY_BGRA
Doug Zongkerbe3e6f12011-01-13 16:43:44 -080026endif
27
Doug Zongkerc560a672012-12-18 16:31:27 -080028ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),)
29 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT)
30else
31 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0
32endif
33
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080034include $(BUILD_STATIC_LIBRARY)