The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
Elliott Hughes | 0713819 | 2015-04-10 09:40:53 -0700 | [diff] [blame] | 4 | LOCAL_SRC_FILES := \ |
| 5 | events.cpp \ |
Elliott Hughes | 07cfb8f | 2015-04-10 13:12:05 -0700 | [diff] [blame] | 6 | graphics.cpp \ |
Stéphane Marchesin | 1a92c44 | 2015-06-29 20:05:48 -0700 | [diff] [blame] | 7 | graphics_drm.cpp \ |
Elliott Hughes | 07cfb8f | 2015-04-10 13:12:05 -0700 | [diff] [blame] | 8 | graphics_fbdev.cpp \ |
Ethan Yonker | b386f71 | 2017-01-20 14:30:28 -0600 | [diff] [blame] | 9 | resources.cpp |
Ethan Yonker | a59da09 | 2015-10-13 19:35:05 -0500 | [diff] [blame] | 10 | |
| 11 | LOCAL_C_INCLUDES := external/libcxx/include external/libpng |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 12 | |
| 13 | ifeq ($(TW_TARGET_USES_QCOM_BSP), true) |
| 14 | LOCAL_CFLAGS += -DMSM_BSP |
Ethan Yonker | b386f71 | 2017-01-20 14:30:28 -0600 | [diff] [blame] | 15 | LOCAL_SRC_FILES += graphics_overlay.cpp |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 16 | ifeq ($(TARGET_PREBUILT_KERNEL),) |
| 17 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 18 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 19 | else |
Kra1o5 | 0024e38 | 2014-12-17 01:49:00 +0100 | [diff] [blame] | 20 | ifeq ($(TARGET_CUSTOM_KERNEL_HEADERS),) |
| 21 | LOCAL_C_INCLUDES += $(commands_recovery_local_path)/minui/include |
| 22 | else |
| 23 | LOCAL_C_INCLUDES += $(TARGET_CUSTOM_KERNEL_HEADERS) |
| 24 | endif |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 25 | endif |
| 26 | else |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 27 | LOCAL_C_INCLUDES += $(commands_recovery_local_path)/minui/include |
Ethan Yonker | a59da09 | 2015-10-13 19:35:05 -0500 | [diff] [blame] | 28 | # The header files required for adf graphics can cause compile errors |
| 29 | # with adf graphics. |
| 30 | LOCAL_SRC_FILES += graphics_adf.cpp |
| 31 | LOCAL_WHOLE_STATIC_LIBRARIES += libadf |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 32 | endif |
| 33 | |
Kra1o5 | de50c5f | 2015-04-23 21:46:36 +0200 | [diff] [blame] | 34 | ifeq ($(TW_NEW_ION_HEAP), true) |
| 35 | LOCAL_CFLAGS += -DNEW_ION_HEAP |
| 36 | endif |
| 37 | |
Stéphane Marchesin | 1a92c44 | 2015-06-29 20:05:48 -0700 | [diff] [blame] | 38 | LOCAL_WHOLE_STATIC_LIBRARIES += libdrm |
Trevor Drake | fee324f | 2015-02-26 15:57:58 +0000 | [diff] [blame] | 39 | LOCAL_STATIC_LIBRARIES += libpng |
Greg Hackmann | 41909dd | 2014-04-25 10:39:50 -0700 | [diff] [blame] | 40 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 41 | LOCAL_MODULE := libminui |
| 42 | |
Elliott Hughes | 0713819 | 2015-04-10 09:40:53 -0700 | [diff] [blame] | 43 | LOCAL_CLANG := true |
Elliott Hughes | 01a4d08 | 2015-03-24 15:21:48 -0700 | [diff] [blame] | 44 | |
Doug Zongker | 9c5efe6 | 2012-07-11 13:21:02 -0700 | [diff] [blame] | 45 | # This used to compare against values in double-quotes (which are just |
| 46 | # ordinary characters in this context). Strip double-quotes from the |
| 47 | # value so that either will work. |
| 48 | |
Tony Kuo | fd778e3 | 2015-02-05 21:25:56 +0800 | [diff] [blame] | 49 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),ABGR_8888) |
| 50 | LOCAL_CFLAGS += -DRECOVERY_ABGR |
| 51 | endif |
Kra1o5 | 7756859 | 2015-10-14 18:09:54 +0200 | [diff] [blame] | 52 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBA_8888) |
| 53 | LOCAL_CFLAGS += -DRECOVERY_RGBA |
| 54 | endif |
Doug Zongker | 9c5efe6 | 2012-07-11 13:21:02 -0700 | [diff] [blame] | 55 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888) |
Michael Ward | 9d1bcdf | 2011-06-22 14:30:34 -0700 | [diff] [blame] | 56 | LOCAL_CFLAGS += -DRECOVERY_RGBX |
| 57 | endif |
Doug Zongker | 9c5efe6 | 2012-07-11 13:21:02 -0700 | [diff] [blame] | 58 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888) |
Michael Ward | 9d1bcdf | 2011-06-22 14:30:34 -0700 | [diff] [blame] | 59 | LOCAL_CFLAGS += -DRECOVERY_BGRA |
Doug Zongker | be3e6f1 | 2011-01-13 16:43:44 -0800 | [diff] [blame] | 60 | endif |
| 61 | |
Doug Zongker | c560a67 | 2012-12-18 16:31:27 -0800 | [diff] [blame] | 62 | ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),) |
| 63 | LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT) |
| 64 | else |
| 65 | LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0 |
| 66 | endif |
| 67 | |
Matt Mower | 4a5db2d | 2014-01-20 16:14:25 -0600 | [diff] [blame] | 68 | ifneq ($(TW_BRIGHTNESS_PATH),) |
| 69 | LOCAL_CFLAGS += -DTW_BRIGHTNESS_PATH=\"$(TW_BRIGHTNESS_PATH)\" |
| 70 | endif |
| 71 | ifneq ($(TW_MAX_BRIGHTNESS),) |
| 72 | LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=$(TW_MAX_BRIGHTNESS) |
| 73 | else |
| 74 | LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=255 |
| 75 | endif |
| 76 | ifneq ($(TW_NO_SCREEN_BLANK),) |
| 77 | LOCAL_CFLAGS += -DTW_NO_SCREEN_BLANK |
Ethan Chen | 0940e41 | 2013-10-22 13:48:50 -0700 | [diff] [blame] | 78 | endif |
maxwen | 39624d4 | 2015-12-01 22:02:07 +0100 | [diff] [blame] | 79 | ifneq ($(BOARD_USE_CUSTOM_RECOVERY_FONT),) |
| 80 | LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=$(BOARD_USE_CUSTOM_RECOVERY_FONT) |
| 81 | endif |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 82 | include $(BUILD_STATIC_LIBRARY) |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 83 | |
Ajay Dudani | 9905f3a | 2015-02-04 16:49:44 -0800 | [diff] [blame] | 84 | # Used by OEMs for factory test images. |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 85 | include $(CLEAR_VARS) |
Tao Bao | 80e46e0 | 2015-06-03 10:49:29 -0700 | [diff] [blame] | 86 | LOCAL_CLANG := true |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 87 | LOCAL_MODULE := libminui |
Ajay Dudani | 9905f3a | 2015-02-04 16:49:44 -0800 | [diff] [blame] | 88 | LOCAL_WHOLE_STATIC_LIBRARIES += libminui |
| 89 | LOCAL_SHARED_LIBRARIES := libpng |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 90 | include $(BUILD_SHARED_LIBRARY) |
Ethan Yonker | a59da09 | 2015-10-13 19:35:05 -0500 | [diff] [blame] | 91 | |
| 92 | include $(CLEAR_VARS) |
| 93 | LOCAL_MODULE := minuitest |
| 94 | LOCAL_MODULE_TAGS := optional |
| 95 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT_SBIN) |
| 96 | LOCAL_SRC_FILES := main.cpp |
| 97 | LOCAL_STATIC_LIBRARIES := libbinder libminui libpng libz libutils libstdc++ libcutils liblog libm libc |
| 98 | LOCAL_C_INCLUDES := external/libcxx/include external/libpng |
| 99 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 100 | include $(BUILD_EXECUTABLE) |