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 \ |
| 20 | listbox.cpp \ |
| 21 | keyboard.cpp \ |
Dees_Troy | 5bf4392 | 2012-09-07 16:07:55 -0400 | [diff] [blame] | 22 | input.cpp |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 23 | |
| 24 | ifneq ($(TWRP_CUSTOM_KEYBOARD),) |
| 25 | LOCAL_SRC_FILES += $(TWRP_CUSTOM_KEYBOARD) |
| 26 | else |
| 27 | LOCAL_SRC_FILES += hardwarekeyboard.cpp |
| 28 | endif |
| 29 | |
| 30 | LOCAL_MODULE := libgui |
| 31 | |
| 32 | # Use this flag to create a build that simulates threaded actions like installing zips, backups, restores, and wipes for theme testing |
| 33 | #TWRP_SIMULATE_ACTIONS := true |
| 34 | ifeq ($(TWRP_SIMULATE_ACTIONS), true) |
| 35 | LOCAL_CFLAGS += -D_SIMULATE_ACTIONS |
| 36 | endif |
| 37 | |
| 38 | #TWRP_EVENT_LOGGING := true |
| 39 | ifeq ($(TWRP_EVENT_LOGGING), true) |
| 40 | LOCAL_CFLAGS += -D_EVENT_LOGGING |
| 41 | endif |
| 42 | |
| 43 | ifneq ($(RECOVERY_SDCARD_ON_DATA),) |
| 44 | LOCAL_CFLAGS += -DRECOVERY_SDCARD_ON_DATA |
| 45 | endif |
| 46 | |
| 47 | LOCAL_C_INCLUDES += bionic external/stlport/stlport $(commands_recovery_local_path)/gui/devices/$(DEVICE_RESOLUTION) |
| 48 | |
| 49 | include $(BUILD_STATIC_LIBRARY) |
| 50 | |
| 51 | # Transfer in the resources for the device |
| 52 | include $(CLEAR_VARS) |
| 53 | LOCAL_MODULE := twrp |
| 54 | LOCAL_MODULE_TAGS := eng |
| 55 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 56 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res |
| 57 | |
| 58 | TWRP_RES_LOC := $(commands_recovery_local_path)/gui/devices |
| 59 | TWRP_RES_GEN := $(intermediates)/twrp |
| 60 | |
| 61 | $(TWRP_RES_GEN): |
| 62 | mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/res/ |
| 63 | cp -fr $(TWRP_RES_LOC)/common/res/* $(TARGET_RECOVERY_ROOT_OUT)/res/ |
| 64 | cp -fr $(TWRP_RES_LOC)/$(DEVICE_RESOLUTION)/res/* $(TARGET_RECOVERY_ROOT_OUT)/res/ |
| 65 | mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/sbin/ |
| 66 | ln -sf /sbin/busybox $(TARGET_RECOVERY_ROOT_OUT)/sbin/sh |
| 67 | |
| 68 | LOCAL_GENERATED_SOURCES := $(TWRP_RES_GEN) |
| 69 | LOCAL_SRC_FILES := twrp $(TWRP_RES_GEN) |
Dees_Troy | 7d15c25 | 2012-09-05 20:47:21 -0400 | [diff] [blame] | 70 | include $(BUILD_PREBUILT) |