Raphael | 6508be1 | 2009-10-11 22:32:49 -0700 | [diff] [blame] | 1 | # Copyright 2009 The Android Open Source Project |
| 2 | # |
| 3 | # Android.mk for sdklauncher |
| 4 | # |
| 5 | # The "SDK Launcher" is for Windows only. |
| 6 | # This simple .exe will sit at the root of the Windows SDK |
| 7 | # and currently simply executes tools\android.bat. |
| 8 | # Eventually it should simply replace the batch file. |
| 9 | |
Raphael | 6508be1 | 2009-10-11 22:32:49 -0700 | [diff] [blame] | 10 | |
Raphael Moll | e6414c7 | 2011-07-06 23:41:57 -0400 | [diff] [blame^] | 11 | #----- The current C++ sdklauncher ----- |
Raphael | 6508be1 | 2009-10-11 22:32:49 -0700 | [diff] [blame] | 12 | |
Raphael Moll | e6414c7 | 2011-07-06 23:41:57 -0400 | [diff] [blame^] | 13 | LOCAL_PATH := $(call my-dir) |
Raphael | 6508be1 | 2009-10-11 22:32:49 -0700 | [diff] [blame] | 14 | include $(CLEAR_VARS) |
| 15 | |
Raphael Moll | e6414c7 | 2011-07-06 23:41:57 -0400 | [diff] [blame^] | 16 | ifeq ($(HOST_OS),windows) |
| 17 | |
Raphael | 6508be1 | 2009-10-11 22:32:49 -0700 | [diff] [blame] | 18 | LOCAL_SRC_FILES := \ |
| 19 | sdklauncher.c |
| 20 | |
| 21 | LOCAL_CFLAGS += -Wall -Wno-unused-parameter |
| 22 | LOCAL_CFLAGS += -D_XOPEN_SOURCE -D_GNU_SOURCE -DSH_HISTORY |
| 23 | LOCAL_MODULE := sdklauncher |
| 24 | |
Raphael | a3dcd8f | 2010-04-15 19:41:05 -0700 | [diff] [blame] | 25 | # Locate windres executable |
| 26 | WINDRES := windres |
| 27 | ifneq ($(USE_MINGW),) |
| 28 | # When building the Windows emulator under Linux, use the MinGW one |
| 29 | WINDRES := i586-mingw32msvc-windres |
| 30 | endif |
| 31 | |
Raphael | 6508be1 | 2009-10-11 22:32:49 -0700 | [diff] [blame] | 32 | # Link the Windows icon file as well into the executable, based on the technique |
Raphael Moll | 0ddce47 | 2010-08-21 17:59:12 -0700 | [diff] [blame] | 33 | # used in external/qemu/Makefile.android. The variables need to have different |
| 34 | # names to not interfere with the ones from qemu/Makefile.android. |
Raphael | 6508be1 | 2009-10-11 22:32:49 -0700 | [diff] [blame] | 35 | # |
| 36 | INTERMEDIATE := $(call intermediates-dir-for,EXECUTABLES,$(LOCAL_MODULE),true) |
Raphael Moll | 0ddce47 | 2010-08-21 17:59:12 -0700 | [diff] [blame] | 37 | SDKLAUNCHER_ICON_OBJ := sdklauncher_icon.o |
| 38 | SDKLAUNCHER_ICON_PATH := $(LOCAL_PATH)/images |
| 39 | $(SDKLAUNCHER_ICON_PATH)/$(SDKLAUNCHER_ICON_OBJ): $(SDKLAUNCHER_ICON_PATH)/android_icon.rc |
| 40 | $(WINDRES) $< -I $(SDKLAUNCHER_ICON_PATH) -o $@ |
Raphael | 6508be1 | 2009-10-11 22:32:49 -0700 | [diff] [blame] | 41 | |
| 42 | # seems to be the only way to add an object file that was not generated from |
| 43 | # a C/C++/Java source file to our build system. and very unfortunately, |
| 44 | # $(TOPDIR)/$(LOCALPATH) will always be prepended to this value, which forces |
| 45 | # us to put the object file in the source directory... |
| 46 | # |
Raphael Moll | 0ddce47 | 2010-08-21 17:59:12 -0700 | [diff] [blame] | 47 | LOCAL_PREBUILT_OBJ_FILES += images/$(SDKLAUNCHER_ICON_OBJ) |
Raphael | 6508be1 | 2009-10-11 22:32:49 -0700 | [diff] [blame] | 48 | |
| 49 | include $(BUILD_HOST_EXECUTABLE) |
| 50 | |
| 51 | $(call dist-for-goals,droid,$(LOCAL_BUILT_MODULE)) |
| 52 | |
| 53 | endif |
Raphael Moll | e6414c7 | 2011-07-06 23:41:57 -0400 | [diff] [blame^] | 54 | |
| 55 | #----- New experimental sdklauncher. Not ready for production. ----- |
| 56 | |
| 57 | include $(LOCAL_PATH)/app/Android.mk |
| 58 | |
| 59 | |
| 60 | |