blob: 380ec2bfd0017bcb80db6d8331477370d76c89b9 [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
Greg Hackmann41909dd2014-04-25 10:39:50 -070016
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080017LOCAL_MODULE := libminui
18
Elliott Hughes07138192015-04-10 09:40:53 -070019LOCAL_CLANG := true
Elliott Hughes01a4d082015-03-24 15:21:48 -070020
Doug Zongker9c5efe62012-07-11 13:21:02 -070021# This used to compare against values in double-quotes (which are just
22# ordinary characters in this context). Strip double-quotes from the
23# value so that either will work.
24
Tony Kuofd778e32015-02-05 21:25:56 +080025ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),ABGR_8888)
26 LOCAL_CFLAGS += -DRECOVERY_ABGR
27endif
Doug Zongker9c5efe62012-07-11 13:21:02 -070028ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070029 LOCAL_CFLAGS += -DRECOVERY_RGBX
30endif
Doug Zongker9c5efe62012-07-11 13:21:02 -070031ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070032 LOCAL_CFLAGS += -DRECOVERY_BGRA
Doug Zongkerbe3e6f12011-01-13 16:43:44 -080033endif
34
Doug Zongkerc560a672012-12-18 16:31:27 -080035ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),)
36 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT)
37else
38 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0
39endif
40
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080041include $(BUILD_STATIC_LIBRARY)
Ajay Dudani9905f3a2015-02-04 16:49:44 -080042
43# Used by OEMs for factory test images.
44include $(CLEAR_VARS)
Tao Bao80e46e02015-06-03 10:49:29 -070045LOCAL_CLANG := true
Ajay Dudani9905f3a2015-02-04 16:49:44 -080046LOCAL_MODULE := libminui
47LOCAL_WHOLE_STATIC_LIBRARIES += libminui
48LOCAL_SHARED_LIBRARIES := libpng
49include $(BUILD_SHARED_LIBRARY)