blob: 281f64912532b73b2758d4c471a9829a7149d777 [file] [log] [blame]
Tao Bao0ecbd762017-01-16 21:16:58 -08001# Copyright (C) 2007 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080015LOCAL_PATH := $(call my-dir)
16include $(CLEAR_VARS)
17
Elliott Hughes07138192015-04-10 09:40:53 -070018LOCAL_SRC_FILES := \
19 events.cpp \
Elliott Hughes07cfb8f2015-04-10 13:12:05 -070020 graphics.cpp \
21 graphics_adf.cpp \
Stéphane Marchesin1a92c442015-06-29 20:05:48 -070022 graphics_drm.cpp \
Elliott Hughes07cfb8f2015-04-10 13:12:05 -070023 graphics_fbdev.cpp \
24 resources.cpp \
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080025
Tao Bao0ecbd762017-01-16 21:16:58 -080026LOCAL_WHOLE_STATIC_LIBRARIES := \
27 libadf \
28 libdrm \
29 libsync_recovery
30
31LOCAL_STATIC_LIBRARIES := libpng
Tianjie Xu17e316c2016-09-28 11:42:17 -070032LOCAL_CFLAGS := -Werror
Tao Bao0ecbd762017-01-16 21:16:58 -080033LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
34LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
Greg Hackmann41909dd2014-04-25 10:39:50 -070035
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080036LOCAL_MODULE := libminui
37
Doug Zongker9c5efe62012-07-11 13:21:02 -070038# This used to compare against values in double-quotes (which are just
39# ordinary characters in this context). Strip double-quotes from the
40# value so that either will work.
41
Tony Kuofd778e32015-02-05 21:25:56 +080042ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),ABGR_8888)
43 LOCAL_CFLAGS += -DRECOVERY_ABGR
44endif
Doug Zongker9c5efe62012-07-11 13:21:02 -070045ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070046 LOCAL_CFLAGS += -DRECOVERY_RGBX
47endif
Doug Zongker9c5efe62012-07-11 13:21:02 -070048ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888)
Michael Ward9d1bcdf2011-06-22 14:30:34 -070049 LOCAL_CFLAGS += -DRECOVERY_BGRA
Doug Zongkerbe3e6f12011-01-13 16:43:44 -080050endif
51
Doug Zongkerc560a672012-12-18 16:31:27 -080052ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),)
53 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT)
54else
55 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0
56endif
57
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080058include $(BUILD_STATIC_LIBRARY)
Ajay Dudani9905f3a2015-02-04 16:49:44 -080059
60# Used by OEMs for factory test images.
61include $(CLEAR_VARS)
62LOCAL_MODULE := libminui
63LOCAL_WHOLE_STATIC_LIBRARIES += libminui
64LOCAL_SHARED_LIBRARIES := libpng
Tianjie Xu17e316c2016-09-28 11:42:17 -070065LOCAL_CFLAGS := -Werror
Tao Bao0ecbd762017-01-16 21:16:58 -080066LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
67LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
Ajay Dudani9905f3a2015-02-04 16:49:44 -080068include $(BUILD_SHARED_LIBRARY)