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 | |
Elliott Hughes | 0713819 | 2015-04-10 09:40:53 -0700 | [diff] [blame] | 4 | LOCAL_SRC_FILES := \ |
| 5 | events.cpp \ |
Elliott Hughes | 07cfb8f | 2015-04-10 13:12:05 -0700 | [diff] [blame] | 6 | graphics.cpp \ |
| 7 | graphics_adf.cpp \ |
Stéphane Marchesin | 1a92c44 | 2015-06-29 20:05:48 -0700 | [diff] [blame] | 8 | graphics_drm.cpp \ |
Elliott Hughes | 07cfb8f | 2015-04-10 13:12:05 -0700 | [diff] [blame] | 9 | graphics_fbdev.cpp \ |
| 10 | resources.cpp \ |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 11 | |
| 12 | ifeq ($(TW_TARGET_USES_QCOM_BSP), true) |
| 13 | LOCAL_CFLAGS += -DMSM_BSP |
| 14 | ifeq ($(TARGET_PREBUILT_KERNEL),) |
| 15 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 16 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 17 | else |
Kra1o5 | 0024e38 | 2014-12-17 01:49:00 +0100 | [diff] [blame] | 18 | ifeq ($(TARGET_CUSTOM_KERNEL_HEADERS),) |
| 19 | LOCAL_C_INCLUDES += $(commands_recovery_local_path)/minui/include |
| 20 | else |
| 21 | LOCAL_C_INCLUDES += $(TARGET_CUSTOM_KERNEL_HEADERS) |
| 22 | endif |
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 | |
Kra1o5 | de50c5f | 2015-04-23 21:46:36 +0200 | [diff] [blame] | 28 | ifeq ($(TW_NEW_ION_HEAP), true) |
| 29 | LOCAL_CFLAGS += -DNEW_ION_HEAP |
| 30 | endif |
| 31 | |
Greg Hackmann | 41909dd | 2014-04-25 10:39:50 -0700 | [diff] [blame] | 32 | LOCAL_WHOLE_STATIC_LIBRARIES += libadf |
Stéphane Marchesin | 1a92c44 | 2015-06-29 20:05:48 -0700 | [diff] [blame] | 33 | LOCAL_WHOLE_STATIC_LIBRARIES += libdrm |
Trevor Drake | fee324f | 2015-02-26 15:57:58 +0000 | [diff] [blame] | 34 | LOCAL_STATIC_LIBRARIES += libpng |
Greg Hackmann | 41909dd | 2014-04-25 10:39:50 -0700 | [diff] [blame] | 35 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 36 | LOCAL_MODULE := libminui |
| 37 | |
Elliott Hughes | 0713819 | 2015-04-10 09:40:53 -0700 | [diff] [blame] | 38 | LOCAL_CLANG := true |
Elliott Hughes | 01a4d08 | 2015-03-24 15:21:48 -0700 | [diff] [blame] | 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 | |
Tony Kuo | fd778e3 | 2015-02-05 21:25:56 +0800 | [diff] [blame] | 44 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),ABGR_8888) |
| 45 | LOCAL_CFLAGS += -DRECOVERY_ABGR |
| 46 | endif |
Doug Zongker | 9c5efe6 | 2012-07-11 13:21:02 -0700 | [diff] [blame] | 47 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888) |
Michael Ward | 9d1bcdf | 2011-06-22 14:30:34 -0700 | [diff] [blame] | 48 | LOCAL_CFLAGS += -DRECOVERY_RGBX |
| 49 | endif |
Doug Zongker | 9c5efe6 | 2012-07-11 13:21:02 -0700 | [diff] [blame] | 50 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888) |
Michael Ward | 9d1bcdf | 2011-06-22 14:30:34 -0700 | [diff] [blame] | 51 | LOCAL_CFLAGS += -DRECOVERY_BGRA |
Doug Zongker | be3e6f1 | 2011-01-13 16:43:44 -0800 | [diff] [blame] | 52 | endif |
| 53 | |
Doug Zongker | c560a67 | 2012-12-18 16:31:27 -0800 | [diff] [blame] | 54 | ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),) |
| 55 | LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT) |
| 56 | else |
| 57 | LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0 |
| 58 | endif |
| 59 | |
Matt Mower | 4a5db2d | 2014-01-20 16:14:25 -0600 | [diff] [blame] | 60 | ifneq ($(TW_BRIGHTNESS_PATH),) |
| 61 | LOCAL_CFLAGS += -DTW_BRIGHTNESS_PATH=\"$(TW_BRIGHTNESS_PATH)\" |
| 62 | endif |
| 63 | ifneq ($(TW_MAX_BRIGHTNESS),) |
| 64 | LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=$(TW_MAX_BRIGHTNESS) |
| 65 | else |
| 66 | LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=255 |
| 67 | endif |
| 68 | ifneq ($(TW_NO_SCREEN_BLANK),) |
| 69 | LOCAL_CFLAGS += -DTW_NO_SCREEN_BLANK |
Ethan Chen | 0940e41 | 2013-10-22 13:48:50 -0700 | [diff] [blame] | 70 | endif |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 71 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 72 | include $(BUILD_STATIC_LIBRARY) |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 73 | |
Ajay Dudani | 9905f3a | 2015-02-04 16:49:44 -0800 | [diff] [blame] | 74 | # Used by OEMs for factory test images. |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 75 | include $(CLEAR_VARS) |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 76 | LOCAL_MODULE := libminui |
Ajay Dudani | 9905f3a | 2015-02-04 16:49:44 -0800 | [diff] [blame] | 77 | LOCAL_WHOLE_STATIC_LIBRARIES += libminui |
| 78 | LOCAL_SHARED_LIBRARIES := libpng |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 79 | include $(BUILD_SHARED_LIBRARY) |