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 | |
Elliott Hughes | 01a4d08 | 2015-03-24 15:21:48 -0700 | [diff] [blame] | 4 | LOCAL_SRC_FILES := graphics.c graphics_adf.c graphics_fbdev.c events.c resources.c |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 5 | |
Greg Hackmann | 41909dd | 2014-04-25 10:39:50 -0700 | [diff] [blame] | 6 | LOCAL_WHOLE_STATIC_LIBRARIES += libadf |
Trevor Drake | fee324f | 2015-02-26 15:57:58 +0000 | [diff] [blame] | 7 | LOCAL_STATIC_LIBRARIES += libpng |
Greg Hackmann | 41909dd | 2014-04-25 10:39:50 -0700 | [diff] [blame] | 8 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 9 | LOCAL_MODULE := libminui |
| 10 | |
Elliott Hughes | 01a4d08 | 2015-03-24 15:21:48 -0700 | [diff] [blame] | 11 | LOCAL_CFLAGS := -std=gnu11 |
| 12 | |
Doug Zongker | 9c5efe6 | 2012-07-11 13:21:02 -0700 | [diff] [blame] | 13 | # This used to compare against values in double-quotes (which are just |
| 14 | # ordinary characters in this context). Strip double-quotes from the |
| 15 | # value so that either will work. |
| 16 | |
Tony Kuo | fd778e3 | 2015-02-05 21:25:56 +0800 | [diff] [blame] | 17 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),ABGR_8888) |
| 18 | LOCAL_CFLAGS += -DRECOVERY_ABGR |
| 19 | endif |
Doug Zongker | 9c5efe6 | 2012-07-11 13:21:02 -0700 | [diff] [blame] | 20 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888) |
Michael Ward | 9d1bcdf | 2011-06-22 14:30:34 -0700 | [diff] [blame] | 21 | LOCAL_CFLAGS += -DRECOVERY_RGBX |
| 22 | endif |
Doug Zongker | 9c5efe6 | 2012-07-11 13:21:02 -0700 | [diff] [blame] | 23 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888) |
Michael Ward | 9d1bcdf | 2011-06-22 14:30:34 -0700 | [diff] [blame] | 24 | LOCAL_CFLAGS += -DRECOVERY_BGRA |
Doug Zongker | be3e6f1 | 2011-01-13 16:43:44 -0800 | [diff] [blame] | 25 | endif |
| 26 | |
Doug Zongker | c560a67 | 2012-12-18 16:31:27 -0800 | [diff] [blame] | 27 | ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),) |
| 28 | LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT) |
| 29 | else |
| 30 | LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0 |
| 31 | endif |
| 32 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 33 | include $(BUILD_STATIC_LIBRARY) |
Ajay Dudani | 9905f3a | 2015-02-04 16:49:44 -0800 | [diff] [blame] | 34 | |
| 35 | # Used by OEMs for factory test images. |
| 36 | include $(CLEAR_VARS) |
| 37 | LOCAL_MODULE := libminui |
| 38 | LOCAL_WHOLE_STATIC_LIBRARIES += libminui |
| 39 | LOCAL_SHARED_LIBRARIES := libpng |
| 40 | include $(BUILD_SHARED_LIBRARY) |