blob: 58fc4ff93315c8878d133ee9c0634694bc4f7e54 [file] [log] [blame]
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -08001ifeq ($(TARGET_ARCH),arm)
2LOCAL_PATH:= $(call my-dir)
3
David 'Digit' Turner34d16512010-05-18 17:02:33 -07004# determine the host tag to use
5QEMU_HOST_TAG := $(HOST_PREBUILT_TAG)
6ifneq ($(USE_MINGW),)
7 QEMU_HOST_TAG := windows
8endif
9
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080010# determine the location of platform-specific directories
11#
12CONFIG_DIRS := \
13 $(LOCAL_PATH)/android/config \
David 'Digit' Turner34d16512010-05-18 17:02:33 -070014 $(LOCAL_PATH)/android/config/$(QEMU_HOST_TAG)
15
16ifeq ($(BUILD_STANDALONE_EMULATOR),true)
17 CONFIG_DIRS := $(LOCAL_PATH)/objs $(CONFIG_DIRS)
18endif
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080019
20CONFIG_INCLUDES := $(CONFIG_DIRS:%=-I%)
21
Kenny Root095cd0f2009-09-19 18:32:44 -050022MY_CC := $(HOST_CC)
23
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -070024MY_OPTIM := -O2 -g -fno-PIC -falign-functions=0 -fomit-frame-pointer
25ifeq ($(BUILD_DEBUG_EMULATOR),true)
26 MY_OPTIM := -O0 -g
27endif
28
David 'Digit' Turner9a0f1fb2010-02-25 14:22:29 -080029MY_CFLAGS := $(CONFIG_INCLUDES) $(MY_OPTIM)
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080030
David 'Digit' Turner466f5482009-07-30 15:50:19 +020031# Overwrite configuration for debug builds.
32#
33ifeq ($(BUILD_DEBUG_EMULATOR),true)
34 MY_CFLAGS := $(CONFIG_INCLUDES) -O0 -g \
35 -fno-PIC -falign-functions=0
36endif
37
David 'Digit' Turner9a0f1fb2010-02-25 14:22:29 -080038MY_CFLAGS += -DCONFIG_MEMCHECK
39
David 'Digit' Turnerb95f8922009-08-21 23:10:16 -070040MY_LDLIBS :=
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080041
42# this is needed to build the emulator on 64-bit Linux systems
43ifeq ($(HOST_OS)-$(HOST_ARCH),linux-x86)
44 MY_CFLAGS += -Wa,--32
45endif
46
47ifeq ($(HOST_OS),freebsd)
48 MY_CFLAGS += -Wa,--32 -I /usr/local/include
49endif
50
51ifeq ($(HOST_OS),windows)
52 MY_CFLAGS += -D_WIN32 -mno-cygwin
53 # we need Win32 features that are available since Windows 2000 Professional/Server (NT 5.0)
54 MY_CFLAGS += -DWINVER=0x501
55endif
56
57ifeq ($(HOST_ARCH),ppc)
58 MY_CFLAGS += -D__powerpc__
59endif
60
61ifeq ($(HOST_OS),darwin)
David 'Digit' Turner2910f182010-05-10 18:48:35 -070062 MY_CFLAGS += -mdynamic-no-pic
David Turnerbba461c2009-06-03 10:48:15 -070063
64 # When building on Leopard or above, we need to use the 10.4 SDK
65 # or the generated binary will not run on Tiger.
66 DARWIN_VERSION := $(strip $(shell sw_vers -productVersion))
Jeff Hamiltond0d97342010-05-27 11:41:41 -050067 ifneq ($(filter 10.1 10.2 10.3 10.1.% 10.2.% 10.3.% 10.4 10.4.%,$(DARWIN_VERSION)),)
68 $(error Building the Android emulator requires OS X 10.5 or above)
David Turnerbba461c2009-06-03 10:48:15 -070069 endif
Jeff Hamiltond0d97342010-05-27 11:41:41 -050070 ifeq ($(filter 10.5 10.5.%,$(DARWIN_VERSION)),)
71 # We are on Snow Leopard or above
72 LEOPARD_SDK := /Developer/SDKs/MacOSX10.5.sdk
73 ifeq ($(strip $(wildcard $(LEOPARD_SDK))),)
74 $(info Please install the 10.5 SDK on this machine at $(LEOPARD_SDK))
David Turnerbba461c2009-06-03 10:48:15 -070075 $(error Aborting the build.)
76 endif
Jeff Hamiltond0d97342010-05-27 11:41:41 -050077 MY_CFLAGS += -isysroot $(LEOPARD_SDK) -mmacosx-version-min=10.5 -DMACOSX_DEPLOYMENT_TARGET=10.5
78 MY_LDLIBS += -isysroot $(LEOPARD_SDK) -Wl,-syslibroot,$(LEOPARD_SDK) -mmacosx-version-min=10.5
David Turnerbba461c2009-06-03 10:48:15 -070079 endif
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080080endif
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080081
82# BUILD_STANDALONE_EMULATOR is only defined when building with
83# the android-rebuild.sh script. The script will also provide
84# adequate values for HOST_CC
85#
86ifneq ($(BUILD_STANDALONE_EMULATOR),true)
87
88 ifneq ($(USE_CCACHE),)
89 MY_CC := prebuilt/$(HOST_PREBUILT_TAG)/ccache/ccache $(MY_CC)
90 endif
91endif
92
93
94ifneq ($(combo_target)$(TARGET_SIMULATOR),HOST_true)
95 ifneq ($(HOST_ARCH),x86_64)
David 'Digit' Turnerb95f8922009-08-21 23:10:16 -070096 MY_CFLAGS += -m32
97 MY_LDLIBS += -m32
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080098 endif
99endif
100
101include $(CLEAR_VARS)
102
103###########################################################
104# Zlib configuration
105#
106ZLIB_DIR := distrib/zlib-1.2.3
107include $(LOCAL_PATH)/$(ZLIB_DIR)/sources.make
108
109###########################################################
110# Libpng configuration
111#
112LIBPNG_DIR := distrib/libpng-1.2.19
113include $(LOCAL_PATH)/$(LIBPNG_DIR)/sources.make
114
115###############################################################################
116# build the TCG code generator
117#
118include $(CLEAR_VARS)
119
120LOCAL_NO_DEFAULT_COMPILER_FLAGS := true
121LOCAL_CC := $(MY_CC)
122LOCAL_CFLAGS := $(MY_CFLAGS) $(LOCAL_CFLAGS)
David 'Digit' Turnerb95f8922009-08-21 23:10:16 -0700123LOCAL_LDLIBS := $(MY_LDLIBS)
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800124LOCAL_MODULE := emulator-tcg
125
126TCG_TARGET := $(HOST_ARCH)
127ifeq ($(TCG_TARGET),x86)
128 TCG_TARGET := i386
129endif
130
131TCG_CFLAGS := -I$(LOCAL_PATH)/tcg -I$(LOCAL_PATH)/tcg/$(TCG_TARGET)
132
133LOCAL_CFLAGS += $(TCG_CFLAGS) \
134 -I$(LOCAL_PATH)/target-arm \
135 -I$(LOCAL_PATH)/fpu \
136
137LOCAL_SRC_FILES := \
138 tcg/tcg.c \
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800139
140include $(BUILD_HOST_STATIC_LIBRARY)
141
142##############################################################################
143# build the HW emulation support
144#
145include $(CLEAR_VARS)
146
147LOCAL_NO_DEFAULT_COMPILER_FLAGS := true
148LOCAL_CC := $(MY_CC)
Jeff Hamiltond0d97342010-05-27 11:41:41 -0500149LOCAL_LDLIBS := $(MY_LDLIBS)
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800150LOCAL_MODULE := emulator-hw
151
152HW_CFLAGS := -I$(LOCAL_PATH)/hw
153
154LOCAL_CFLAGS := $(MY_CFLAGS) $(LOCAL_CFLAGS)
155LOCAL_CFLAGS += -I$(LOCAL_PATH)/target-arm -I$(LOCAL_PATH)/fpu $(HW_CFLAGS)
156LOCAL_CFLAGS += $(ZLIB_CFLAGS) -I$(LOCAL_PATH)/$(ZLIB_DIR)
157
158HW_SOURCES := \
159 android_arm.c \
160 arm_pic.c \
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700161 bt.c \
162 bt-hci.c \
163 bt-hid.c \
164 bt-l2cap.c \
165 bt-sdp.c \
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800166 cdrom.c \
167 dma.c \
168 irq.c \
169 goldfish_audio.c \
170 goldfish_battery.c \
171 goldfish_device.c \
172 goldfish_events_device.c \
173 goldfish_fb.c \
174 goldfish_interrupt.c \
175 goldfish_memlog.c \
176 goldfish_mmc.c \
177 goldfish_nand.c \
178 goldfish_switch.c \
179 goldfish_timer.c \
180 goldfish_trace.c \
181 goldfish_tty.c \
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700182 msmouse.c \
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800183 pci.c \
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700184 qdev.c \
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800185 scsi-disk.c \
186 smc91c111.c \
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700187 sysbus.c \
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800188 usb-hid.c \
189 usb-hub.c \
190 usb-msd.c \
191 usb-ohci.c \
192 usb.c \
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700193 watchdog.c \
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800194
195LOCAL_SRC_FILES += $(HW_SOURCES:%=hw/%)
196
197include $(BUILD_HOST_STATIC_LIBRARY)
198
199##############################################################################
Vladimir Chtchetkine5389aa12010-02-16 10:38:35 -0800200# build the ELF/DWARF stuff
201# This library is used by emulator's memory checker to extract debug information
202# from the symbol files when reporting memory allocation violations. In
203# particular, this library is used to extract routine name and source file
204# location for the code address where violation has been detected.
205#
206include $(CLEAR_VARS)
207
208LOCAL_NO_DEFAULT_COMPILER_FLAGS := true
209LOCAL_CC := $(MY_CC)
Jeff Hamiltond0d97342010-05-27 11:41:41 -0500210LOCAL_LDLIBS := $(MY_LDLIBS)
Vladimir Chtchetkine5389aa12010-02-16 10:38:35 -0800211LOCAL_MODULE := emulator-elff
212LOCAL_CPP_EXTENSION := .cc
213
214ELFF_CFLAGS := -I$(LOCAL_PATH)/elff
215
David 'Digit' Turner3d66dc72010-01-27 18:18:41 -0800216LOCAL_CFLAGS := $(MY_CFLAGS) $(LOCAL_CFLAGS) -fno-exceptions
Vladimir Chtchetkine5389aa12010-02-16 10:38:35 -0800217LOCAL_CFLAGS += -I$(LOCAL_PATH)/target-arm -I$(LOCAL_PATH)/fpu $(ELFF_CFLAGS)
218LOCAL_CFLAGS += $(ZLIB_CFLAGS) -I$(LOCAL_PATH)/$(ZLIB_DIR)
219
220ELFF_SOURCES := \
221 dwarf_cu.cc \
222 dwarf_die.cc \
223 dwarf_utils.cc \
224 elf_alloc.cc \
225 elf_file.cc \
226 elf_mapped_section.cc \
227 elff_api.cc \
228
229LOCAL_SRC_FILES += $(ELFF_SOURCES:%=elff/%)
230ELFF_LDLIBS := -lstdc++
231
232include $(BUILD_HOST_STATIC_LIBRARY)
233
234##############################################################################
235# build the memory access checking support
236# Memory access checker uses information collected by instrumented code in
237# libc.so in order to keep track of memory blocks allocated from heap. Memory
238# checker then uses this information to make sure that every access to allocated
239# memory is within allocated block. This information also allows detecting
240# memory leaks and attempts to free/realloc invalid pointers.
241#
242include $(CLEAR_VARS)
243
244LOCAL_NO_DEFAULT_COMPILER_FLAGS := true
245LOCAL_CC := $(MY_CC)
Jeff Hamiltond0d97342010-05-27 11:41:41 -0500246LOCAL_LDLIBS := $(MY_LDLIBS)
Vladimir Chtchetkine5389aa12010-02-16 10:38:35 -0800247LOCAL_MODULE := emulator-memcheck
248
249MCHK_CFLAGS := -I$(LOCAL_PATH)/memcheck -I$(LOCAL_PATH)/elff
250
251LOCAL_CFLAGS := $(MY_CFLAGS) $(LOCAL_CFLAGS)
252LOCAL_CFLAGS += -I$(LOCAL_PATH)/target-arm -I$(LOCAL_PATH)/fpu $(MCHK_CFLAGS)
253LOCAL_CFLAGS += $(ZLIB_CFLAGS) -I$(LOCAL_PATH)/$(ZLIB_DIR)
254
255MCHK_SOURCES := \
256 memcheck.c \
257 memcheck_proc_management.c \
258 memcheck_malloc_map.c \
259 memcheck_mmrange_map.c \
260 memcheck_util.c \
261
262LOCAL_SRC_FILES += $(MCHK_SOURCES:%=memcheck/%)
263
264include $(BUILD_HOST_STATIC_LIBRARY)
265
266##############################################################################
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800267# build the ARM-specific emulation engine sources
268#
269include $(CLEAR_VARS)
270
271LOCAL_NO_DEFAULT_COMPILER_FLAGS := true
272LOCAL_CC := $(MY_CC)
273LOCAL_MODULE := emulator-arm
David 'Digit' Turnerb95f8922009-08-21 23:10:16 -0700274LOCAL_LDLIBS := $(MY_LDLIBS)
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800275LOCAL_CFLAGS := $(MY_CFLAGS) $(LOCAL_CFLAGS)
276LOCAL_STATIC_LIBRARIES := emulator-hw
277
278LOCAL_CFLAGS := -fno-PIC -fomit-frame-pointer -Wno-sign-compare
279LOCAL_CFLAGS := $(MY_CFLAGS) $(LOCAL_CFLAGS)
280
281LOCAL_CFLAGS += -I$(LOCAL_PATH) \
282 -I$(LOCAL_PATH)/target-arm \
283 -I$(LOCAL_PATH)/fpu \
284 $(TCG_CFLAGS) \
285 $(HW_CFLAGS) \
286
287ifeq ($(HOST_ARCH),ppc)
288 LOCAL_CFLAGS += -D__powerpc__
289endif
290
291LOCAL_SRC_FILES += exec.c cpu-exec.c \
292 target-arm/op_helper.c \
293 target-arm/iwmmxt_helper.c \
294 target-arm/neon_helper.c \
295 target-arm/helper.c \
296 target-arm/translate.c \
297 target-arm/machine.c \
298 translate-all.c \
299 hw/armv7m.c \
300 hw/armv7m_nvic.c \
301 arm-semi.c \
302 trace.c \
303 varint.c \
304 dcache.c \
Vladimir Chtchetkine5389aa12010-02-16 10:38:35 -0800305 softmmu_outside_jit.c \
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800306
307LOCAL_SRC_FILES += fpu/softfloat.c
308
309include $(BUILD_HOST_STATIC_LIBRARY)
310
311##############################################################################
312# SDL-related definitions
313#
314
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700315# Build SDL from sources except on linux-x86, to avoid installing all
316# the X11 development packages on our build servers.
317#
318BUILD_SDL_FROM_SOURCES := true
319ifeq ($(QEMU_HOST_TAG),linux-x86)
320 BUILD_SDL_FROM_SOURCES := false
321endif
David 'Digit' Turnerb74c48f2010-05-20 15:17:32 -0700322ifeq ($(QEMU_HOST_TAG),darwin-x86)
323 BUILD_SDL_FROM_SOURCES := false
324endif
David 'Digit' Turner34f29742010-05-25 18:16:10 -0700325ifeq ($(BUILD_STANDALONE_EMULATOR),true)
326 BUILD_SDL_FROM_SOURCES := true
327endif
328
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700329ifneq ($(SDL_CONFIG),)
330 BUILD_SDL_FROM_SOURCES := false
331endif
332
333ifneq ($(BUILD_SDL_FROM_SOURCES),true)
334
335SDL_CONFIG ?= prebuilt/$(QEMU_HOST_TAG)/sdl/bin/sdl-config
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800336SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags)
337
338# We need to filter out the _GNU_SOURCE variable because it breaks recent
339# releases of Cygwin when using the -mno-cygwin option. Moreover, we don't
340# need this macro at all to build the Android emulator.
341SDL_CFLAGS := $(filter-out -D_GNU_SOURCE=1,$(SDL_CFLAGS))
342SDL_LDLIBS := $(filter-out %.a %.lib,$(shell $(SDL_CONFIG) --static-libs))
343
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700344# Circular dependencies between libSDL and libSDLmain;
345# We repeat the libraries in the final link to work around it.
346SDL_STATIC_LIBRARIES := libSDL libSDLmain libSDL libSDLmain
347
348else # !BUILD_STANDALONE_EMULATOR
349
350SDL_DIR := distrib/sdl-1.2.12
351include $(LOCAL_PATH)/$(SDL_DIR)/sources.make
352
353endif # !BUILD_STANDALONE_EMULATOR
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800354
355##############################################################################
356# determine audio sources, build the prebuilt audio-library if needed
357#
358
359# determine AUDIO sources based on current configuration
360#
Vladimir Chtchetkineeeac0132010-05-03 10:46:28 -0700361AUDIO_SOURCES := audio.c noaudio.c wavaudio.c wavcapture.c mixeng.c
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800362AUDIO_CFLAGS := -I$(LOCAL_PATH)/audio -DHAS_AUDIO
363AUDIO_LDLIBS :=
364
365ifeq ($(HOST_OS),darwin)
366 CONFIG_COREAUDIO ?= yes
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700367 AUDIO_CFLAGS += -DHOST_BSD=1
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800368endif
369
370ifeq ($(HOST_OS),windows)
371 CONFIG_WINAUDIO ?= yes
372endif
373
374ifeq ($(HOST_OS),linux)
375 CONFIG_OSS ?= yes
376 CONFIG_ALSA ?= yes
377 CONFIG_ESD ?= yes
378endif
379
380ifeq ($(HOST_OS),freebsd)
381 CONFIG_OSS ?= yes
382endif
383
384ifeq ($(CONFIG_COREAUDIO),yes)
385 AUDIO_SOURCES += coreaudio.c
386 AUDIO_CFLAGS += -DCONFIG_COREAUDIO
387 AUDIO_LDLIBS += -Wl,-framework,CoreAudio
388endif
389
390ifeq ($(CONFIG_WINAUDIO),yes)
391 AUDIO_SOURCES += winaudio.c
392 AUDIO_CFLAGS += -DCONFIG_WINAUDIO
393endif
394
395ifeq ($(CONFIG_ALSA),yes)
396 AUDIO_SOURCES += alsaaudio.c audio_pt_int.c
397 AUDIO_CFLAGS += -DCONFIG_ALSA
398endif
399
400ifeq ($(CONFIG_ESD),yes)
401 AUDIO_SOURCES += esdaudio.c
402 AUDIO_CFLAGS += -DCONFIG_ESD
403endif
404
405ifeq ($(CONFIG_OSS),yes)
406 AUDIO_SOURCES += ossaudio.c
407 AUDIO_CFLAGS += -DCONFIG_OSS
408endif
409
410AUDIO_SOURCES := $(AUDIO_SOURCES:%=audio/%)
411
412# determine whether we're going to use the prebuilt
413# audio library (this is useful on Linux to avoid requiring
414# all sound-related development packages to be installed on
415# the build and developer machines).
416#
417# note that you can define BUILD_QEMU_AUDIO_LIB to true
418# in your environment to force recompilation.
419#
420QEMU_AUDIO_LIB :=
421
422ifneq ($(BUILD_STANDALONE_EMULATOR),true)
423 QEMU_AUDIO_LIB := $(wildcard \
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700424 prebuilt/$(QEMU_HOST_TAG)/emulator/libqemu-audio.a)
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800425endif
426
427ifeq ($(BUILD_QEMU_AUDIO_LIB),true)
428 include $(CLEAR_VARS)
429 LOCAL_NO_DEFAULT_COMPILER_FLAGS := true
430 LOCAL_CC := $(MY_CC)
431 LOCAL_MODULE := libqemu-audio
David 'Digit' Turnerb95f8922009-08-21 23:10:16 -0700432 LOCAL_LDLIBS := $(MY_LDLIBS)
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800433
434 LOCAL_CFLAGS := -Wno-sign-compare \
435 -fno-strict-aliasing -W -Wall -Wno-unused-parameter \
436 -I$(LOCAL_PATH) \
437 -I$(LOCAL_PATH)/target-arm \
438 -I$(LOCAL_PATH)/fpu \
439
David 'Digit' Turner46be4872009-06-04 16:07:01 +0200440 # this is very important, otherwise the generated binaries may
441 # not link properly on our build servers
442 ifeq ($(HOST_OS),linux)
443 LOCAL_CFLAGS += -fno-stack-protector
444 endif
445
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800446 LOCAL_CFLAGS := $(MY_CFLAGS) $(LOCAL_CFLAGS) $(AUDIO_CFLAGS)
447
448 LOCAL_CFLAGS += $(SDL_CFLAGS)
449
450 LOCAL_SRC_FILES += $(AUDIO_SOURCES)
451
452 include $(BUILD_HOST_STATIC_LIBRARY)
453 QEMU_AUDIO_LIB := $(LOCAL_BUILT_MODULE)
454
455endif # !QEMU_AUDIO_LIB
456
457##############################################################################
Vladimir Chtchetkinea05284d2010-06-10 10:45:55 -0700458# Build emulator core library.
459# This library contains "pure" emulation code separated from the intricacies
460# of the UI.
461#
462include $(CLEAR_VARS)
463
464LOCAL_NO_DEFAULT_COMPILER_FLAGS := true
465LOCAL_CC := $(MY_CC)
466LOCAL_LDLIBS := $(MY_LDLIBS)
467LOCAL_MODULE := emulator-core
468
469# don't remove the -fno-strict-aliasing, or you'll break things
470# (e.g. slirp-android/network support)
471#
Vladimir Chtchetkine526a9912010-06-10 11:15:27 -0700472EMULATOR_CORE_CFLAGS := -fno-PIC -Wno-sign-compare \
Vladimir Chtchetkinea05284d2010-06-10 10:45:55 -0700473 -fno-strict-aliasing -g -W -Wall -Wno-unused-parameter
474
Vladimir Chtchetkine526a9912010-06-10 11:15:27 -0700475# Needed by the upstream code
476EMULATOR_CORE_CFLAGS += -DNEED_CPU_H
Vladimir Chtchetkinea05284d2010-06-10 10:45:55 -0700477
478# Common includes for the emulator
Vladimir Chtchetkine526a9912010-06-10 11:15:27 -0700479EMULATOR_CORE_CFLAGS += -I$(LOCAL_PATH)/ \
480 -I$(LOCAL_PATH)/target-arm \
481 -I$(LOCAL_PATH)/fpu \
482 $(TCG_CFLAGS) \
483 $(HW_CFLAGS) \
Vladimir Chtchetkinea05284d2010-06-10 10:45:55 -0700484
485# include slirp-android code, i.e. the user-level networking stuff
486#
487SLIRP_SOURCES := bootp.c cksum.c debug.c if.c ip_icmp.c ip_input.c ip_output.c \
488 mbuf.c misc.c sbuf.c slirp.c socket.c tcp_input.c tcp_output.c \
489 tcp_subr.c tcp_timer.c tftp.c udp.c
490
491LOCAL_SRC_FILES += $(SLIRP_SOURCES:%=slirp-android/%)
Vladimir Chtchetkine526a9912010-06-10 11:15:27 -0700492EMULATOR_CORE_CFLAGS += -I$(LOCAL_PATH)/slirp-android
Vladimir Chtchetkinea05284d2010-06-10 10:45:55 -0700493
494# socket proxy support
495#
496PROXY_SOURCES := \
497 proxy_common.c \
498 proxy_http.c \
499 proxy_http_connector.c \
500 proxy_http_rewriter.c \
501
502LOCAL_SRC_FILES += $(PROXY_SOURCES:%=proxy/%)
Vladimir Chtchetkine526a9912010-06-10 11:15:27 -0700503EMULATOR_CORE_CFLAGS += -I$(LOCAL_PATH)/proxy
Vladimir Chtchetkinea05284d2010-06-10 10:45:55 -0700504
505# include telephony stuff
506#
507TELEPHONY_SOURCES := android_modem.c modem_driver.c gsm.c sim_card.c sysdeps_qemu.c sms.c remote_call.c
508LOCAL_SRC_FILES += $(TELEPHONY_SOURCES:%=telephony/%)
Vladimir Chtchetkine526a9912010-06-10 11:15:27 -0700509EMULATOR_CORE_CFLAGS += -I$(LOCAL_PATH)/telephony
510
511LOCAL_CFLAGS := $(MY_CFLAGS) $(LOCAL_CFLAGS) $(EMULATOR_CORE_CFLAGS)
Vladimir Chtchetkinea05284d2010-06-10 10:45:55 -0700512
513include $(BUILD_HOST_STATIC_LIBRARY)
514
515##############################################################################
516# Build emulator UI library.
517# This library contains some emulator related UI components.
518#
519include $(CLEAR_VARS)
520
521LOCAL_NO_DEFAULT_COMPILER_FLAGS := true
522LOCAL_CC := $(MY_CC)
523LOCAL_LDLIBS := $(MY_LDLIBS)
524LOCAL_MODULE := emulator-ui
525
Vladimir Chtchetkine526a9912010-06-10 11:15:27 -0700526EMULATOR_UI_CFLAGS :=
Vladimir Chtchetkinea05284d2010-06-10 10:45:55 -0700527
528# include the SDL sources
529#
David 'Digit' Turnerca85ee22010-06-10 15:14:55 -0700530
531# IMPORTANT: Normally, we should add SDLMAIN_SOURCES here, however this breaks
532# the Linux mingw32 build. Apparently, the i586-mingw32-ld wants the
533# implementation of _WinMain@16 to be in an object file on the final
534# link command used to generate the executable, and will not search
535# in the static libraries that are used to build it.
536#
537LOCAL_SRC_FILES += $(SDL_SOURCES) #$(SDLMAIN_SOURCES)
Vladimir Chtchetkine526a9912010-06-10 11:15:27 -0700538EMULATOR_UI_CFLAGS += $(SDL_CFLAGS) -I$(LOCAL_PATH)/$(SDL_DIR)/include
Vladimir Chtchetkinea05284d2010-06-10 10:45:55 -0700539
540# the skin support sources
541#
542SKIN_SOURCES := rect.c \
543 region.c \
544 image.c \
545 trackball.c \
546 keyboard.c \
547 keyset.c \
548 file.c \
549 window.c \
550 scaler.c \
551 composer.c \
552 surface.c \
553
554LOCAL_SRC_FILES += $(SKIN_SOURCES:%=android/skin/%)
Vladimir Chtchetkine526a9912010-06-10 11:15:27 -0700555EMULATOR_UI_CFLAGS += -I$(LOCAL_PATH)/skin
556
557LOCAL_CFLAGS := $(MY_CFLAGS) $(LOCAL_CFLAGS) $(EMULATOR_CORE_CFLAGS) $(EMULATOR_UI_CFLAGS)
Vladimir Chtchetkinea05284d2010-06-10 10:45:55 -0700558
559include $(BUILD_HOST_STATIC_LIBRARY)
560
561
562##############################################################################
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800563# now build the emulator itself
564#
565include $(CLEAR_VARS)
566
567LOCAL_NO_DEFAULT_COMPILER_FLAGS := true
568LOCAL_CC := $(MY_CC)
569LOCAL_MODULE := emulator
Vladimir Chtchetkine5389aa12010-02-16 10:38:35 -0800570LOCAL_STATIC_LIBRARIES := emulator-memcheck emulator-hw emulator-arm emulator-tcg
571LOCAL_STATIC_LIBRARIES += emulator-elff
Vladimir Chtchetkinea05284d2010-06-10 10:45:55 -0700572LOCAL_STATIC_LIBRARIES += emulator-core emulator-ui
David 'Digit' Turnerb95f8922009-08-21 23:10:16 -0700573LOCAL_LDLIBS := $(MY_LDLIBS)
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800574
Vladimir Chtchetkine526a9912010-06-10 11:15:27 -0700575LOCAL_CFLAGS := $(MY_CFLAGS) $(LOCAL_CFLAGS) $(EMULATOR_CORE_CFLAGS) $(EMULATOR_UI_CFLAGS)
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800576
577# add the build ID to the default macro definitions
578LOCAL_CFLAGS += -DANDROID_BUILD_ID="$(strip $(BUILD_ID))-$(strip $(BUILD_NUMBER))"
579
David 'Digit' Turnera383d022009-12-03 13:50:00 -0800580# For non-standalone builds, extract the major version number from the Android SDK
581# tools revision number.
582ifneq ($(BUILD_STANDALONE_EMULATOR),true)
583 ANDROID_SDK_TOOLS_REVISION := $(shell awk -F= '/Pkg.Revision/ { print $$2; }' sdk/files/tools_source.properties)
584endif
585
586ANDROID_SDK_TOOLS_REVISION := $(strip $(ANDROID_SDK_TOOLS_REVISION))
587ifdef ANDROID_SDK_TOOLS_REVISION
588 LOCAL_CFLAGS += -DANDROID_SDK_TOOLS_REVISION=$(ANDROID_SDK_TOOLS_REVISION)
589endif
590
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800591# include the Zlib sources
592#
593LOCAL_SRC_FILES += $(ZLIB_SOURCES)
594LOCAL_CFLAGS += $(ZLIB_CFLAGS) -I$(LOCAL_PATH)/$(ZLIB_DIR)
595
596# include the Libpng sources
597#
598LOCAL_SRC_FILES += $(LIBPNG_SOURCES)
599LOCAL_CFLAGS += $(LIBPNG_CFLAGS) -I$(LOCAL_PATH)/$(LIBPNG_DIR)
600
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800601# include sound support source files. we first try to see if we have a prebuilt audio
602# library. if not, we build things the "hard" way.
603#
604# note that to generate the prebuilt audio library, you should do the following:
605#
606# cd tools/qemu
607# ./android-rebuild.sh
608# distrib/update-audio.sh
609#
610ifeq ($(QEMU_AUDIO_LIB),)
611 LOCAL_SRC_FILES += $(AUDIO_SOURCES)
612endif # !QEMU_AUDIO_LIB
613
614LOCAL_CFLAGS += $(AUDIO_CFLAGS)
615LOCAL_LDLIBS += $(AUDIO_LDLIBS)
616
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800617# the linux-user sources, I doubt we really need these
618#
619#LINUX_SOURCES := main.c elfload.c mmap.c signal.c path.c syscall.c
620#LOCAL_SRC_FILES += $(LINUX_SOURCES:%=linux-user/%)
621
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800622ifeq ($(HOST_ARCH),x86)
623# enable MMX code for our skin scaler
624LOCAL_CFLAGS += -DUSE_MMX=1 -mmmx
625endif
626
627# include other sources
628#
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700629VL_SOURCES := vl-android.c osdep.c cutils.c \
David 'Digit' Turnere3c83b52010-06-15 17:43:06 -0700630 block.c readline.c monitor.c console.c loader.c sockets.c \
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700631 aes.c d3des.c \
David 'Digit' Turnere3c83b52010-06-15 17:43:06 -0700632 block/qcow.c \
633 block/qcow2.c \
634 block/qcow2-refcount.c \
635 block/qcow2-snapshot.c \
636 block/qcow2-cluster.c \
637 block/cloop.c \
638 block/dmg.c \
639 block/vvfat.c \
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700640 buffered_file.c \
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800641 cbuffer.c \
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700642 gdbstub.c \
David 'Digit' Turner3266b512010-05-10 18:44:56 -0700643 ioport.c \
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700644 vnc-android.c disas.c arm-dis.c \
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800645 shaper.c charpipe.c loadpng.c \
646 framebuffer.c \
647 tcpdump.c \
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700648 qemu-char-android.c \
649 qemu-malloc.c \
650 qemu-option.c \
651 savevm.c \
652 net-android.c \
653 acl.c \
654 aio-android.c \
655 dma-helpers.c \
656 qemu-sockets-android.c \
657 keymaps.c \
658 bt-host.c \
659 bt-vhci.c \
660 module.c \
David 'Digit' Turner2910f182010-05-10 18:48:35 -0700661 json-lexer.c \
662 json-parser.c \
663 json-streamer.c \
664 qbool.c \
665 qdict.c \
666 qfloat.c \
667 qint.c \
668 qjson.c \
669 qlist.c \
670 qstring.c \
David 'Digit' Turner34f29742010-05-25 18:16:10 -0700671 user-events-qemu.c \
David Turner9c0c5152009-06-02 12:30:47 -0700672 android/boot-properties.c \
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800673 android/charmap.c \
674 android/cmdline-option.c \
675 android/config.c \
676 android/console.c \
677 android/gps.c \
678 android/help.c \
679 android/hw-control.c \
680 android/hw-events.c \
681 android/hw-kmsg.c \
David 'Digit' Turnerc5b12702009-06-19 00:36:12 +0200682 android/hw-lcd.c \
The Android Open Source Project9877e2e2009-03-18 17:39:44 -0700683 android/hw-qemud.c \
684 android/hw-sensors.c \
David 'Digit' Turner87250c22009-09-17 16:45:03 -0700685 android/keycode.c \
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800686 android/main.c \
Vladimir Chtchetkined27aca12010-05-13 11:04:42 -0700687 android/qemu-setup.c \
Vladimir Chtchetkine01193622010-05-11 13:07:22 -0700688 android/qemulator.c \
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800689 android/resource.c \
690 android/user-config.c \
691 android/utils/bufprint.c \
692 android/utils/debug.c \
693 android/utils/dirscanner.c \
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800694 android/utils/ini.c \
695 android/utils/filelock.c \
696 android/utils/misc.c \
697 android/utils/path.c \
698 android/utils/reflist.c \
699 android/utils/stralloc.c \
700 android/utils/system.c \
701 android/utils/tempfile.c \
702 android/utils/timezone.c \
Vladimir Chtchetkine8339d182010-03-25 10:57:29 -0700703 android/utils/mapfile.c \
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800704 android/avd/hw-config.c \
705 android/avd/info.c \
706
David 'Digit' Turnere3c83b52010-06-15 17:43:06 -0700707VL_SOURCES += hw/arm_boot.c \
708 hw/android_arm.c \
709
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800710ifeq ($(HOST_OS),windows)
David 'Digit' Turnere3c83b52010-06-15 17:43:06 -0700711 VL_SOURCES += block/raw-win32.c \
712 migration-dummy-android.c \
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700713 iolooper-select.c
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800714else
David 'Digit' Turnere3c83b52010-06-15 17:43:06 -0700715 VL_SOURCES += block/raw-posix.c \
716 migration.c \
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700717 migration-exec.c \
718 migration-tcp-android.c \
719 iolooper-select.c
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800720endif
721
722ifeq ($(HOST_OS),linux)
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700723 VL_SOURCES += usb-linux.c \
724 qemu-thread.c
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700725else
726 VL_SOURCES += usb-dummy-android.c
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800727endif
728
729ifeq ($(HOST_ARCH),x86)
730 VL_SOURCES += i386-dis.c
731endif
732ifeq ($(HOST_ARCH),x86_64)
733 VL_SOURCES += i386-dis.c
734endif
735ifeq ($(HOST_ARCH),ppc)
736 VL_SOURCES += ppc-dis.c
737endif
738
739ifeq ($(HOST_OS),windows)
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700740 VL_SOURCES += tap-win32.c
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800741 LOCAL_LDLIBS += -mno-cygwin -mwindows -mconsole
742endif
743
Alexey Tarasov43fbac12009-06-15 14:28:15 +1100744ifeq ($(HOST_OS),freebsd)
745 LOCAL_LDLIBS += -L/usr/local/lib -lpthread -lX11 -lutil
746endif
747
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800748LOCAL_SRC_FILES += $(VL_SOURCES)
749
750ifeq ($(HOST_OS),linux)
751 LOCAL_LDLIBS += -lutil -lrt
752endif
753
754# add SDL-specific flags
755#
756LOCAL_CFLAGS += $(SDL_CFLAGS)
757LOCAL_LDLIBS += $(SDL_LDLIBS)
David 'Digit' Turner34d16512010-05-18 17:02:33 -0700758LOCAL_STATIC_LIBRARIES += $(SDL_STATIC_LIBRARIES)
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800759
Vladimir Chtchetkine5389aa12010-02-16 10:38:35 -0800760# add ELFF-specific flags
761#
762LOCAL_LDLIBS += $(ELFF_LDLIBS)
763
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800764# on Windows, link the icon file as well into the executable
765# unfortunately, our build system doesn't help us much, so we need
766# to use some weird pathnames to make this work...
767#
768ifeq ($(HOST_OS),windows)
Raphaelaea1b872010-04-14 12:16:28 -0700769
770# Locate windres executable
771WINDRES := windres
772ifneq ($(USE_MINGW),)
773 # When building the Windows emulator under Linux, use the MinGW one
774 WINDRES := i586-mingw32msvc-windres
775endif
776
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800777INTERMEDIATE := $(call intermediates-dir-for,EXECUTABLES,$(LOCAL_MODULE),true)
778ANDROID_ICON_OBJ := android_icon.o
779ANDROID_ICON_PATH := $(LOCAL_PATH)/images
780$(ANDROID_ICON_PATH)/$(ANDROID_ICON_OBJ): $(ANDROID_ICON_PATH)/android_icon.rc
Raphaelaea1b872010-04-14 12:16:28 -0700781 $(WINDRES) $< -I $(ANDROID_ICON_PATH) -o $@
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800782
783# seems to be the only way to add an object file that was not generated from
784# a C/C++/Java source file to our build system. and very unfortunately,
785# $(TOPDIR)/$(LOCALPATH) will always be prepended to this value, which forces
786# us to put the object file in the source directory...
787#
788LOCAL_PREBUILT_OBJ_FILES += images/$(ANDROID_ICON_OBJ)
789endif
790
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700791# qemu-options.h is generated from qemu-options.hx with the "hxtool" shell script
792#
793intermediates := $(call intermediates-dir-for,EXECUTABLES,$(LOCAL_MODULE),true)
794
795QEMU_OPTIONS_H := $(intermediates)/qemu-options.h
796$(QEMU_OPTIONS_H): PRIVATE_PATH := $(LOCAL_PATH)
797$(QEMU_OPTIONS_H): PRIVATE_CUSTOM_TOOL = $(PRIVATE_PATH)/hxtool -h < $< > $@
798$(QEMU_OPTIONS_H): $(LOCAL_PATH)/qemu-options.hx $(LOCAL_PATH)/hxtool
799 $(transform-generated-source)
800
801$(intermediates)/vl-android.o: $(QEMU_OPTIONS_H)
802
803LOCAL_GENERATED_SOURCES += $(QEMU_OPTIONS_H)
804
805# qemu-monitor.h is generated from qemu-monitor.hx with the "hxtool" shell script
806#
807intermediates := $(call intermediates-dir-for,EXECUTABLES,$(LOCAL_MODULE),true)
808
809QEMU_MONITOR_H := $(intermediates)/qemu-monitor.h
810$(QEMU_MONITOR_H): PRIVATE_PATH := $(LOCAL_PATH)
811$(QEMU_MONITOR_H): PRIVATE_CUSTOM_TOOL = $(PRIVATE_PATH)/hxtool -h < $< > $@
812$(QEMU_MONITOR_H): $(LOCAL_PATH)/qemu-monitor.hx $(LOCAL_PATH)/hxtool
813 $(transform-generated-source)
814
815$(intermediates)/vl-android.o: $(QEMU_MONITOR_H)
816
817LOCAL_GENERATED_SOURCES += $(QEMU_MONITOR_H)
818
819
820# gdbstub-xml.c contains C-compilable arrays corresponding to the content
821# of $(LOCAL_PATH)/gdb-xml/, and is generated with the 'feature_to_c.sh' script.
822#
823ifeq ($(QEMU_TARGET_XML_SOURCES),)
824 QEMU_TARGET_XML_SOURCES := arm-core arm-neon arm-vfp arm-vfp3
825 QEMU_TARGET_XML_SOURCES := $(QEMU_TARGET_XML_SOURCES:%=$(LOCAL_PATH)/gdb-xml/%.xml)
826endif
827
828QEMU_GDBSTUB_XML_C := $(intermediates)/gdbstub-xml.c
829$(QEMU_GDBSTUB_XML_C): PRIVATE_PATH := $(LOCAL_PATH)
830$(QEMU_GDBSTUB_XML_C): PRIVATE_SOURCES := $(TARGET_XML_SOURCES)
831$(QEMU_GDBSTUB_XML_C): PRIVATE_CUSTOM_TOOL = $(PRIVATE_PATH)/feature_to_c.sh $@ $(QEMU_TARGET_XML_SOURCES)
832$(QEMU_GDBSTUB_XML_C): $(QEMU_TARGET_XML_SOURCES) $(LOCAL_PATH)/feature_to_c.sh
833 $(hide) rm -f $@
834 $(transform-generated-source)
835
836$(intermediates)/vl-android.o: $(QEMU_GDBSTUB_XML_C)
837
838LOCAL_GENERATED_SOURCES += $(QEMU_GDBSTUB_XML_C)
839
David 'Digit' Turner065242d2009-10-07 13:43:33 -0700840# hw-config-defs.h is generated from android/avd/hardware-properties.ini
841#
David 'Digit' Turner2ec45592009-10-07 14:48:19 -0700842QEMU_HARDWARE_PROPERTIES_INI := $(LOCAL_PATH)/android/avd/hardware-properties.ini
David 'Digit' Turner065242d2009-10-07 13:43:33 -0700843QEMU_HW_CONFIG_DEFS_H := $(LOCAL_PATH)/android/avd/hw-config-defs.h
844$(QEMU_HW_CONFIG_DEFS_H): PRIVATE_PATH := $(LOCAL_PATH)
David 'Digit' Turner2ec45592009-10-07 14:48:19 -0700845$(QEMU_HW_CONFIG_DEFS_H): PRIVATE_SOURCES := $(QEMU_HARDWARE_PROPERTIES_INI)
846$(QEMU_HW_CONFIG_DEFS_H): PRIVATE_CUSTOM_TOOL = $(PRIVATE_PATH)/android/tools/gen-hw-config.py $(QEMU_HARDWARE_PROPERTIES_INI) $@
847$(QEMU_HW_CONFIG_DEFS_H): $(QEMU_HARDWARE_PROPERTIES_INI) $(LOCAL_PATH)/android/tools/gen-hw-config.py
David 'Digit' Turner065242d2009-10-07 13:43:33 -0700848 $(hide) rm -f $@
849 $(transform-generated-source)
850
851$(LOCAL_PATH)/android/avd/hw-config.h: $(QEMU_HW_CONFIG_DEFS_H)
852
853LOCAL_GENERATED_SOURCES += $(QEMU_HW_CONFIG_DEFS_H)
David 'Digit' Turner5d8f37a2009-09-14 14:32:27 -0700854
855# this is already done by the Android build system, but is done for the
856# benefit of the stand-alone one.
857#
858ifeq ($(BUILD_STANDALONE_EMULATOR),true)
859 LOCAL_CFLAGS += -I$(intermediates)
860endif
861
862
863
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800864# other flags
865LOCAL_CFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
Raphaelaea1b872010-04-14 12:16:28 -0700866LOCAL_LDLIBS += -lm
Vladimir Chtchetkine5389aa12010-02-16 10:38:35 -0800867
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800868ifeq ($(HOST_OS),windows)
869 LOCAL_LDLIBS += -lwinmm -lws2_32 -liphlpapi
Raphaelaea1b872010-04-14 12:16:28 -0700870else
871 LOCAL_LDLIBS += -lpthread
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800872endif
873
874LOCAL_LDLIBS += $(QEMU_AUDIO_LIB)
875
David 'Digit' Turnerab873b72010-03-08 18:33:50 -0800876# Generate a completely static executable if needed.
877# Note that this means no sound and graphics on Linux.
878#
879ifeq ($(CONFIG_STATIC_EXECUTABLE),true)
880 LOCAL_SRC_FILES += dynlink-static.c
881 LOCAL_LDLIBS += -static
882endif
883
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800884LOCAL_MODULE := emulator
885
David 'Digit' Turnerca85ee22010-06-10 15:14:55 -0700886# See comment about SDLMAIN_SOURCES in the 'emulator-ui' module declarations.
887LOCAL_SRC_FILES += $(SDLMAIN_SOURCES)
888
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800889include $(BUILD_HOST_EXECUTABLE)
890
891endif # TARGET_ARCH == arm