David 'Digit' Turner | 7654e7e | 2014-07-11 14:12:35 +0200 | [diff] [blame] | 1 | ############################################################################## |
| 2 | ############################################################################## |
| 3 | ### |
| 4 | ### emulator-$ARCH: Standalone launcher for QEMU executable. |
| 5 | ### |
| 6 | ### |
| 7 | EMULATOR_TARGET_CPU := $(EMULATOR_TARGET_ARCH) |
| 8 | ifeq ($(EMULATOR_TARGET_CPU),x86) |
| 9 | EMULATOR_TARGET_CPU := i386 |
| 10 | endif |
| 11 | |
| 12 | ifeq ($(EMULATOR_TARGET_CPU),arm64) |
| 13 | |
| 14 | qemu_launcher_SOURCES := \ |
| 15 | android/qemu-launcher/emulator-qemu.cpp \ |
| 16 | android/cmdline-option.c \ |
| 17 | android/help.c \ |
| 18 | android/main-common.c \ |
| 19 | |
| 20 | qemu_launcher_CFLAGS := -DNO_SKIN=1 |
| 21 | |
| 22 | qemu_launcher_LDLIBS := -lstdc++ |
| 23 | |
| 24 | $(call start-emulator-program, emulator-arm64) |
| 25 | LOCAL_SRC_FILES := $(qemu_launcher_SOURCES) |
| 26 | LOCAL_CFLAGS := $(qemu_launcher_CFLAGS) |
| 27 | LOCAL_STATIC_LIBRARIES := \ |
| 28 | emulator-common |
| 29 | LOCAL_LDLIBS := $(qemu_launcher_LDLIBS) |
| 30 | $(call gen-hw-config-defs) |
| 31 | $(call end-emulator-program) |
| 32 | |
| 33 | $(call start-emulator64-program, emulator64-arm64) |
| 34 | LOCAL_SRC_FILES := $(qemu_launcher_SOURCES) |
| 35 | LOCAL_CFLAGS := $(qemu_launcher_CFLAGS) |
| 36 | LOCAL_STATIC_LIBRARIES := \ |
| 37 | emulator64-common |
| 38 | LOCAL_LDLIBS := $(qemu_launcher_LDLIBS) |
| 39 | $(call gen-hw-config-defs) |
| 40 | $(call end-emulator-program) |
| 41 | |
| 42 | endif # EMULATOR_TARGET_CPU == arm64 |