Jun Nakajima | 334ab47 | 2011-02-02 23:49:59 -0800 | [diff] [blame] | 1 | ifneq (,$(filter $(TARGET_ARCH),arm x86)) |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 2 | LOCAL_PATH:= $(call my-dir) |
| 3 | |
Jun Nakajima | 334ab47 | 2011-02-02 23:49:59 -0800 | [diff] [blame] | 4 | # determine the target cpu |
| 5 | ifeq ($(TARGET_ARCH),arm) |
| 6 | EMULATOR_TARGET_CPU := target-arm |
| 7 | else |
| 8 | EMULATOR_TARGET_CPU := target-i386 |
| 9 | endif |
| 10 | |
David 'Digit' Turner | 34d1651 | 2010-05-18 17:02:33 -0700 | [diff] [blame] | 11 | # determine the host tag to use |
| 12 | QEMU_HOST_TAG := $(HOST_PREBUILT_TAG) |
| 13 | ifneq ($(USE_MINGW),) |
| 14 | QEMU_HOST_TAG := windows |
| 15 | endif |
| 16 | |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 17 | # determine the location of platform-specific directories |
| 18 | # |
| 19 | CONFIG_DIRS := \ |
David 'Digit' Turner | 34d1651 | 2010-05-18 17:02:33 -0700 | [diff] [blame] | 20 | $(LOCAL_PATH)/android/config/$(QEMU_HOST_TAG) |
| 21 | |
| 22 | ifeq ($(BUILD_STANDALONE_EMULATOR),true) |
| 23 | CONFIG_DIRS := $(LOCAL_PATH)/objs $(CONFIG_DIRS) |
| 24 | endif |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 25 | |
| 26 | CONFIG_INCLUDES := $(CONFIG_DIRS:%=-I%) |
| 27 | |
David 'Digit' Turner | 0a349b8 | 2011-03-02 12:49:26 +0100 | [diff] [blame] | 28 | MY_CC := $(HOST_CC) |
| 29 | MY_CXX := $(HOST_CXX) |
| 30 | MY_AR := $(HOST_AR) |
Kenny Root | 095cd0f | 2009-09-19 18:32:44 -0500 | [diff] [blame] | 31 | |
David 'Digit' Turner | 5d8f37a | 2009-09-14 14:32:27 -0700 | [diff] [blame] | 32 | MY_OPTIM := -O2 -g -fno-PIC -falign-functions=0 -fomit-frame-pointer |
| 33 | ifeq ($(BUILD_DEBUG_EMULATOR),true) |
| 34 | MY_OPTIM := -O0 -g |
| 35 | endif |
| 36 | |
David 'Digit' Turner | 9a0f1fb | 2010-02-25 14:22:29 -0800 | [diff] [blame] | 37 | MY_CFLAGS := $(CONFIG_INCLUDES) $(MY_OPTIM) |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 38 | |
David 'Digit' Turner | 466f548 | 2009-07-30 15:50:19 +0200 | [diff] [blame] | 39 | # Overwrite configuration for debug builds. |
| 40 | # |
| 41 | ifeq ($(BUILD_DEBUG_EMULATOR),true) |
| 42 | MY_CFLAGS := $(CONFIG_INCLUDES) -O0 -g \ |
| 43 | -fno-PIC -falign-functions=0 |
| 44 | endif |
| 45 | |
David 'Digit' Turner | b95f892 | 2009-08-21 23:10:16 -0700 | [diff] [blame] | 46 | MY_LDLIBS := |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 47 | |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 48 | ifeq ($(HOST_OS),freebsd) |
Andrew Hsieh | c7389bd | 2012-03-13 02:13:40 -0700 | [diff] [blame^] | 49 | MY_CFLAGS += -I /usr/local/include |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 50 | endif |
| 51 | |
| 52 | ifeq ($(HOST_OS),windows) |
Andrew Hsieh | c7389bd | 2012-03-13 02:13:40 -0700 | [diff] [blame^] | 53 | # we need Win32 features that are available since Windows 2000 Professional/Server (NT 5.0) |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 54 | MY_CFLAGS += -DWINVER=0x501 |
Andrew Hsieh | c7389bd | 2012-03-13 02:13:40 -0700 | [diff] [blame^] | 55 | MY_CFLAGS += -D_WIN32 |
| 56 | ifneq ($(BUILD_HOST_64bit),) |
| 57 | # Microsoft 64-bit compiler define both _WIN32 and _WIN64 |
| 58 | MY_CFLAGS += -D_WIN64 |
| 59 | # amd64-mingw32msvc- toolchain still name it vfw32. May change it once amd64-mingw32msvc- |
| 60 | # is stabilized |
| 61 | MY_LDLIBS += -lvfw32 |
| 62 | else |
| 63 | MY_LDLIBS += -lvfw32 |
| 64 | endif |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 65 | endif |
| 66 | |
| 67 | ifeq ($(HOST_ARCH),ppc) |
| 68 | MY_CFLAGS += -D__powerpc__ |
| 69 | endif |
| 70 | |
| 71 | ifeq ($(HOST_OS),darwin) |
David 'Digit' Turner | 747f7d1 | 2011-01-06 22:24:26 +0100 | [diff] [blame] | 72 | MY_CFLAGS += -mdynamic-no-pic -D_DARWIN_C_SOURCE=1 |
David Turner | bba461c | 2009-06-03 10:48:15 -0700 | [diff] [blame] | 73 | |
| 74 | # When building on Leopard or above, we need to use the 10.4 SDK |
| 75 | # or the generated binary will not run on Tiger. |
| 76 | DARWIN_VERSION := $(strip $(shell sw_vers -productVersion)) |
Jeff Hamilton | d0d9734 | 2010-05-27 11:41:41 -0500 | [diff] [blame] | 77 | ifneq ($(filter 10.1 10.2 10.3 10.1.% 10.2.% 10.3.% 10.4 10.4.%,$(DARWIN_VERSION)),) |
| 78 | $(error Building the Android emulator requires OS X 10.5 or above) |
David Turner | bba461c | 2009-06-03 10:48:15 -0700 | [diff] [blame] | 79 | endif |
Al Sutton | 8593773 | 2011-12-21 13:14:03 -0800 | [diff] [blame] | 80 | ifneq ($(filter 10.6 10.6.%,$(DARWIN_VERSION)),) |
| 81 | # We are on Snow Leopard |
Jeff Hamilton | d0d9734 | 2010-05-27 11:41:41 -0500 | [diff] [blame] | 82 | LEOPARD_SDK := /Developer/SDKs/MacOSX10.5.sdk |
| 83 | ifeq ($(strip $(wildcard $(LEOPARD_SDK))),) |
| 84 | $(info Please install the 10.5 SDK on this machine at $(LEOPARD_SDK)) |
David Turner | bba461c | 2009-06-03 10:48:15 -0700 | [diff] [blame] | 85 | $(error Aborting the build.) |
| 86 | endif |
Jeff Hamilton | d0d9734 | 2010-05-27 11:41:41 -0500 | [diff] [blame] | 87 | MY_CFLAGS += -isysroot $(LEOPARD_SDK) -mmacosx-version-min=10.5 -DMACOSX_DEPLOYMENT_TARGET=10.5 |
| 88 | MY_LDLIBS += -isysroot $(LEOPARD_SDK) -Wl,-syslibroot,$(LEOPARD_SDK) -mmacosx-version-min=10.5 |
David Turner | bba461c | 2009-06-03 10:48:15 -0700 | [diff] [blame] | 89 | endif |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 90 | endif |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 91 | |
| 92 | # BUILD_STANDALONE_EMULATOR is only defined when building with |
| 93 | # the android-rebuild.sh script. The script will also provide |
| 94 | # adequate values for HOST_CC |
| 95 | # |
| 96 | ifneq ($(BUILD_STANDALONE_EMULATOR),true) |
Andrew Hsieh | c7389bd | 2012-03-13 02:13:40 -0700 | [diff] [blame^] | 97 | # On Linux, use our custom 32-bit host toolchain (unless BUILD_HOST_64bit=1) |
| 98 | # which contains the relevant headers and 32-bit libraries for audio (The host 64-bit |
| 99 | # Lucid doesn't provide these anymore, only their 64-bit versions). |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 100 | ifeq ($(HOST_OS),linux) |
Andrew Hsieh | c7389bd | 2012-03-13 02:13:40 -0700 | [diff] [blame^] | 101 | HOST_SDK_TOOLCHAIN_PREFIX := prebuilts/tools/gcc-sdk |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 102 | # Don't do anything if the toolchain is not there |
Andrew Hsieh | c7389bd | 2012-03-13 02:13:40 -0700 | [diff] [blame^] | 103 | ifneq (,$(strip $(wildcard $(HOST_SDK_TOOLCHAIN_PREFIX)/gcc))) |
| 104 | MY_CC := $(HOST_SDK_TOOLCHAIN_PREFIX)/gcc |
| 105 | MY_CXX := $(HOST_SDK_TOOLCHAIN_PREFIX)/g++ |
| 106 | MY_AR := $(HOST_SDK_TOOLCHAIN_PREFIX)/ar |
| 107 | endif # $(HOST_SDK_TOOLCHAIN_PREFIX)/gcc exists |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 108 | endif # HOST_OS == linux |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 109 | |
| 110 | ifneq ($(USE_CCACHE),) |
Ying Wang | 762d5de | 2012-01-09 11:53:58 -0800 | [diff] [blame] | 111 | ccache := prebuilts/misc/$(HOST_PREBUILT_TAG)/ccache/ccache |
David 'Digit' Turner | 4ed818f | 2011-03-12 13:05:15 +0100 | [diff] [blame] | 112 | ccache := $(strip $(wildcard $(ccache))) |
Ying Wang | 7bf9d7f | 2010-10-07 15:12:11 -0700 | [diff] [blame] | 113 | ifneq ($(ccache),$(firstword $(MY_CC))) |
| 114 | MY_CC := $(ccache) $(MY_CC) |
Andrew Hsieh | c7389bd | 2012-03-13 02:13:40 -0700 | [diff] [blame^] | 115 | MY_CXX := $(ccache) $(MY_CXX) |
Ying Wang | 7bf9d7f | 2010-10-07 15:12:11 -0700 | [diff] [blame] | 116 | endif |
| 117 | ccache := |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 118 | endif |
| 119 | endif |
| 120 | |
| 121 | |
| 122 | ifneq ($(combo_target)$(TARGET_SIMULATOR),HOST_true) |
Andrew Hsieh | c7389bd | 2012-03-13 02:13:40 -0700 | [diff] [blame^] | 123 | ifneq ($(BUILD_HOST_64bit),) |
| 124 | MY_CFLAGS += -m64 |
| 125 | MY_LDLIBS += -m64 |
| 126 | else |
| 127 | ifneq ($(HOST_ARCH),x86_64) |
| 128 | MY_CFLAGS += -m32 |
| 129 | MY_LDLIBS += -m32 |
| 130 | endif |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 131 | endif |
| 132 | endif |
| 133 | |
David 'Digit' Turner | 4e024bb | 2010-09-22 14:19:28 +0200 | [diff] [blame] | 134 | # Enable warning, except those related to missing field initializers |
| 135 | # (the QEMU coding style loves using these). |
| 136 | # |
| 137 | MY_CFLAGS += -Wall -Wno-missing-field-initializers |
| 138 | |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 139 | # Needed to build fpu/softfloat-native.h properly |
| 140 | MY_CFLAGS += -D_GNU_SOURCE=1 |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 141 | |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 142 | # A useful function that can be used to start the declaration of a host |
| 143 | # module. Avoids repeating the same stuff again and again. |
| 144 | # Usage: |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 145 | # |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 146 | # $(call start-emulator-library, <module-name>) |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 147 | # |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 148 | # ... declarations |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 149 | # |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 150 | # $(call end-emulator-library) |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 151 | # |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 152 | start-emulator-library = \ |
| 153 | $(eval include $(CLEAR_VARS)) \ |
| 154 | $(eval LOCAL_NO_DEFAULT_COMPILER_FLAGS := true) \ |
| 155 | $(eval LOCAL_CC := $(MY_CC)) \ |
David 'Digit' Turner | b580d26 | 2011-03-02 09:49:06 +0100 | [diff] [blame] | 156 | $(eval LOCAL_CXX := $(MY_CXX)) \ |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 157 | $(eval LOCAL_CFLAGS := $(MY_CFLAGS)) \ |
David 'Digit' Turner | b580d26 | 2011-03-02 09:49:06 +0100 | [diff] [blame] | 158 | $(eval LOCAL_AR := $(MY_AR)) \ |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 159 | $(eval LOCAL_LDLIBS := $(MY_LDLIBS)) \ |
| 160 | $(eval LOCAL_MODULE_TAGS := debug) \ |
David 'Digit' Turner | 317c9d5 | 2011-05-10 06:38:21 +0200 | [diff] [blame] | 161 | $(eval LOCAL_MODULE := $1) \ |
David 'Digit' Turner | 42fc449 | 2011-06-29 13:16:16 +0200 | [diff] [blame] | 162 | $(eval LOCAL_MODULE_CLASS := STATIC_LIBRARIES) |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 163 | |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 164 | # Used with start-emulator-library |
| 165 | end-emulator-library = \ |
David 'Digit' Turner | 42fc449 | 2011-06-29 13:16:16 +0200 | [diff] [blame] | 166 | $(eval include $(BUILD_HOST_STATIC_LIBRARY)) |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 167 | |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 168 | # A variant of start-emulator-library to start the definition of a host |
| 169 | # program instead. Use with end-emulator-program |
David 'Digit' Turner | 088edf8 | 2011-05-09 15:59:28 +0200 | [diff] [blame] | 170 | start-emulator-program = \ |
| 171 | $(call start-emulator-library,$1) \ |
David 'Digit' Turner | 42fc449 | 2011-06-29 13:16:16 +0200 | [diff] [blame] | 172 | $(eval LOCAL_MODULE_CLASS := EXECUTABLES) |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 173 | |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 174 | # A varient of end-emulator-library for host programs instead |
| 175 | end-emulator-program = \ |
| 176 | $(eval LOCAL_LDLIBS += $(QEMU_SYSTEM_LDLIBS)) \ |
| 177 | $(eval include $(BUILD_HOST_EXECUTABLE)) |
Xavier Ducrohet | fc8ed80 | 2011-02-09 18:04:23 -0800 | [diff] [blame] | 178 | |
Vladimir Chtchetkine | ba1f57f | 2010-07-27 14:14:15 -0700 | [diff] [blame] | 179 | |
Vladimir Chtchetkine | ba1f57f | 2010-07-27 14:14:15 -0700 | [diff] [blame] | 180 | # The common libraries |
| 181 | # |
| 182 | QEMU_SYSTEM_LDLIBS := -lm |
| 183 | ifeq ($(HOST_OS),windows) |
| 184 | QEMU_SYSTEM_LDLIBS += -mno-cygwin -mwindows -mconsole |
| 185 | endif |
| 186 | |
| 187 | ifeq ($(HOST_OS),freebsd) |
| 188 | QEMU_SYSTEM_LDLIBS += -L/usr/local/lib -lpthread -lX11 -lutil |
| 189 | endif |
| 190 | |
| 191 | ifeq ($(HOST_OS),linux) |
| 192 | QEMU_SYSTEM_LDLIBS += -lutil -lrt |
| 193 | endif |
| 194 | |
| 195 | ifeq ($(HOST_OS),windows) |
Andrew Hsieh | c7389bd | 2012-03-13 02:13:40 -0700 | [diff] [blame^] | 196 | # amd64-mingw32msvc- toolchain still name it ws2_32. May change it once amd64-mingw32msvc- |
| 197 | # is stabilized |
Vladimir Chtchetkine | ba1f57f | 2010-07-27 14:14:15 -0700 | [diff] [blame] | 198 | QEMU_SYSTEM_LDLIBS += -lwinmm -lws2_32 -liphlpapi |
| 199 | else |
| 200 | QEMU_SYSTEM_LDLIBS += -lpthread |
| 201 | endif |
| 202 | |
David 'Digit' Turner | 393c0f1 | 2010-07-28 12:20:56 -0700 | [diff] [blame] | 203 | ifeq ($(HOST_OS),darwin) |
Vladimir Chtchetkine | 955a997 | 2011-10-12 15:40:17 -0700 | [diff] [blame] | 204 | QEMU_SYSTEM_LDLIBS += -Wl,-framework,Cocoa,-framework,QTKit,-framework,CoreVideo |
Al Sutton | c3c9c6f | 2011-12-21 13:16:22 -0800 | [diff] [blame] | 205 | ifneq ($(filter 10.7 10.7.%,$(DARWIN_VERSION)),) |
Al Sutton | 49dd3f3 | 2012-01-04 15:19:05 -0800 | [diff] [blame] | 206 | # Lion/XCode4 needs to be explicitly told the dynamic library |
| 207 | # lookup symbols in the precompiled libSDL are resolved at |
| 208 | # runtime |
| 209 | QEMU_SYSTEM_LDLIBS += -undefined dynamic_lookup |
Al Sutton | c3c9c6f | 2011-12-21 13:16:22 -0800 | [diff] [blame] | 210 | endif |
David 'Digit' Turner | 393c0f1 | 2010-07-28 12:20:56 -0700 | [diff] [blame] | 211 | endif |
Vladimir Chtchetkine | ba1f57f | 2010-07-27 14:14:15 -0700 | [diff] [blame] | 212 | |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 213 | include $(LOCAL_PATH)/Makefile.common |
| 214 | |
| 215 | # We want to build all variants of the emulator binaries. This makes |
| 216 | # it easier to catch target-specific regressions during emulator development. |
| 217 | EMULATOR_TARGET_ARCH := arm |
| 218 | include $(LOCAL_PATH)/Makefile.target |
| 219 | |
| 220 | EMULATOR_TARGET_ARCH := x86 |
| 221 | include $(LOCAL_PATH)/Makefile.target |
Vladimir Chtchetkine | ba1f57f | 2010-07-27 14:14:15 -0700 | [diff] [blame] | 222 | |
Xavier Ducrohet | fc8ed80 | 2011-02-09 18:04:23 -0800 | [diff] [blame] | 223 | ############################################################################## |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 224 | ############################################################################## |
| 225 | ### |
David 'Digit' Turner | 2d238fd | 2011-03-25 10:34:47 +0100 | [diff] [blame] | 226 | ### emulator: LAUNCHER FOR TARGET-SPECIFIC EMULATOR |
| 227 | ### |
| 228 | ### |
| 229 | $(call start-emulator-program, emulator) |
| 230 | |
| 231 | LOCAL_SRC_FILES := android/main-emulator.c |
| 232 | LOCAL_STATIC_LIBRARIES := emulator-common |
| 233 | |
| 234 | $(call end-emulator-program) |
| 235 | |
| 236 | ############################################################################## |
| 237 | ############################################################################## |
| 238 | ### |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 239 | ### emulator-ui: UI FRONT-END PROGRAM |
| 240 | ### |
| 241 | ### |
| 242 | $(call start-emulator-program, emulator-ui) |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 243 | |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 244 | LOCAL_STATIC_LIBRARIES := \ |
| 245 | emulator-common \ |
| 246 | emulator-libui \ |
| 247 | emulator-common \ |
Xavier Ducrohet | fc8ed80 | 2011-02-09 18:04:23 -0800 | [diff] [blame] | 248 | |
| 249 | |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 250 | LOCAL_CFLAGS += -DCONFIG_STANDALONE_UI=1 |
Xavier Ducrohet | fc8ed80 | 2011-02-09 18:04:23 -0800 | [diff] [blame] | 251 | |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 252 | LOCAL_CFLAGS += $(EMULATOR_COMMON_CFLAGS) $(EMULATOR_LIBUI_CFLAGS) |
| 253 | LOCAL_LDLIBS += $(EMULATOR_COMMON_LDLIBS) $(EMULATOR_LIBUI_LDLIBS) |
Xavier Ducrohet | fc8ed80 | 2011-02-09 18:04:23 -0800 | [diff] [blame] | 254 | |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 255 | LOCAL_SRC_FILES := \ |
| 256 | android/cmdline-option.c \ |
| 257 | android/config.c \ |
| 258 | android/help.c \ |
| 259 | android/looper-generic.c \ |
| 260 | android/snapshot.c \ |
| 261 | android/main-common.c \ |
| 262 | android/main.c \ |
David 'Digit' Turner | cb88e79 | 2011-08-26 01:35:14 +0200 | [diff] [blame] | 263 | android/opengles.c \ |
David 'Digit' Turner | f816a75 | 2011-06-23 18:40:11 +0200 | [diff] [blame] | 264 | android/utils/setenv.c \ |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 265 | vl-android-ui.c \ |
| 266 | android/protocol/core-connection.c \ |
| 267 | android/protocol/attach-ui-impl.c \ |
| 268 | android/protocol/fb-updates-impl.c \ |
| 269 | android/protocol/ui-commands-impl.c \ |
| 270 | android/protocol/core-commands-proxy.c \ |
| 271 | android/protocol/user-events-proxy.c \ |
Xavier Ducrohet | fc8ed80 | 2011-02-09 18:04:23 -0800 | [diff] [blame] | 272 | |
David 'Digit' Turner | 42fc449 | 2011-06-29 13:16:16 +0200 | [diff] [blame] | 273 | $(call gen-hw-config-defs,android/main-common.c) |
| 274 | |
Xavier Ducrohet | fc8ed80 | 2011-02-09 18:04:23 -0800 | [diff] [blame] | 275 | LOCAL_SRC_FILES += $(SDLMAIN_SOURCES) |
| 276 | |
Xavier Ducrohet | fc8ed80 | 2011-02-09 18:04:23 -0800 | [diff] [blame] | 277 | LOCAL_STATIC_LIBRARIES += $(SDL_STATIC_LIBRARIES) |
| 278 | |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 279 | $(call end-emulator-program) |
Xavier Ducrohet | fc8ed80 | 2011-02-09 18:04:23 -0800 | [diff] [blame] | 280 | |
David 'Digit' Turner | aff94b8 | 2011-02-07 18:10:54 +0100 | [diff] [blame] | 281 | ## VOILA!! |
David 'Digit' Turner | f59442f | 2010-10-08 16:22:10 +0200 | [diff] [blame] | 282 | |
Jun Nakajima | 334ab47 | 2011-02-02 23:49:59 -0800 | [diff] [blame] | 283 | endif # TARGET_ARCH == arm || TARGET_ARCH == x86 |