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 \ |
Stéphane Marchesin | 1a92c44 | 2015-06-29 20:05:48 -0700 | [diff] [blame] | 7 | graphics_drm.cpp \ |
Elliott Hughes | 07cfb8f | 2015-04-10 13:12:05 -0700 | [diff] [blame] | 8 | graphics_fbdev.cpp \ |
| 9 | resources.cpp \ |
Ethan Yonker | a59da09 | 2015-10-13 19:35:05 -0500 | [diff] [blame] | 10 | graphics_overlay.cpp |
| 11 | |
| 12 | LOCAL_C_INCLUDES := external/libcxx/include external/libpng |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 13 | |
| 14 | ifeq ($(TW_TARGET_USES_QCOM_BSP), true) |
| 15 | LOCAL_CFLAGS += -DMSM_BSP |
| 16 | ifeq ($(TARGET_PREBUILT_KERNEL),) |
| 17 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 18 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 19 | else |
Kra1o5 | 0024e38 | 2014-12-17 01:49:00 +0100 | [diff] [blame] | 20 | ifeq ($(TARGET_CUSTOM_KERNEL_HEADERS),) |
| 21 | LOCAL_C_INCLUDES += $(commands_recovery_local_path)/minui/include |
| 22 | else |
| 23 | LOCAL_C_INCLUDES += $(TARGET_CUSTOM_KERNEL_HEADERS) |
| 24 | endif |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 25 | endif |
| 26 | else |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 27 | LOCAL_C_INCLUDES += $(commands_recovery_local_path)/minui/include |
Ethan Yonker | a59da09 | 2015-10-13 19:35:05 -0500 | [diff] [blame] | 28 | # The header files required for adf graphics can cause compile errors |
| 29 | # with adf graphics. |
| 30 | LOCAL_SRC_FILES += graphics_adf.cpp |
| 31 | LOCAL_WHOLE_STATIC_LIBRARIES += libadf |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 32 | endif |
| 33 | |
Kra1o5 | de50c5f | 2015-04-23 21:46:36 +0200 | [diff] [blame] | 34 | ifeq ($(TW_NEW_ION_HEAP), true) |
| 35 | LOCAL_CFLAGS += -DNEW_ION_HEAP |
| 36 | endif |
| 37 | |
Stéphane Marchesin | 1a92c44 | 2015-06-29 20:05:48 -0700 | [diff] [blame] | 38 | LOCAL_WHOLE_STATIC_LIBRARIES += libdrm |
Trevor Drake | fee324f | 2015-02-26 15:57:58 +0000 | [diff] [blame] | 39 | LOCAL_STATIC_LIBRARIES += libpng |
Greg Hackmann | 41909dd | 2014-04-25 10:39:50 -0700 | [diff] [blame] | 40 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 41 | LOCAL_MODULE := libminui |
| 42 | |
Elliott Hughes | 0713819 | 2015-04-10 09:40:53 -0700 | [diff] [blame] | 43 | LOCAL_CLANG := true |
Elliott Hughes | 01a4d08 | 2015-03-24 15:21:48 -0700 | [diff] [blame] | 44 | |
Doug Zongker | 9c5efe6 | 2012-07-11 13:21:02 -0700 | [diff] [blame] | 45 | # This used to compare against values in double-quotes (which are just |
| 46 | # ordinary characters in this context). Strip double-quotes from the |
| 47 | # value so that either will work. |
| 48 | |
Tony Kuo | fd778e3 | 2015-02-05 21:25:56 +0800 | [diff] [blame] | 49 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),ABGR_8888) |
| 50 | LOCAL_CFLAGS += -DRECOVERY_ABGR |
| 51 | endif |
Kra1o5 | 7756859 | 2015-10-14 18:09:54 +0200 | [diff] [blame] | 52 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBA_8888) |
| 53 | LOCAL_CFLAGS += -DRECOVERY_RGBA |
| 54 | endif |
Doug Zongker | 9c5efe6 | 2012-07-11 13:21:02 -0700 | [diff] [blame] | 55 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888) |
Michael Ward | 9d1bcdf | 2011-06-22 14:30:34 -0700 | [diff] [blame] | 56 | LOCAL_CFLAGS += -DRECOVERY_RGBX |
| 57 | endif |
Doug Zongker | 9c5efe6 | 2012-07-11 13:21:02 -0700 | [diff] [blame] | 58 | ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888) |
Michael Ward | 9d1bcdf | 2011-06-22 14:30:34 -0700 | [diff] [blame] | 59 | LOCAL_CFLAGS += -DRECOVERY_BGRA |
Doug Zongker | be3e6f1 | 2011-01-13 16:43:44 -0800 | [diff] [blame] | 60 | endif |
| 61 | |
Doug Zongker | c560a67 | 2012-12-18 16:31:27 -0800 | [diff] [blame] | 62 | ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),) |
| 63 | LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT) |
| 64 | else |
| 65 | LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0 |
| 66 | endif |
| 67 | |
Matt Mower | 4a5db2d | 2014-01-20 16:14:25 -0600 | [diff] [blame] | 68 | ifneq ($(TW_BRIGHTNESS_PATH),) |
| 69 | LOCAL_CFLAGS += -DTW_BRIGHTNESS_PATH=\"$(TW_BRIGHTNESS_PATH)\" |
| 70 | endif |
| 71 | ifneq ($(TW_MAX_BRIGHTNESS),) |
| 72 | LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=$(TW_MAX_BRIGHTNESS) |
| 73 | else |
| 74 | LOCAL_CFLAGS += -DTW_MAX_BRIGHTNESS=255 |
| 75 | endif |
| 76 | ifneq ($(TW_NO_SCREEN_BLANK),) |
| 77 | LOCAL_CFLAGS += -DTW_NO_SCREEN_BLANK |
Ethan Chen | 0940e41 | 2013-10-22 13:48:50 -0700 | [diff] [blame] | 78 | endif |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 79 | |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 80 | include $(BUILD_STATIC_LIBRARY) |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 81 | |
Ajay Dudani | 9905f3a | 2015-02-04 16:49:44 -0800 | [diff] [blame] | 82 | # Used by OEMs for factory test images. |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 83 | include $(CLEAR_VARS) |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 84 | LOCAL_MODULE := libminui |
Ajay Dudani | 9905f3a | 2015-02-04 16:49:44 -0800 | [diff] [blame] | 85 | LOCAL_WHOLE_STATIC_LIBRARIES += libminui |
| 86 | LOCAL_SHARED_LIBRARIES := libpng |
Dees Troy | 62b75ab | 2014-05-02 13:20:33 +0000 | [diff] [blame] | 87 | include $(BUILD_SHARED_LIBRARY) |
Ethan Yonker | a59da09 | 2015-10-13 19:35:05 -0500 | [diff] [blame] | 88 | |
| 89 | include $(CLEAR_VARS) |
| 90 | LOCAL_MODULE := minuitest |
| 91 | LOCAL_MODULE_TAGS := optional |
| 92 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT_SBIN) |
| 93 | LOCAL_SRC_FILES := main.cpp |
| 94 | LOCAL_STATIC_LIBRARIES := libbinder libminui libpng libz libutils libstdc++ libcutils liblog libm libc |
| 95 | LOCAL_C_INCLUDES := external/libcxx/include external/libpng |
| 96 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 97 | include $(BUILD_EXECUTABLE) |