The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
Koushik Dutta | aac4854 | 2011-11-16 16:47:53 -0800 | [diff] [blame] | 4 | LOCAL_SRC_FILES := events.c resources.c |
| 5 | ifneq ($(BOARD_CUSTOM_GRAPHICS),) |
| 6 | LOCAL_SRC_FILES += $(BOARD_CUSTOM_GRAPHICS) |
| 7 | else |
| 8 | LOCAL_SRC_FILES += graphics.c |
| 9 | endif |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 10 | |
| 11 | LOCAL_C_INCLUDES +=\ |
| 12 | external/libpng\ |
| 13 | external/zlib |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 14 | LOCAL_STATIC_LIBRARY := libpng |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 15 | LOCAL_MODULE := libminui |
| 16 | |
Doug Zongker | 9c5efe6 | 2012-07-11 13:21:02 -0700 | [diff] [blame] | 17 | # 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 | |
| 21 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888) |
Michael Ward | 9d1bcdf | 2011-06-22 14:30:34 -0700 | [diff] [blame] | 22 | LOCAL_CFLAGS += -DRECOVERY_RGBX |
| 23 | endif |
Doug Zongker | 9c5efe6 | 2012-07-11 13:21:02 -0700 | [diff] [blame] | 24 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888) |
Michael Ward | 9d1bcdf | 2011-06-22 14:30:34 -0700 | [diff] [blame] | 25 | LOCAL_CFLAGS += -DRECOVERY_BGRA |
Doug Zongker | be3e6f1 | 2011-01-13 16:43:44 -0800 | [diff] [blame] | 26 | endif |
| 27 | |
Doug Zongker | c560a67 | 2012-12-18 16:31:27 -0800 | [diff] [blame] | 28 | ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),) |
| 29 | LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT) |
| 30 | else |
| 31 | LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0 |
| 32 | endif |
| 33 | |
Matt Mower | 4a5db2d | 2014-01-20 16:14:25 -0600 | [diff] [blame] | 34 | ifneq ($(TW_BRIGHTNESS_PATH),) |
| 35 | LOCAL_CFLAGS += -DTW_BRIGHTNESS_PATH=\"$(TW_BRIGHTNESS_PATH)\" |
| 36 | endif |
| 37 | ifneq ($(TW_MAX_BRIGHTNESS),) |
| 38 | LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=$(TW_MAX_BRIGHTNESS) |
| 39 | else |
| 40 | LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=255 |
| 41 | endif |
| 42 | ifneq ($(TW_NO_SCREEN_BLANK),) |
| 43 | LOCAL_CFLAGS += -DTW_NO_SCREEN_BLANK |
Ethan Chen | 0940e41 | 2013-10-22 13:48:50 -0700 | [diff] [blame] | 44 | endif |
| 45 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 46 | include $(BUILD_STATIC_LIBRARY) |