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 | |
Ethan Yonker | a33161b | 2014-11-06 15:11:20 -0600 | [diff] [blame] | 4 | LOCAL_SRC_FILES := graphics_overlay.c events.c resources.c |
Koushik Dutta | aac4854 | 2011-11-16 16:47:53 -0800 | [diff] [blame] | 5 | ifneq ($(BOARD_CUSTOM_GRAPHICS),) |
| 6 | LOCAL_SRC_FILES += $(BOARD_CUSTOM_GRAPHICS) |
| 7 | else |
| 8 | LOCAL_SRC_FILES += graphics.c |
| 9 | endif |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 10 | |
| 11 | LOCAL_C_INCLUDES +=\ |
Ethan Yonker | 304f32f | 2014-11-07 10:14:05 -0600 | [diff] [blame] | 12 | external/libpng \ |
| 13 | external/zlib \ |
| 14 | system/core/include/pixelflinger |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 15 | |
| 16 | ifeq ($(TW_TARGET_USES_QCOM_BSP), true) |
| 17 | LOCAL_CFLAGS += -DMSM_BSP |
| 18 | ifeq ($(TARGET_PREBUILT_KERNEL),) |
| 19 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 20 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 21 | else |
Kra1o5 | 0024e38 | 2014-12-17 01:49:00 +0100 | [diff] [blame] | 22 | ifeq ($(TARGET_CUSTOM_KERNEL_HEADERS),) |
| 23 | LOCAL_C_INCLUDES += $(commands_recovery_local_path)/minui/include |
| 24 | else |
| 25 | LOCAL_C_INCLUDES += $(TARGET_CUSTOM_KERNEL_HEADERS) |
| 26 | endif |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 27 | endif |
| 28 | else |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 29 | LOCAL_C_INCLUDES += $(commands_recovery_local_path)/minui/include |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 30 | endif |
| 31 | |
Kra1o5 | de50c5f | 2015-04-23 21:46:36 +0200 | [diff] [blame] | 32 | ifeq ($(TW_NEW_ION_HEAP), true) |
| 33 | LOCAL_CFLAGS += -DNEW_ION_HEAP |
| 34 | endif |
| 35 | |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 36 | LOCAL_STATIC_LIBRARY := libpng |
Ethan Yonker | 304f32f | 2014-11-07 10:14:05 -0600 | [diff] [blame] | 37 | LOCAL_WHOLE_STATIC_LIBRARIES := libpixelflinger_static |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 38 | LOCAL_MODULE := libminui |
| 39 | |
Doug Zongker | 9c5efe6 | 2012-07-11 13:21:02 -0700 | [diff] [blame] | 40 | # This used to compare against values in double-quotes (which are just |
| 41 | # ordinary characters in this context). Strip double-quotes from the |
| 42 | # value so that either will work. |
| 43 | |
| 44 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888) |
Michael Ward | 9d1bcdf | 2011-06-22 14:30:34 -0700 | [diff] [blame] | 45 | LOCAL_CFLAGS += -DRECOVERY_RGBX |
| 46 | endif |
Doug Zongker | 9c5efe6 | 2012-07-11 13:21:02 -0700 | [diff] [blame] | 47 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888) |
Michael Ward | 9d1bcdf | 2011-06-22 14:30:34 -0700 | [diff] [blame] | 48 | LOCAL_CFLAGS += -DRECOVERY_BGRA |
Doug Zongker | be3e6f1 | 2011-01-13 16:43:44 -0800 | [diff] [blame] | 49 | endif |
| 50 | |
Doug Zongker | c560a67 | 2012-12-18 16:31:27 -0800 | [diff] [blame] | 51 | ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),) |
| 52 | LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT) |
| 53 | else |
| 54 | LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0 |
| 55 | endif |
| 56 | |
Matt Mower | 4a5db2d | 2014-01-20 16:14:25 -0600 | [diff] [blame] | 57 | ifneq ($(TW_BRIGHTNESS_PATH),) |
| 58 | LOCAL_CFLAGS += -DTW_BRIGHTNESS_PATH=\"$(TW_BRIGHTNESS_PATH)\" |
| 59 | endif |
| 60 | ifneq ($(TW_MAX_BRIGHTNESS),) |
| 61 | LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=$(TW_MAX_BRIGHTNESS) |
| 62 | else |
| 63 | LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=255 |
| 64 | endif |
| 65 | ifneq ($(TW_NO_SCREEN_BLANK),) |
| 66 | LOCAL_CFLAGS += -DTW_NO_SCREEN_BLANK |
Ethan Chen | 0940e41 | 2013-10-22 13:48:50 -0700 | [diff] [blame] | 67 | endif |
maxwen | 44d59ea | 2015-07-14 00:41:14 +0200 | [diff] [blame] | 68 | ifneq ($(BOARD_USE_CUSTOM_RECOVERY_FONT),) |
| 69 | LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=$(BOARD_USE_CUSTOM_RECOVERY_FONT) |
| 70 | endif |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 71 | include $(BUILD_STATIC_LIBRARY) |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 72 | |
| 73 | include $(CLEAR_VARS) |
| 74 | |
Ethan Yonker | a33161b | 2014-11-06 15:11:20 -0600 | [diff] [blame] | 75 | LOCAL_SRC_FILES := graphics_overlay.c events.c resources.c |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 76 | ifneq ($(BOARD_CUSTOM_GRAPHICS),) |
| 77 | LOCAL_SRC_FILES += $(BOARD_CUSTOM_GRAPHICS) |
| 78 | else |
| 79 | LOCAL_SRC_FILES += graphics.c |
| 80 | endif |
| 81 | |
| 82 | ifeq ($(TW_TARGET_USES_QCOM_BSP), true) |
| 83 | LOCAL_CFLAGS += -DMSM_BSP |
| 84 | ifeq ($(TARGET_PREBUILT_KERNEL),) |
| 85 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 86 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 87 | else |
Kra1o5 | 0024e38 | 2014-12-17 01:49:00 +0100 | [diff] [blame] | 88 | ifeq ($(TARGET_CUSTOM_KERNEL_HEADERS),) |
| 89 | LOCAL_C_INCLUDES += $(commands_recovery_local_path)/minui/include |
| 90 | else |
| 91 | LOCAL_C_INCLUDES += $(TARGET_CUSTOM_KERNEL_HEADERS) |
| 92 | endif |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 93 | endif |
| 94 | else |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 95 | LOCAL_C_INCLUDES += $(commands_recovery_local_path)/minui/include |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 96 | endif |
| 97 | |
| 98 | LOCAL_C_INCLUDES +=\ |
| 99 | external/libpng\ |
| 100 | external/zlib |
| 101 | |
| 102 | LOCAL_MODULE := libminui |
| 103 | |
| 104 | LOCAL_ARM_MODE:= arm |
| 105 | LOCAL_SHARED_LIBRARIES := libpng libpixelflinger |
| 106 | # This used to compare against values in double-quotes (which are just |
| 107 | # ordinary characters in this context). Strip double-quotes from the |
| 108 | # value so that either will work. |
| 109 | |
| 110 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888) |
| 111 | LOCAL_CFLAGS += -DRECOVERY_RGBX |
| 112 | endif |
| 113 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888) |
| 114 | LOCAL_CFLAGS += -DRECOVERY_BGRA |
| 115 | endif |
| 116 | |
| 117 | ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),) |
| 118 | LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT) |
| 119 | else |
| 120 | LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0 |
| 121 | endif |
| 122 | |
| 123 | ifneq ($(TW_BRIGHTNESS_PATH),) |
| 124 | LOCAL_CFLAGS += -DTW_BRIGHTNESS_PATH=\"$(TW_BRIGHTNESS_PATH)\" |
| 125 | endif |
| 126 | ifneq ($(TW_MAX_BRIGHTNESS),) |
| 127 | LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=$(TW_MAX_BRIGHTNESS) |
| 128 | else |
| 129 | LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=255 |
| 130 | endif |
| 131 | ifneq ($(TW_NO_SCREEN_BLANK),) |
| 132 | LOCAL_CFLAGS += -DTW_NO_SCREEN_BLANK |
| 133 | endif |
maxwen | 44d59ea | 2015-07-14 00:41:14 +0200 | [diff] [blame] | 134 | ifneq ($(BOARD_USE_CUSTOM_RECOVERY_FONT),) |
| 135 | LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=$(BOARD_USE_CUSTOM_RECOVERY_FONT) |
| 136 | endif |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 137 | |
| 138 | LOCAL_CFLAGS += -DFASTMMI_FEATURE |
| 139 | |
| 140 | include $(BUILD_SHARED_LIBRARY) |