blob: d25f3574a7d39dfebc94ce8a60ae2b6a5be60620 [file] [log] [blame]
Andrew Hsiehef0a2332012-08-23 17:39:26 +08001ifneq ($(filter true% %true,$(BUILD_EMULATOR)$(BUILD_STANDALONE_EMULATOR)),)
Joe Onoratoedb86c32012-07-25 14:28:40 -07002
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -08003LOCAL_PATH:= $(call my-dir)
4
David 'Digit' Turner34d16512010-05-18 17:02:33 -07005# determine the host tag to use
6QEMU_HOST_TAG := $(HOST_PREBUILT_TAG)
7ifneq ($(USE_MINGW),)
8 QEMU_HOST_TAG := windows
9endif
10
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080011# determine the location of platform-specific directories
12#
13CONFIG_DIRS := \
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
David 'Digit' Turner0a349b82011-03-02 12:49:26 +010022MY_CC := $(HOST_CC)
23MY_CXX := $(HOST_CXX)
David 'Digit' Turner1af82152014-03-03 20:41:37 +010024MY_LD := $(HOST_LD)
David 'Digit' Turner0a349b82011-03-02 12:49:26 +010025MY_AR := $(HOST_AR)
Kenny Root095cd0f2009-09-19 18:32:44 -050026
Lars Poeschel33da99a2012-08-22 09:42:42 +020027MY_CFLAGS := $(CONFIG_INCLUDES) -O2 -g -fno-PIC -falign-functions=0 -fomit-frame-pointer
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080028
David 'Digit' Turner466f5482009-07-30 15:50:19 +020029# Overwrite configuration for debug builds.
30#
31ifeq ($(BUILD_DEBUG_EMULATOR),true)
Iliyan Malchevd00f7c42012-03-30 10:54:20 -070032 MY_CFLAGS := $(CONFIG_INCLUDES)
33 MY_CFLAGS += -O0 -g
34 MY_CFLAGS += -fno-PIC -falign-functions=0
David 'Digit' Turner466f5482009-07-30 15:50:19 +020035endif
36
David 'Digit' Turnerb95f8922009-08-21 23:10:16 -070037MY_LDLIBS :=
David 'Digit' Turner1af82152014-03-03 20:41:37 +010038MY_LDFLAGS :=
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080039
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080040ifeq ($(HOST_OS),freebsd)
Andrew Hsiehc7389bd2012-03-13 02:13:40 -070041 MY_CFLAGS += -I /usr/local/include
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080042endif
43
44ifeq ($(HOST_OS),windows)
Andrew Hsiehc7389bd2012-03-13 02:13:40 -070045 # we need Win32 features that are available since Windows 2000 Professional/Server (NT 5.0)
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080046 MY_CFLAGS += -DWINVER=0x501
Andrew Hsiehc7389bd2012-03-13 02:13:40 -070047 MY_CFLAGS += -D_WIN32
Hadi Muliawan3d0cbda2013-07-22 11:50:57 -070048 # LARGEADDRESSAWARE gives more address space to 32-bit process
49 MY_LDLIBS += -Xlinker --large-address-aware
Ying Wang52e9ecf2014-04-23 18:24:30 -070050 ifneq ($(HOST_IS_64_BIT),)
Andrew Hsiehc7389bd2012-03-13 02:13:40 -070051 # Microsoft 64-bit compiler define both _WIN32 and _WIN64
52 MY_CFLAGS += -D_WIN64
53 # amd64-mingw32msvc- toolchain still name it vfw32. May change it once amd64-mingw32msvc-
54 # is stabilized
55 MY_LDLIBS += -lvfw32
56 else
57 MY_LDLIBS += -lvfw32
58 endif
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080059endif
60
61ifeq ($(HOST_ARCH),ppc)
62 MY_CFLAGS += -D__powerpc__
63endif
64
65ifeq ($(HOST_OS),darwin)
David 'Digit' Turnera07421f2014-01-18 14:26:43 +010066 MY_CFLAGS += -D_DARWIN_C_SOURCE=1
Andrew Hsieha5d8f652012-11-09 21:18:22 -080067 ifneq ($(host_toolchain_header),)
David 'Digit' Turnera07421f2014-01-18 14:26:43 +010068 MY_CFLAGS += -mdynamic-no-pic
Andrew Hsieha5d8f652012-11-09 21:18:22 -080069 MY_CFLAGS += -isystem $(host_toolchain_header)
David 'Digit' Turnera07421f2014-01-18 14:26:43 +010070 else
71 ifneq (,$(mac_sdk_root))
72 MY_CFLAGS += -isysroot $(mac_sdk_root) -mmacosx-version-min=$(mac_sdk_version) -DMACOSX_DEPLOYMENT_TARGET=$(mac_sdk_version)
73 MY_LDLIBS += -isysroot $(mac_sdk_root) -Wl,-syslibroot,$(mac_sdk_root) -mmacosx-version-min=$(mac_sdk_version)
Andrew Hsiehc2f0b962012-08-09 18:21:33 +080074
David 'Digit' Turnera07421f2014-01-18 14:26:43 +010075 # Clang complains about this flag being not useful anymore.
76 MY_CFLAGS := $(filter-out -falign-functions=0,$(MY_CFLAGS))
77 endif
78 endif
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080079endif
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080080
David 'Digit' Turner1af82152014-03-03 20:41:37 +010081# NOTE: The following definitions are only used by the standalone build.
82MY_EXEEXT :=
83MY_DLLEXT := .so
84ifeq ($(HOST_OS),windows)
85 MY_EXEEXT := .exe
86 MY_DLLEXT := .dll
87endif
88ifeq ($(HOST_OS),darwin)
89 MY_DLLEXT := .dylib
90endif
91
Raphael Moll9e319a92012-11-28 13:48:25 -080092# Some CFLAGS below use -Wno-missing-field-initializers but this is not
93# supported on GCC 3.x which is still present under Cygwin.
94# Find out by probing GCC for support of this flag. Note that the test
95# itself only works on GCC 4.x anyway.
96GCC_W_NO_MISSING_FIELD_INITIALIZERS := -Wno-missing-field-initializers
97ifeq ($(HOST_OS),windows)
Raphael Moll9e319a92012-11-28 13:48:25 -080098 ifeq (,$(shell gcc -Q --help=warnings 2>/dev/null | grep missing-field-initializers))
99 $(info emulator: Ignoring unsupported GCC flag $(GCC_W_NO_MISSING_FIELD_INITIALIZERS))
100 GCC_W_NO_MISSING_FIELD_INITIALIZERS :=
101 endif
Raphael Moll9e319a92012-11-28 13:48:25 -0800102endif
103
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800104# BUILD_STANDALONE_EMULATOR is only defined when building with
105# the android-rebuild.sh script. The script will also provide
106# adequate values for HOST_CC
107#
108ifneq ($(BUILD_STANDALONE_EMULATOR),true)
Ying Wang52e9ecf2014-04-23 18:24:30 -0700109 # On Linux, use our custom 32-bit host toolchain (unless HOST_IS_64_BIT=true)
Andrew Hsiehc7389bd2012-03-13 02:13:40 -0700110 # which contains the relevant headers and 32-bit libraries for audio (The host 64-bit
111 # Lucid doesn't provide these anymore, only their 64-bit versions).
David 'Digit' Turneraff94b82011-02-07 18:10:54 +0100112 ifeq ($(HOST_OS),linux)
Andrew Hsieh7db680c2014-03-13 04:18:13 -0700113 HOST_SDK_TOOLCHAIN_PREFIX := prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/x86_64-linux-
114 ifeq (,$(strip $(wildcard $(HOST_SDK_TOOLCHAIN_PREFIX)gcc)))
115 # fallback to the previous host toolchain if new one isn't available
116 HOST_SDK_TOOLCHAIN_PREFIX := prebuilts/tools/gcc-sdk/
117 endif
David 'Digit' Turneraff94b82011-02-07 18:10:54 +0100118 # Don't do anything if the toolchain is not there
Andrew Hsieh7db680c2014-03-13 04:18:13 -0700119 ifneq (,$(strip $(wildcard $(HOST_SDK_TOOLCHAIN_PREFIX)gcc)))
120 MY_CC := $(HOST_SDK_TOOLCHAIN_PREFIX)gcc
121 MY_CXX := $(HOST_SDK_TOOLCHAIN_PREFIX)g++
122 MY_AR := $(HOST_SDK_TOOLCHAIN_PREFIX)ar
123 endif # $(HOST_SDK_TOOLCHAIN_PREFIX)gcc exists
David 'Digit' Turneraff94b82011-02-07 18:10:54 +0100124 endif # HOST_OS == linux
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800125
126 ifneq ($(USE_CCACHE),)
Ying Wang762d5de2012-01-09 11:53:58 -0800127 ccache := prebuilts/misc/$(HOST_PREBUILT_TAG)/ccache/ccache
David 'Digit' Turner4ed818f2011-03-12 13:05:15 +0100128 ccache := $(strip $(wildcard $(ccache)))
Ying Wang7bf9d7f2010-10-07 15:12:11 -0700129 ifneq ($(ccache),$(firstword $(MY_CC)))
130 MY_CC := $(ccache) $(MY_CC)
Andrew Hsiehc7389bd2012-03-13 02:13:40 -0700131 MY_CXX := $(ccache) $(MY_CXX)
Ying Wang7bf9d7f2010-10-07 15:12:11 -0700132 endif
133 ccache :=
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800134 endif
135endif
136
137
138ifneq ($(combo_target)$(TARGET_SIMULATOR),HOST_true)
Ying Wang52e9ecf2014-04-23 18:24:30 -0700139 ifneq ($(HOST_IS_64_BIT),)
Andrew Hsiehc7389bd2012-03-13 02:13:40 -0700140 MY_CFLAGS += -m64
David 'Digit' Turner1af82152014-03-03 20:41:37 +0100141 MY_LDFLAGS += -m64
Andrew Hsiehc7389bd2012-03-13 02:13:40 -0700142 else
143 ifneq ($(HOST_ARCH),x86_64)
144 MY_CFLAGS += -m32
David 'Digit' Turner1af82152014-03-03 20:41:37 +0100145 MY_LDFLAGS += -m32
Andrew Hsiehc7389bd2012-03-13 02:13:40 -0700146 endif
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800147 endif
Andrew Hsieh632a0e12012-04-28 00:48:53 +0800148
149 ifneq ($(BUILD_HOST_static),)
150 MY_LDLIBS += -static
151 endif
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800152endif
153
David 'Digit' Turner7891dd32014-04-28 10:59:47 +0200154ifeq ($(HOST_OS)-$(BUILD_STANDALONE_EMULATOR),windows-true)
155 # Ensure that printf() et al use GNU printf format specifiers as required
156 # by QEMU. This is important when using the newer Mingw64 cross-toolchain.
157 # See http://sourceforge.net/apps/trac/mingw-w64/wiki/gnu%20printf
158 MY_CFLAGS += -D__USE_MINGW_ANSI_STDIO=1
159endif
160
David 'Digit' Turner4e024bb2010-09-22 14:19:28 +0200161# Enable warning, except those related to missing field initializers
162# (the QEMU coding style loves using these).
163#
Raphael Moll9e319a92012-11-28 13:48:25 -0800164MY_CFLAGS += -Wall $(GCC_W_NO_MISSING_FIELD_INITIALIZERS)
David 'Digit' Turner4e024bb2010-09-22 14:19:28 +0200165
David 'Digit' Turnere2288402014-01-09 18:35:14 +0100166# Needed to build block.c on Linux/x86_64.
David 'Digit' Turneraff94b82011-02-07 18:10:54 +0100167MY_CFLAGS += -D_GNU_SOURCE=1
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800168
David 'Digit' Turner6e9d1d42013-12-13 17:29:58 +0100169MY_CFLAGS += -I$(LOCAL_PATH)/include
170
David 'Digit' Turner910aea92014-01-15 16:53:38 +0100171# Need to include "qapi-types.h" and other auto-generated files from
172# android-configure.sh
173MY_CFLAGS += -I$(LOCAL_PATH)/qapi-auto-generated
174
David 'Digit' Turner1af82152014-03-03 20:41:37 +0100175ifneq (true,$(BUILD_STANDALONE_EMULATOR))
176my-host-tool = $(MY_$1)
177else
178my-host-tool = $(if $(strip $(LOCAL_HOST_BUILD)),$(BUILD_$1),$(MY_$1))
179endif
180
David 'Digit' Turneraff94b82011-02-07 18:10:54 +0100181# A useful function that can be used to start the declaration of a host
182# module. Avoids repeating the same stuff again and again.
183# Usage:
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800184#
David 'Digit' Turneraff94b82011-02-07 18:10:54 +0100185# $(call start-emulator-library, <module-name>)
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800186#
David 'Digit' Turneraff94b82011-02-07 18:10:54 +0100187# ... declarations
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800188#
David 'Digit' Turneraff94b82011-02-07 18:10:54 +0100189# $(call end-emulator-library)
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800190#
David 'Digit' Turneraff94b82011-02-07 18:10:54 +0100191start-emulator-library = \
192 $(eval include $(CLEAR_VARS)) \
193 $(eval LOCAL_NO_DEFAULT_COMPILER_FLAGS := true) \
David 'Digit' Turner317c9d52011-05-10 06:38:21 +0200194 $(eval LOCAL_MODULE := $1) \
David 'Digit' Turner42fc4492011-06-29 13:16:16 +0200195 $(eval LOCAL_MODULE_CLASS := STATIC_LIBRARIES)
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800196
David 'Digit' Turneraff94b82011-02-07 18:10:54 +0100197# Used with start-emulator-library
198end-emulator-library = \
David 'Digit' Turner1af82152014-03-03 20:41:37 +0100199 $(eval $(end-emulator-module-ev)) \
David 'Digit' Turner42fc4492011-06-29 13:16:16 +0200200 $(eval include $(BUILD_HOST_STATIC_LIBRARY))
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800201
David 'Digit' Turneraff94b82011-02-07 18:10:54 +0100202# A variant of start-emulator-library to start the definition of a host
203# program instead. Use with end-emulator-program
David 'Digit' Turner088edf82011-05-09 15:59:28 +0200204start-emulator-program = \
205 $(call start-emulator-library,$1) \
David 'Digit' Turner42fc4492011-06-29 13:16:16 +0200206 $(eval LOCAL_MODULE_CLASS := EXECUTABLES)
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800207
David 'Digit' Turneraff94b82011-02-07 18:10:54 +0100208# A varient of end-emulator-library for host programs instead
209end-emulator-program = \
210 $(eval LOCAL_LDLIBS += $(QEMU_SYSTEM_LDLIBS)) \
David 'Digit' Turner1af82152014-03-03 20:41:37 +0100211 $(eval $(end-emulator-module-ev)) \
David 'Digit' Turneraff94b82011-02-07 18:10:54 +0100212 $(eval include $(BUILD_HOST_EXECUTABLE))
Xavier Ducrohetfc8ed802011-02-09 18:04:23 -0800213
David 'Digit' Turner1af82152014-03-03 20:41:37 +0100214define end-emulator-module-ev
215LOCAL_CC := $$(call my-host-tool,CC)
216LOCAL_CXX := $$(call my-host-tool,CXX)
217LOCAL_AR := $$(call my-host-tool,AR)
218LOCAL_LD := $$(call my-host-tool,LD)
219LOCAL_CFLAGS := $$(call my-host-tool,CFLAGS) $$(LOCAL_CFLAGS)
220LOCAL_LDFLAGS := $$(call my-host-tool,LDFLAGS) $$(LOCAL_LDFLAGS)
221LOCAL_LDLIBS := $$(LOCAL_LDLIBS) $$(call my-host-tool,LDLIBS)
222endef
Vladimir Chtchetkineba1f57f2010-07-27 14:14:15 -0700223
Vladimir Chtchetkineba1f57f2010-07-27 14:14:15 -0700224# The common libraries
225#
226QEMU_SYSTEM_LDLIBS := -lm
227ifeq ($(HOST_OS),windows)
David 'Digit' Turner7891dd32014-04-28 10:59:47 +0200228 QEMU_SYSTEM_LDLIBS += -mwindows -mconsole
Vladimir Chtchetkineba1f57f2010-07-27 14:14:15 -0700229endif
230
231ifeq ($(HOST_OS),freebsd)
232 QEMU_SYSTEM_LDLIBS += -L/usr/local/lib -lpthread -lX11 -lutil
233endif
234
235ifeq ($(HOST_OS),linux)
236 QEMU_SYSTEM_LDLIBS += -lutil -lrt
237endif
238
239ifeq ($(HOST_OS),windows)
Andrew Hsiehc7389bd2012-03-13 02:13:40 -0700240 # amd64-mingw32msvc- toolchain still name it ws2_32. May change it once amd64-mingw32msvc-
241 # is stabilized
Vladimir Chtchetkineba1f57f2010-07-27 14:14:15 -0700242 QEMU_SYSTEM_LDLIBS += -lwinmm -lws2_32 -liphlpapi
243else
244 QEMU_SYSTEM_LDLIBS += -lpthread
245endif
246
David 'Digit' Turner393c0f12010-07-28 12:20:56 -0700247ifeq ($(HOST_OS),darwin)
Vladimir Chtchetkine955a9972011-10-12 15:40:17 -0700248 QEMU_SYSTEM_LDLIBS += -Wl,-framework,Cocoa,-framework,QTKit,-framework,CoreVideo
Andrew Hsiehc2f0b962012-08-09 18:21:33 +0800249
250 # SDK 10.6+ doesn't have __dyld_func_lookup anymore. Dynamic library lookup symbols
251 # are instead resolved at runtime
252 OSX_VERSION_MAJOR := $(shell echo $(mac_sdk_version) | cut -d . -f 2)
253 OSX_VERSION_MAJOR_GREATER_THAN_OR_EQUAL_TO_6 := $(shell [ $(OSX_VERSION_MAJOR) -ge 6 ] && echo true)
254 ifeq ($(OSX_VERSION_MAJOR_GREATER_THAN_OR_EQUAL_TO_6),true)
Al Sutton49dd3f32012-01-04 15:19:05 -0800255 QEMU_SYSTEM_LDLIBS += -undefined dynamic_lookup
Al Suttonc3c9c6f2011-12-21 13:16:22 -0800256 endif
David 'Digit' Turner393c0f12010-07-28 12:20:56 -0700257endif
Vladimir Chtchetkineba1f57f2010-07-27 14:14:15 -0700258
David 'Digit' Turneraf061c52014-02-28 23:33:54 +0100259# This defines EMULATOR_BUILD_64BITS to indicate that 64-bit binaries
260# must be generated by the build system. For now, only do it for
261# Linux and Darwin, since we the sources do not compile with Mingw-w64
262# yet due to differing procedure call ABI conventions.
263EMULATOR_BUILD_64BITS := $(strip $(filter linux darwin,$(HOST_OS)))
264
David 'Digit' Turner18c664d2014-05-05 20:32:09 +0200265# Disable 64-bit build for Darwin platform builds.
266ifeq ($(HOST_OS),darwin)
267ifneq (true,$(BUILD_STANDALONE_EMULATOR))
268EMULATOR_BUILD_64BITS := $(strip $(empty))
269endif # BUILD_STANDALONE_EMULATOR != true
270endif # HOST_OS == darwin
271
David 'Digit' Turneraff94b82011-02-07 18:10:54 +0100272include $(LOCAL_PATH)/Makefile.common
273
Raphael Mollcdbea232012-05-04 15:04:27 -0700274ifeq ($(HOST_OS),windows)
275 # on Windows, link the icon file as well into the executable
276 # unfortunately, our build system doesn't help us much, so we need
277 # to use some weird pathnames to make this work...
278
279 # Locate windres executable
280 WINDRES := windres
281 ifneq ($(USE_MINGW),)
282 # When building the Windows emulator under Linux, use the MinGW one
283 WINDRES := i586-mingw32msvc-windres
284 endif
285
286 # Usage: $(eval $(call insert-windows-icon))
287 define insert-windows-icon
288 LOCAL_PREBUILT_OBJ_FILES += images/emulator_icon.o
289 endef
290
291# This seems to be the only way to add an object file that was not generated from
292# a C/C++/Java source file to our build system. and very unfortunately,
293# $(TOPDIR)/$(LOCALPATH) will always be prepended to this value, which forces
294# us to put the object file in the source directory.
295$(LOCAL_PATH)/images/emulator_icon.o: $(LOCAL_PATH)/images/android_icon.rc
296 $(WINDRES) $< -I $(LOCAL_PATH)/images -o $@
297endif
298
David 'Digit' Turneraff94b82011-02-07 18:10:54 +0100299# We want to build all variants of the emulator binaries. This makes
300# it easier to catch target-specific regressions during emulator development.
301EMULATOR_TARGET_ARCH := arm
302include $(LOCAL_PATH)/Makefile.target
303
David 'Digit' Turnerdc781222014-03-07 16:53:45 +0100304# Note: the same binary handles x86 and x86_64
David 'Digit' Turneraff94b82011-02-07 18:10:54 +0100305EMULATOR_TARGET_ARCH := x86
306include $(LOCAL_PATH)/Makefile.target
Vladimir Chtchetkineba1f57f2010-07-27 14:14:15 -0700307
Bhanu Chetlapalli741dc132012-05-08 17:16:03 -0700308EMULATOR_TARGET_ARCH := mips
309include $(LOCAL_PATH)/Makefile.target
310
Xavier Ducrohetfc8ed802011-02-09 18:04:23 -0800311##############################################################################
David 'Digit' Turneraff94b82011-02-07 18:10:54 +0100312##############################################################################
313###
David 'Digit' Turner2d238fd2011-03-25 10:34:47 +0100314### emulator: LAUNCHER FOR TARGET-SPECIFIC EMULATOR
315###
316###
317$(call start-emulator-program, emulator)
318
319LOCAL_SRC_FILES := android/main-emulator.c
320LOCAL_STATIC_LIBRARIES := emulator-common
321
Raphael Mollcdbea232012-05-04 15:04:27 -0700322ifeq ($(HOST_OS),windows)
323$(eval $(call insert-windows-icon))
324endif
325
David 'Digit' Turner2d238fd2011-03-25 10:34:47 +0100326$(call end-emulator-program)
327
David 'Digit' Turner57deae32014-01-21 03:30:13 +0100328include $(LOCAL_PATH)/Makefile.tests
329
David 'Digit' Turner1af82152014-03-03 20:41:37 +0100330##############################################################################
331##############################################################################
332###
333### GPU emulation libraries
334###
335### Build directly from sources when using the standalone build.
336###
337ifeq (true,$(BUILD_STANDALONE_EMULATOR))
338 ifeq (,$(strip $(wildcard $(EMULATOR_EMUGL_SOURCES_DIR))))
339 $(error Cannot find GPU emulation sources directory: $(EMULATOR_EMUGL_SOURCES_DIR))
340 endif
341
David 'Digit' Turner1bf34432014-05-11 11:03:28 +0200342 # TODO(digit): Remove the line below.
David 'Digit' Turner1af82152014-03-03 20:41:37 +0100343 BUILD_EMULATOR_OPENGL := true
David 'Digit' Turner1bf34432014-05-11 11:03:28 +0200344 BUILD_EMULATOR_HOST_OPENGL := true
David 'Digit' Turner1af82152014-03-03 20:41:37 +0100345 include $(EMULATOR_EMUGL_SOURCES_DIR)/Android.mk
346endif
347
David 'Digit' Turneraff94b82011-02-07 18:10:54 +0100348## VOILA!!
David 'Digit' Turnerf59442f2010-10-08 16:22:10 +0200349
Andrew Hsiehef0a2332012-08-23 17:39:26 +0800350endif # BUILD_EMULATOR == true || BUILD_STANDALONE_EMULATOR == true