blob: 5584612df4c7a839e4176a85472b5f987b729150 [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 \
8 graphics_fbdev.cpp \
9 resources.cpp \
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080010
Greg Hackmann41909dd2014-04-25 10:39:50 -070011LOCAL_WHOLE_STATIC_LIBRARIES += libadf
Trevor Drakefee324f2015-02-26 15:57:58 +000012LOCAL_STATIC_LIBRARIES += libpng
Greg Hackmann41909dd2014-04-25 10:39:50 -070013
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080014LOCAL_MODULE := libminui
15
Elliott Hughes07138192015-04-10 09:40:53 -070016LOCAL_CLANG := true
Elliott Hughes01a4d082015-03-24 15:21:48 -070017
Doug Zongker9c5efe62012-07-11 13:21:02 -070018# This used to compare against values in double-quotes (which are just
19# ordinary characters in this context). Strip double-quotes from the
20# value so that either will work.
21
Tony Kuofd778e32015-02-05 21:25:56 +080022ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),ABGR_8888)
23 LOCAL_CFLAGS += -DRECOVERY_ABGR
24endif
Doug Zongker9c5efe62012-07-11 13:21:02 -070025ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070026 LOCAL_CFLAGS += -DRECOVERY_RGBX
27endif
Doug Zongker9c5efe62012-07-11 13:21:02 -070028ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070029 LOCAL_CFLAGS += -DRECOVERY_BGRA
Doug Zongkerbe3e6f12011-01-13 16:43:44 -080030endif
31
Doug Zongkerc560a672012-12-18 16:31:27 -080032ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),)
33 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT)
34else
35 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0
36endif
37
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080038include $(BUILD_STATIC_LIBRARY)
Ajay Dudani9905f3a2015-02-04 16:49:44 -080039
40# Used by OEMs for factory test images.
41include $(CLEAR_VARS)
Tao Bao80e46e02015-06-03 10:49:29 -070042LOCAL_CLANG := true
Ajay Dudani9905f3a2015-02-04 16:49:44 -080043LOCAL_MODULE := libminui
44LOCAL_WHOLE_STATIC_LIBRARIES += libminui
45LOCAL_SHARED_LIBRARIES := libpng
46include $(BUILD_SHARED_LIBRARY)