Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
| 4 | LOCAL_SRC_FILES := \ |
| 5 | gui.cpp \ |
| 6 | resources.cpp \ |
| 7 | pages.cpp \ |
| 8 | text.cpp \ |
| 9 | image.cpp \ |
| 10 | action.cpp \ |
| 11 | console.cpp \ |
| 12 | fill.cpp \ |
| 13 | button.cpp \ |
| 14 | checkbox.cpp \ |
| 15 | fileselector.cpp \ |
| 16 | progressbar.cpp \ |
| 17 | animation.cpp \ |
| 18 | conditional.cpp \ |
| 19 | slider.cpp \ |
Vojtech Bocek | 8593234 | 2013-04-01 22:11:33 +0200 | [diff] [blame] | 20 | slidervalue.cpp \ |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 21 | listbox.cpp \ |
| 22 | keyboard.cpp \ |
bigbiff bigbiff | 8a68c31 | 2013-02-10 14:28:30 -0500 | [diff] [blame] | 23 | input.cpp \ |
| 24 | blanktimer.cpp \ |
Dees_Troy | 94e2a46 | 2013-08-22 12:25:14 +0000 | [diff] [blame] | 25 | partitionlist.cpp |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 26 | |
| 27 | ifneq ($(TWRP_CUSTOM_KEYBOARD),) |
| 28 | LOCAL_SRC_FILES += $(TWRP_CUSTOM_KEYBOARD) |
| 29 | else |
| 30 | LOCAL_SRC_FILES += hardwarekeyboard.cpp |
| 31 | endif |
| 32 | |
Dees_Troy | 94e2a46 | 2013-08-22 12:25:14 +0000 | [diff] [blame] | 33 | LOCAL_SHARED_LIBRARIES += libminuitwrp libc libstdc++ |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 34 | LOCAL_MODULE := libguitwrp |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 35 | |
| 36 | # Use this flag to create a build that simulates threaded actions like installing zips, backups, restores, and wipes for theme testing |
| 37 | #TWRP_SIMULATE_ACTIONS := true |
| 38 | ifeq ($(TWRP_SIMULATE_ACTIONS), true) |
| 39 | LOCAL_CFLAGS += -D_SIMULATE_ACTIONS |
| 40 | endif |
| 41 | |
| 42 | #TWRP_EVENT_LOGGING := true |
| 43 | ifeq ($(TWRP_EVENT_LOGGING), true) |
| 44 | LOCAL_CFLAGS += -D_EVENT_LOGGING |
| 45 | endif |
| 46 | |
| 47 | ifneq ($(RECOVERY_SDCARD_ON_DATA),) |
| 48 | LOCAL_CFLAGS += -DRECOVERY_SDCARD_ON_DATA |
| 49 | endif |
Dees_Troy | e2920fa | 2012-09-19 16:18:00 -0400 | [diff] [blame] | 50 | ifneq ($(TW_EXTERNAL_STORAGE_PATH),) |
| 51 | LOCAL_CFLAGS += -DTW_EXTERNAL_STORAGE_PATH=$(TW_EXTERNAL_STORAGE_PATH) |
| 52 | endif |
bigbiff bigbiff | 8a68c31 | 2013-02-10 14:28:30 -0500 | [diff] [blame] | 53 | ifneq ($(TW_BRIGHTNESS_PATH),) |
| 54 | LOCAL_CFLAGS += -DTW_BRIGHTNESS_PATH=$(TW_BRIGHTNESS_PATH) |
| 55 | endif |
Vojtech Bocek | 8593234 | 2013-04-01 22:11:33 +0200 | [diff] [blame] | 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 |
bigbiff bigbiff | 8794036 | 2013-03-09 09:58:50 -0500 | [diff] [blame] | 61 | ifneq ($(TW_NO_SCREEN_BLANK),) |
| 62 | LOCAL_CFLAGS += -DTW_NO_SCREEN_BLANK |
| 63 | endif |
Ricardo Gomez | c9ecd44 | 2013-07-05 16:13:52 -0700 | [diff] [blame] | 64 | ifneq ($(TW_NO_SCREEN_TIMEOUT),) |
| 65 | LOCAL_CFLAGS += -DTW_NO_SCREEN_TIMEOUT |
| 66 | endif |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 67 | |
| 68 | LOCAL_C_INCLUDES += bionic external/stlport/stlport $(commands_recovery_local_path)/gui/devices/$(DEVICE_RESOLUTION) |
| 69 | |
| 70 | include $(BUILD_STATIC_LIBRARY) |
| 71 | |
| 72 | # Transfer in the resources for the device |
| 73 | include $(CLEAR_VARS) |
| 74 | LOCAL_MODULE := twrp |
| 75 | LOCAL_MODULE_TAGS := eng |
| 76 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 77 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res |
| 78 | |
| 79 | TWRP_RES_LOC := $(commands_recovery_local_path)/gui/devices |
| 80 | TWRP_RES_GEN := $(intermediates)/twrp |
| 81 | |
| 82 | $(TWRP_RES_GEN): |
| 83 | mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/res/ |
| 84 | cp -fr $(TWRP_RES_LOC)/common/res/* $(TARGET_RECOVERY_ROOT_OUT)/res/ |
| 85 | cp -fr $(TWRP_RES_LOC)/$(DEVICE_RESOLUTION)/res/* $(TARGET_RECOVERY_ROOT_OUT)/res/ |
| 86 | mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/sbin/ |
Dees_Troy | 3bbb95b | 2012-09-28 17:15:22 -0400 | [diff] [blame] | 87 | ln -sf /sbin/busybox $(TARGET_RECOVERY_ROOT_OUT)/sbin/sh |
Dees_Troy | 22ad2cc | 2012-09-27 15:00:27 -0400 | [diff] [blame] | 88 | ln -sf /sbin/pigz $(TARGET_RECOVERY_ROOT_OUT)/sbin/gzip |
| 89 | ln -sf /sbin/unpigz $(TARGET_RECOVERY_ROOT_OUT)/sbin/gunzip |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 90 | |
| 91 | LOCAL_GENERATED_SOURCES := $(TWRP_RES_GEN) |
| 92 | LOCAL_SRC_FILES := twrp $(TWRP_RES_GEN) |
Dees_Troy | 7d15c25 | 2012-09-05 20:47:21 -0400 | [diff] [blame] | 93 | include $(BUILD_PREBUILT) |