This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 148
/
Makefile.qemu-launcher
70 lines (58 loc) · 1.91 KB
/
Makefile.qemu-launcher
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
##############################################################################
##############################################################################
###
### emulator-$ARCH: Standalone launcher for QEMU executable.
###
###
# Check EMULATOR_TARGET_CPU value and determine
# corresponding TARGET_XXX macro at the same time
EMULATOR_TARGET_CPU := $(EMULATOR_TARGET_ARCH)
ifeq ($(EMULATOR_TARGET_CPU),x86)
EMULATOR_TARGET_CPU := i386
endif
TARGET_VARNAME_arm64 := TARGET_ARM64
TARGET_VARNAME_mips64 := TARGET_MIPS64
ifeq (,$(strip $(TARGET_VARNAME_$(EMULATOR_TARGET_CPU))))
$(error Unrecognized EMULATOR_TARGET_CPU value: [$(EMULATOR_TARGET_CPU)])
endif
qemu_launcher_SOURCES := \
android/qemu-launcher/emulator-qemu.cpp \
android/cmdline-option.c \
android/cpu_accelerator.cpp \
android/help.c \
android/main-common.c \
qemu_launcher_CFLAGS := \
-DNO_SKIN=1 \
-D$(TARGET_VARNAME_$(EMULATOR_TARGET_CPU))=1 \
-I$(OBJS_DIR)
qemu_launcher_LDLIBS := -lstdc++
$(call start-emulator-program, emulator-ranchu-$(EMULATOR_TARGET_CPU))
LOCAL_SRC_FILES := $(qemu_launcher_SOURCES)
LOCAL_CFLAGS := $(qemu_launcher_CFLAGS)
LOCAL_STATIC_LIBRARIES := \
emulator-common \
emulator-libext4_utils \
emulator-libsparse \
emulator-libselinux \
emulator-zlib
LOCAL_LDLIBS := $(qemu_launcher_LDLIBS)
$(call gen-hw-config-defs)
ifeq ($(HOST_OS),windows)
$(eval $(call insert-windows-icon))
endif
$(call end-emulator-program)
$(call start-emulator64-program, emulator64-ranchu-$(EMULATOR_TARGET_CPU))
LOCAL_SRC_FILES := $(qemu_launcher_SOURCES)
LOCAL_CFLAGS := $(qemu_launcher_CFLAGS)
LOCAL_STATIC_LIBRARIES := \
emulator64-common \
emulator64-libext4_utils \
emulator64-libsparse \
emulator64-libselinux \
emulator64-zlib
LOCAL_LDLIBS := $(qemu_launcher_LDLIBS)
$(call gen-hw-config-defs)
ifeq ($(HOST_OS),windows)
$(eval $(call insert-windows-icon))
endif
$(call end-emulator-program)