blob: 9b2e09b70e646a2307ddd18a76d9e8ed69874c53 [file] [log] [blame]
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08001LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
Greg Hackmann41909dd2014-04-25 10:39:50 -07004LOCAL_SRC_FILES := graphics.c graphics_adf.c graphics_fbdev.c events.c \
5 resources.c
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08006
Greg Hackmann41909dd2014-04-25 10:39:50 -07007LOCAL_WHOLE_STATIC_LIBRARIES += libadf
Trevor Drakefee324f2015-02-26 15:57:58 +00008LOCAL_STATIC_LIBRARIES += libpng
Greg Hackmann41909dd2014-04-25 10:39:50 -07009
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080010LOCAL_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
Tony Kuofd778e32015-02-05 21:25:56 +080016ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),ABGR_8888)
17 LOCAL_CFLAGS += -DRECOVERY_ABGR
18endif
Doug Zongker9c5efe62012-07-11 13:21:02 -070019ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070020 LOCAL_CFLAGS += -DRECOVERY_RGBX
21endif
Doug Zongker9c5efe62012-07-11 13:21:02 -070022ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070023 LOCAL_CFLAGS += -DRECOVERY_BGRA
Doug Zongkerbe3e6f12011-01-13 16:43:44 -080024endif
25
Doug Zongkerc560a672012-12-18 16:31:27 -080026ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),)
27 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT)
28else
29 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0
30endif
31
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080032include $(BUILD_STATIC_LIBRARY)
Ajay Dudani9905f3a2015-02-04 16:49:44 -080033
34# Used by OEMs for factory test images.
35include $(CLEAR_VARS)
36LOCAL_MODULE := libminui
37LOCAL_WHOLE_STATIC_LIBRARIES += libminui
38LOCAL_SHARED_LIBRARIES := libpng
39include $(BUILD_SHARED_LIBRARY)