Tao Bao | 0ecbd76 | 2017-01-16 21:16:58 -0800 | [diff] [blame] | 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 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 15 | LOCAL_PATH := $(call my-dir) |
Tao Bao | 99f0d9e | 2016-10-13 12:46:38 -0700 | [diff] [blame] | 16 | |
| 17 | # libminui (static library) |
| 18 | # =============================== |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 19 | include $(CLEAR_VARS) |
| 20 | |
Elliott Hughes | 0713819 | 2015-04-10 09:40:53 -0700 | [diff] [blame] | 21 | LOCAL_SRC_FILES := \ |
| 22 | events.cpp \ |
Elliott Hughes | 07cfb8f | 2015-04-10 13:12:05 -0700 | [diff] [blame] | 23 | graphics.cpp \ |
| 24 | graphics_adf.cpp \ |
Stéphane Marchesin | 1a92c44 | 2015-06-29 20:05:48 -0700 | [diff] [blame] | 25 | graphics_drm.cpp \ |
Elliott Hughes | 07cfb8f | 2015-04-10 13:12:05 -0700 | [diff] [blame] | 26 | graphics_fbdev.cpp \ |
| 27 | resources.cpp \ |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 28 | |
Tao Bao | 0ecbd76 | 2017-01-16 21:16:58 -0800 | [diff] [blame] | 29 | LOCAL_WHOLE_STATIC_LIBRARIES := \ |
| 30 | libadf \ |
Dan Willemsen | 2ee9266 | 2017-10-19 22:29:50 -0700 | [diff] [blame] | 31 | libdrm \ |
Tao Bao | 0ecbd76 | 2017-01-16 21:16:58 -0800 | [diff] [blame] | 32 | libsync_recovery |
| 33 | |
Tianjie Xu | 2078b22 | 2017-03-22 12:27:26 -0700 | [diff] [blame] | 34 | LOCAL_STATIC_LIBRARIES := \ |
| 35 | libpng \ |
| 36 | libbase |
| 37 | |
Tianjie Xu | c89d1e7 | 2017-08-28 14:15:07 -0700 | [diff] [blame] | 38 | LOCAL_CFLAGS := -Wall -Werror |
Tao Bao | 0ecbd76 | 2017-01-16 21:16:58 -0800 | [diff] [blame] | 39 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
| 40 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
Greg Hackmann | 41909dd | 2014-04-25 10:39:50 -0700 | [diff] [blame] | 41 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 42 | LOCAL_MODULE := libminui |
| 43 | |
Doug Zongker | 9c5efe6 | 2012-07-11 13:21:02 -0700 | [diff] [blame] | 44 | # This used to compare against values in double-quotes (which are just |
| 45 | # ordinary characters in this context). Strip double-quotes from the |
| 46 | # value so that either will work. |
| 47 | |
Tony Kuo | fd778e3 | 2015-02-05 21:25:56 +0800 | [diff] [blame] | 48 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),ABGR_8888) |
| 49 | LOCAL_CFLAGS += -DRECOVERY_ABGR |
| 50 | endif |
Doug Zongker | 9c5efe6 | 2012-07-11 13:21:02 -0700 | [diff] [blame] | 51 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888) |
Michael Ward | 9d1bcdf | 2011-06-22 14:30:34 -0700 | [diff] [blame] | 52 | LOCAL_CFLAGS += -DRECOVERY_RGBX |
| 53 | endif |
Arnav Gupta | fab941c | 2016-02-06 22:15:14 +0530 | [diff] [blame] | 54 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBA_8888) |
| 55 | LOCAL_CFLAGS += -DRECOVERY_RGBX |
| 56 | endif |
Doug Zongker | 9c5efe6 | 2012-07-11 13:21:02 -0700 | [diff] [blame] | 57 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888) |
Michael Ward | 9d1bcdf | 2011-06-22 14:30:34 -0700 | [diff] [blame] | 58 | LOCAL_CFLAGS += -DRECOVERY_BGRA |
Doug Zongker | be3e6f1 | 2011-01-13 16:43:44 -0800 | [diff] [blame] | 59 | endif |
| 60 | |
Doug Zongker | c560a67 | 2012-12-18 16:31:27 -0800 | [diff] [blame] | 61 | ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),) |
| 62 | LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT) |
| 63 | else |
| 64 | LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0 |
| 65 | endif |
| 66 | |
Luke Song | 846012f | 2017-09-13 15:56:16 -0700 | [diff] [blame] | 67 | ifneq ($(TARGET_RECOVERY_DEFAULT_ROTATION),) |
| 68 | LOCAL_CFLAGS += -DDEFAULT_ROTATION=$(TARGET_RECOVERY_DEFAULT_ROTATION) |
| 69 | else |
| 70 | LOCAL_CFLAGS += -DDEFAULT_ROTATION=ROTATION_NONE |
| 71 | endif |
| 72 | |
Daniel Hillenbrand | 2a07c39 | 2015-09-26 14:02:46 +0100 | [diff] [blame] | 73 | ifneq ($(BOARD_RECOVERY_NEEDS_FBIOPAN_DISPLAY),) |
| 74 | LOCAL_CFLAGS += -DBOARD_RECOVERY_NEEDS_FBIOPAN_DISPLAY |
| 75 | endif |
| 76 | |
Vitalii Kulikov | 9d56901 | 2017-01-16 22:36:29 +0100 | [diff] [blame] | 77 | ifneq ($(BOARD_RECOVERY_NEEDS_REL_INPUT),) |
| 78 | LOCAL_CFLAGS += -DBOARD_RECOVERY_NEEDS_REL_INPUT |
| 79 | endif |
| 80 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 81 | include $(BUILD_STATIC_LIBRARY) |
Ajay Dudani | 9905f3a | 2015-02-04 16:49:44 -0800 | [diff] [blame] | 82 | |
Tao Bao | 99f0d9e | 2016-10-13 12:46:38 -0700 | [diff] [blame] | 83 | # libminui (shared library) |
| 84 | # =============================== |
Ajay Dudani | 9905f3a | 2015-02-04 16:49:44 -0800 | [diff] [blame] | 85 | # Used by OEMs for factory test images. |
| 86 | include $(CLEAR_VARS) |
| 87 | LOCAL_MODULE := libminui |
| 88 | LOCAL_WHOLE_STATIC_LIBRARIES += libminui |
Tianjie Xu | 2078b22 | 2017-03-22 12:27:26 -0700 | [diff] [blame] | 89 | LOCAL_SHARED_LIBRARIES := \ |
| 90 | libpng \ |
| 91 | libbase |
| 92 | |
Tianjie Xu | c89d1e7 | 2017-08-28 14:15:07 -0700 | [diff] [blame] | 93 | LOCAL_CFLAGS := -Wall -Werror |
Tao Bao | 0ecbd76 | 2017-01-16 21:16:58 -0800 | [diff] [blame] | 94 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
| 95 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
Ajay Dudani | 9905f3a | 2015-02-04 16:49:44 -0800 | [diff] [blame] | 96 | include $(BUILD_SHARED_LIBRARY) |