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