blob: 704e54177ecd2976cc1f960e163427490943808b [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
Matt Mower4a5db2d2014-01-20 16:14:25 -060034ifneq ($(TW_BRIGHTNESS_PATH),)
35 LOCAL_CFLAGS += -DTW_BRIGHTNESS_PATH=\"$(TW_BRIGHTNESS_PATH)\"
36endif
37ifneq ($(TW_MAX_BRIGHTNESS),)
38 LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=$(TW_MAX_BRIGHTNESS)
39else
40 LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=255
41endif
42ifneq ($(TW_NO_SCREEN_BLANK),)
43 LOCAL_CFLAGS += -DTW_NO_SCREEN_BLANK
Ethan Chen0940e412013-10-22 13:48:50 -070044endif
45
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080046include $(BUILD_STATIC_LIBRARY)