From a3dcd8f0df7aaf6aae8e0291b39476dba532dea1 Mon Sep 17 00:00:00 2001 From: Raphael Date: Thu, 15 Apr 2010 19:41:05 -0700 Subject: Add missing windres to build SDK Setup.exe using MinGW/Linux (This mirrors what we did with the emulator in Change Ib4ce944b ) Change-Id: I09f2e154ff89af4a0ed6629fd20846f20dbd2f5b --- sdklauncher/Android.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sdklauncher/Android.mk b/sdklauncher/Android.mk index 3e92ea8..e3cc7d3 100644 --- a/sdklauncher/Android.mk +++ b/sdklauncher/Android.mk @@ -20,6 +20,13 @@ LOCAL_CFLAGS += -Wall -Wno-unused-parameter LOCAL_CFLAGS += -D_XOPEN_SOURCE -D_GNU_SOURCE -DSH_HISTORY LOCAL_MODULE := sdklauncher +# Locate windres executable +WINDRES := windres +ifneq ($(USE_MINGW),) + # When building the Windows emulator under Linux, use the MinGW one + WINDRES := i586-mingw32msvc-windres +endif + # Link the Windows icon file as well into the executable, based on the technique # used in external/qemu/Makefile.android. # @@ -27,7 +34,7 @@ INTERMEDIATE := $(call intermediates-dir-for,EXECUTABLES,$(LOCAL_MODULE),tru ANDROID_ICON_OBJ := android_icon.o ANDROID_ICON_PATH := $(LOCAL_PATH)/images $(ANDROID_ICON_PATH)/$(ANDROID_ICON_OBJ): $(ANDROID_ICON_PATH)/android_icon.rc - windres $< -I $(ANDROID_ICON_PATH) -o $@ + $(WINDRES) $< -I $(ANDROID_ICON_PATH) -o $@ # seems to be the only way to add an object file that was not generated from # a C/C++/Java source file to our build system. and very unfortunately, -- cgit v1.1