1# 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 15LOCAL_PATH := $(call my-dir) 16include $(CLEAR_VARS) 17 18LOCAL_SRC_FILES := \ 19 events.cpp \ 20 graphics.cpp \ 21 graphics_adf.cpp \ 22 graphics_drm.cpp \ 23 graphics_fbdev.cpp \ 24 resources.cpp \ 25 26LOCAL_WHOLE_STATIC_LIBRARIES := \ 27 libadf \ 28 libdrm \ 29 libsync_recovery 30 31LOCAL_STATIC_LIBRARIES := \ 32 libpng \ 33 libbase 34 35LOCAL_CFLAGS := -Werror 36LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 37LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 38 39LOCAL_MODULE := libminui 40 41# This used to compare against values in double-quotes (which are just 42# ordinary characters in this context). Strip double-quotes from the 43# value so that either will work. 44 45ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),ABGR_8888) 46 LOCAL_CFLAGS += -DRECOVERY_ABGR 47endif 48ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888) 49 LOCAL_CFLAGS += -DRECOVERY_RGBX 50endif 51ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888) 52 LOCAL_CFLAGS += -DRECOVERY_BGRA 53endif 54 55ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),) 56 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT) 57else 58 LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0 59endif 60 61include $(BUILD_STATIC_LIBRARY) 62 63# Used by OEMs for factory test images. 64include $(CLEAR_VARS) 65LOCAL_MODULE := libminui 66LOCAL_WHOLE_STATIC_LIBRARIES += libminui 67LOCAL_SHARED_LIBRARIES := \ 68 libpng \ 69 libbase 70 71LOCAL_CFLAGS := -Werror 72LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 73LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 74include $(BUILD_SHARED_LIBRARY) 75