blob: 53d072face80411eb585ee1ea7b30665da52528d [file] [log] [blame]
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08001LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
Elliott Hughes01a4d082015-03-24 15:21:48 -07004LOCAL_SRC_FILES := graphics.c graphics_adf.c graphics_fbdev.c events.c resources.c
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08005
Greg Hackmann41909dd2014-04-25 10:39:50 -07006LOCAL_WHOLE_STATIC_LIBRARIES += libadf
Trevor Drakefee324f2015-02-26 15:57:58 +00007LOCAL_STATIC_LIBRARIES += libpng
Greg Hackmann41909dd2014-04-25 10:39:50 -07008
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08009LOCAL_MODULE := libminui
10
Elliott Hughes01a4d082015-03-24 15:21:48 -070011LOCAL_CFLAGS := -std=gnu11
12
Doug Zongker9c5efe62012-07-11 13:21:02 -070013# 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 Kuofd778e32015-02-05 21:25:56 +080017ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),ABGR_8888)
18 LOCAL_CFLAGS += -DRECOVERY_ABGR
19endif
Doug Zongker9c5efe62012-07-11 13:21:02 -070020ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070021 LOCAL_CFLAGS += -DRECOVERY_RGBX
22endif
Doug Zongker9c5efe62012-07-11 13:21:02 -070023ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070024 LOCAL_CFLAGS += -DRECOVERY_BGRA
Doug Zongkerbe3e6f12011-01-13 16:43:44 -080025endif
26
Doug Zongkerc560a672012-12-18 16:31:27 -080027ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),)
28 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT)
29else
30 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0
31endif
32
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080033include $(BUILD_STATIC_LIBRARY)
Ajay Dudani9905f3a2015-02-04 16:49:44 -080034
35# Used by OEMs for factory test images.
36include $(CLEAR_VARS)
37LOCAL_MODULE := libminui
38LOCAL_WHOLE_STATIC_LIBRARIES += libminui
39LOCAL_SHARED_LIBRARIES := libpng
40include $(BUILD_SHARED_LIBRARY)