1LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_SRC_FILES := \
5    events.cpp \
6    graphics.cpp \
7    graphics_adf.cpp \
8    graphics_drm.cpp \
9    graphics_fbdev.cpp \
10    resources.cpp \
11
12LOCAL_WHOLE_STATIC_LIBRARIES += libadf
13LOCAL_WHOLE_STATIC_LIBRARIES += libdrm
14LOCAL_STATIC_LIBRARIES += libpng
15
16LOCAL_MODULE := libminui
17
18LOCAL_CLANG := true
19
20# This used to compare against values in double-quotes (which are just
21# ordinary characters in this context).  Strip double-quotes from the
22# value so that either will work.
23
24ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),ABGR_8888)
25  LOCAL_CFLAGS += -DRECOVERY_ABGR
26endif
27ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888)
28  LOCAL_CFLAGS += -DRECOVERY_RGBX
29endif
30ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888)
31  LOCAL_CFLAGS += -DRECOVERY_BGRA
32endif
33
34ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),)
35  LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT)
36else
37  LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0
38endif
39
40include $(BUILD_STATIC_LIBRARY)
41
42# Used by OEMs for factory test images.
43include $(CLEAR_VARS)
44LOCAL_MODULE := libminui
45LOCAL_WHOLE_STATIC_LIBRARIES += libminui
46LOCAL_SHARED_LIBRARIES := libpng
47include $(BUILD_SHARED_LIBRARY)
48