2017-01-17 06:16:58 +01:00
|
|
|
# Copyright (C) 2007 The Android Open Source Project
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2015-04-10 18:40:53 +02:00
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
events.cpp \
|
2015-04-10 22:12:05 +02:00
|
|
|
graphics.cpp \
|
|
|
|
graphics_adf.cpp \
|
2015-06-30 05:05:48 +02:00
|
|
|
graphics_drm.cpp \
|
2015-04-10 22:12:05 +02:00
|
|
|
graphics_fbdev.cpp \
|
|
|
|
resources.cpp \
|
2009-03-04 04:28:42 +01:00
|
|
|
|
2017-01-17 06:16:58 +01:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := \
|
|
|
|
libadf \
|
|
|
|
libdrm \
|
|
|
|
libsync_recovery
|
|
|
|
|
2017-03-22 20:27:26 +01:00
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
|
|
libpng \
|
|
|
|
libbase
|
|
|
|
|
2017-08-28 23:15:07 +02:00
|
|
|
LOCAL_CFLAGS := -Wall -Werror
|
2017-01-17 06:16:58 +01:00
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
|
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
2014-04-25 19:39:50 +02:00
|
|
|
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_MODULE := libminui
|
|
|
|
|
2012-07-11 22:21:02 +02:00
|
|
|
# This used to compare against values in double-quotes (which are just
|
|
|
|
# ordinary characters in this context). Strip double-quotes from the
|
|
|
|
# value so that either will work.
|
|
|
|
|
2015-02-05 14:25:56 +01:00
|
|
|
ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),ABGR_8888)
|
|
|
|
LOCAL_CFLAGS += -DRECOVERY_ABGR
|
|
|
|
endif
|
2012-07-11 22:21:02 +02:00
|
|
|
ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888)
|
2011-06-22 23:30:34 +02:00
|
|
|
LOCAL_CFLAGS += -DRECOVERY_RGBX
|
|
|
|
endif
|
2012-07-11 22:21:02 +02:00
|
|
|
ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888)
|
2011-06-22 23:30:34 +02:00
|
|
|
LOCAL_CFLAGS += -DRECOVERY_BGRA
|
2011-01-14 01:43:44 +01:00
|
|
|
endif
|
|
|
|
|
2012-12-19 01:31:27 +01:00
|
|
|
ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),)
|
|
|
|
LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT)
|
|
|
|
else
|
|
|
|
LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0
|
|
|
|
endif
|
|
|
|
|
2009-03-04 04:28:42 +01:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
2015-02-05 01:49:44 +01:00
|
|
|
|
|
|
|
# Used by OEMs for factory test images.
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := libminui
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += libminui
|
2017-03-22 20:27:26 +01:00
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libpng \
|
|
|
|
libbase
|
|
|
|
|
2017-08-28 23:15:07 +02:00
|
|
|
LOCAL_CFLAGS := -Wall -Werror
|
2017-01-17 06:16:58 +01:00
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
|
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
2015-02-05 01:49:44 +01:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|