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