blob: ddee165f9ce07cb906104c7e4707dd6f4c52a938 [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
7LOCAL_C_INCLUDES +=\
8 external/libpng\
9 external/zlib
10
Greg Hackmann41909dd2014-04-25 10:39:50 -070011LOCAL_WHOLE_STATIC_LIBRARIES += libadf
12
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080013LOCAL_MODULE := libminui
14
Doug Zongker9c5efe62012-07-11 13:21:02 -070015# This used to compare against values in double-quotes (which are just
16# ordinary characters in this context). Strip double-quotes from the
17# value so that either will work.
18
Tony Kuofd778e32015-02-05 21:25:56 +080019ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),ABGR_8888)
20 LOCAL_CFLAGS += -DRECOVERY_ABGR
21endif
Doug Zongker9c5efe62012-07-11 13:21:02 -070022ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070023 LOCAL_CFLAGS += -DRECOVERY_RGBX
24endif
Doug Zongker9c5efe62012-07-11 13:21:02 -070025ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070026 LOCAL_CFLAGS += -DRECOVERY_BGRA
Doug Zongkerbe3e6f12011-01-13 16:43:44 -080027endif
28
Doug Zongkerc560a672012-12-18 16:31:27 -080029ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),)
30 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT)
31else
32 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0
33endif
34
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080035include $(BUILD_STATIC_LIBRARY)
Ajay Dudani9905f3a2015-02-04 16:49:44 -080036
37# Used by OEMs for factory test images.
38include $(CLEAR_VARS)
39LOCAL_MODULE := libminui
40LOCAL_WHOLE_STATIC_LIBRARIES += libminui
41LOCAL_SHARED_LIBRARIES := libpng
42include $(BUILD_SHARED_LIBRARY)