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