blob: 3057f452c577e5928c8cf1934cd825dc0f45d23b [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
Trevor Drakefee324f2015-02-26 15:57:58 +000014LOCAL_STATIC_LIBRARIES += libpng
Greg Hackmann41909dd2014-04-25 10:39:50 -070015
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080016LOCAL_MODULE := libminui
17
Elliott Hughes07138192015-04-10 09:40:53 -070018LOCAL_CLANG := true
Elliott Hughes01a4d082015-03-24 15:21:48 -070019
Doug Zongker9c5efe62012-07-11 13:21:02 -070020# 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
Tony Kuofd778e32015-02-05 21:25:56 +080024ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),ABGR_8888)
25 LOCAL_CFLAGS += -DRECOVERY_ABGR
26endif
Doug Zongker9c5efe62012-07-11 13:21:02 -070027ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070028 LOCAL_CFLAGS += -DRECOVERY_RGBX
29endif
Doug Zongker9c5efe62012-07-11 13:21:02 -070030ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070031 LOCAL_CFLAGS += -DRECOVERY_BGRA
Doug Zongkerbe3e6f12011-01-13 16:43:44 -080032endif
33
Doug Zongkerc560a672012-12-18 16:31:27 -080034ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),)
35 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT)
36else
37 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0
38endif
39
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080040include $(BUILD_STATIC_LIBRARY)
Ajay Dudani9905f3a2015-02-04 16:49:44 -080041
42# Used by OEMs for factory test images.
43include $(CLEAR_VARS)
Tao Bao80e46e02015-06-03 10:49:29 -070044LOCAL_CLANG := true
Ajay Dudani9905f3a2015-02-04 16:49:44 -080045LOCAL_MODULE := libminui
46LOCAL_WHOLE_STATIC_LIBRARIES += libminui
47LOCAL_SHARED_LIBRARIES := libpng
48include $(BUILD_SHARED_LIBRARY)