From 163d47480312bef2ed7be5c46f0e3d6bde05966b Mon Sep 17 00:00:00 2001 From: bigbiff bigbiff Date: Sat, 16 Nov 2013 13:25:27 -0500 Subject: Add check for making sure theme exists for device Change-Id: I9b178cebbb2834cd0c86088c8e78678f55d14e62 --- gui/Android.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'gui') diff --git a/gui/Android.mk b/gui/Android.mk index 32b1675d1..ac0b2037c 100644 --- a/gui/Android.mk +++ b/gui/Android.mk @@ -68,7 +68,7 @@ ifeq ($(HAVE_SELINUX), true) LOCAL_CFLAGS += -DHAVE_SELINUX endif -ifndef DEVICE_RESOLUTION +ifeq ($(DEVICE_RESOLUTION),) $(warning ********************************************************************************) $(warning * DEVICE_RESOLUTION is NOT SET in BoardConfig.mk ) $(warning * Please see http://tinyw.in/nP7d for details ) @@ -76,6 +76,14 @@ $(warning ********************************************************************** $(error stopping) endif +ifeq "$(wildcard bootable/recovery/gui/devices/$(DEVICE_RESOLUTION))" "" +$(warning ********************************************************************************) +$(warning * DEVICE_RESOLUTION ($(DEVICE_RESOLUTION)) does NOT EXIST in bootable/recovery/gui/devices ) +$(warning * Please choose an existing theme or create a new one for your device ) +$(warning ********************************************************************************) +$(error stopping) +endif + LOCAL_C_INCLUDES += bionic external/stlport/stlport $(commands_recovery_local_path)/gui/devices/$(DEVICE_RESOLUTION) include $(BUILD_STATIC_LIBRARY) -- cgit v1.2.3