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 |
| 68 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 69 | include $(BUILD_STATIC_LIBRARY) |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 70 | |
| 71 | include $(CLEAR_VARS) |
| 72 | |
Ethan Yonker | a33161b | 2014-11-06 15:11:20 -0600 | [diff] [blame] | 73 | LOCAL_SRC_FILES := graphics_overlay.c events.c resources.c |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 74 | ifneq ($(BOARD_CUSTOM_GRAPHICS),) |
| 75 | LOCAL_SRC_FILES += $(BOARD_CUSTOM_GRAPHICS) |
| 76 | else |
| 77 | LOCAL_SRC_FILES += graphics.c |
| 78 | endif |
| 79 | |
| 80 | ifeq ($(TW_TARGET_USES_QCOM_BSP), true) |
| 81 | LOCAL_CFLAGS += -DMSM_BSP |
| 82 | ifeq ($(TARGET_PREBUILT_KERNEL),) |
| 83 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 84 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 85 | else |
Kra1o5 | 0024e38 | 2014-12-17 01:49:00 +0100 | [diff] [blame] | 86 | ifeq ($(TARGET_CUSTOM_KERNEL_HEADERS),) |
| 87 | LOCAL_C_INCLUDES += $(commands_recovery_local_path)/minui/include |
| 88 | else |
| 89 | LOCAL_C_INCLUDES += $(TARGET_CUSTOM_KERNEL_HEADERS) |
| 90 | endif |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 91 | endif |
| 92 | else |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 93 | LOCAL_C_INCLUDES += $(commands_recovery_local_path)/minui/include |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 94 | endif |
| 95 | |
| 96 | LOCAL_C_INCLUDES +=\ |
| 97 | external/libpng\ |
| 98 | external/zlib |
| 99 | |
| 100 | LOCAL_MODULE := libminui |
| 101 | |
| 102 | LOCAL_ARM_MODE:= arm |
| 103 | LOCAL_SHARED_LIBRARIES := libpng libpixelflinger |
| 104 | # This used to compare against values in double-quotes (which are just |
| 105 | # ordinary characters in this context). Strip double-quotes from the |
| 106 | # value so that either will work. |
| 107 | |
| 108 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888) |
| 109 | LOCAL_CFLAGS += -DRECOVERY_RGBX |
| 110 | endif |
| 111 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888) |
| 112 | LOCAL_CFLAGS += -DRECOVERY_BGRA |
| 113 | endif |
| 114 | |
| 115 | ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),) |
| 116 | LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT) |
| 117 | else |
| 118 | LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0 |
| 119 | endif |
| 120 | |
| 121 | ifneq ($(TW_BRIGHTNESS_PATH),) |
| 122 | LOCAL_CFLAGS += -DTW_BRIGHTNESS_PATH=\"$(TW_BRIGHTNESS_PATH)\" |
| 123 | endif |
| 124 | ifneq ($(TW_MAX_BRIGHTNESS),) |
| 125 | LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=$(TW_MAX_BRIGHTNESS) |
| 126 | else |
| 127 | LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=255 |
| 128 | endif |
| 129 | ifneq ($(TW_NO_SCREEN_BLANK),) |
| 130 | LOCAL_CFLAGS += -DTW_NO_SCREEN_BLANK |
| 131 | endif |
| 132 | |
| 133 | LOCAL_CFLAGS += -DFASTMMI_FEATURE |
| 134 | |
| 135 | include $(BUILD_SHARED_LIBRARY) |