blob: 67b81fc6d6f56e2f00c7e5dc58deb1ea99ef2542 [file] [log] [blame]
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08001LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
Elliott Hughes07138192015-04-10 09:40:53 -07004LOCAL_SRC_FILES := \
5 events.cpp \
Elliott Hughes07cfb8f2015-04-10 13:12:05 -07006 graphics.cpp \
7 graphics_adf.cpp \
Stéphane Marchesin1a92c442015-06-29 20:05:48 -07008 graphics_drm.cpp \
Elliott Hughes07cfb8f2015-04-10 13:12:05 -07009 graphics_fbdev.cpp \
10 resources.cpp \
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080011
Greg Hackmann41909dd2014-04-25 10:39:50 -070012LOCAL_WHOLE_STATIC_LIBRARIES += libadf
Stéphane Marchesin1a92c442015-06-29 20:05:48 -070013LOCAL_WHOLE_STATIC_LIBRARIES += libdrm
xinglong.zhuc4fa2c22016-08-05 14:52:22 +080014LOCAL_WHOLE_STATIC_LIBRARIES += libsync_recovery
Trevor Drakefee324f2015-02-26 15:57:58 +000015LOCAL_STATIC_LIBRARIES += libpng
Tianjie Xu7aa88742016-09-28 11:42:17 -070016LOCAL_CFLAGS := -Werror
Greg Hackmann41909dd2014-04-25 10:39:50 -070017
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080018LOCAL_MODULE := libminui
19
Elliott Hughes07138192015-04-10 09:40:53 -070020LOCAL_CLANG := true
Elliott Hughes01a4d082015-03-24 15:21:48 -070021
Doug Zongker9c5efe62012-07-11 13:21:02 -070022# This used to compare against values in double-quotes (which are just
23# ordinary characters in this context). Strip double-quotes from the
24# value so that either will work.
25
Tony Kuofd778e32015-02-05 21:25:56 +080026ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),ABGR_8888)
27 LOCAL_CFLAGS += -DRECOVERY_ABGR
28endif
Doug Zongker9c5efe62012-07-11 13:21:02 -070029ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070030 LOCAL_CFLAGS += -DRECOVERY_RGBX
31endif
Doug Zongker9c5efe62012-07-11 13:21:02 -070032ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070033 LOCAL_CFLAGS += -DRECOVERY_BGRA
Doug Zongkerbe3e6f12011-01-13 16:43:44 -080034endif
35
Doug Zongkerc560a672012-12-18 16:31:27 -080036ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),)
37 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT)
38else
39 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0
40endif
41
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080042include $(BUILD_STATIC_LIBRARY)
Ajay Dudani9905f3a2015-02-04 16:49:44 -080043
44# Used by OEMs for factory test images.
45include $(CLEAR_VARS)
Tao Bao80e46e02015-06-03 10:49:29 -070046LOCAL_CLANG := true
Ajay Dudani9905f3a2015-02-04 16:49:44 -080047LOCAL_MODULE := libminui
48LOCAL_WHOLE_STATIC_LIBRARIES += libminui
49LOCAL_SHARED_LIBRARIES := libpng
Tianjie Xu7aa88742016-09-28 11:42:17 -070050LOCAL_CFLAGS := -Werror
Ajay Dudani9905f3a2015-02-04 16:49:44 -080051include $(BUILD_SHARED_LIBRARY)