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