Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Side by Side Diff: Makefile.android

Issue 18535011: Enable building for android on x86_64 machines. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 18 matching lines...) Expand all
29 ANDROID_ARCHES = android_ia32 android_arm android_mipsel 29 ANDROID_ARCHES = android_ia32 android_arm android_mipsel
30 MODES = release debug 30 MODES = release debug
31 31
32 # Generates all combinations of ANDROID ARCHES and MODES, 32 # Generates all combinations of ANDROID ARCHES and MODES,
33 # e.g. "android_ia32.release" or "android_arm.release" 33 # e.g. "android_ia32.release" or "android_arm.release"
34 ANDROID_BUILDS = $(foreach mode,$(MODES), \ 34 ANDROID_BUILDS = $(foreach mode,$(MODES), \
35 $(addsuffix .$(mode),$(ANDROID_ARCHES))) 35 $(addsuffix .$(mode),$(ANDROID_ARCHES)))
36 36
37 HOST_OS = $(shell uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/') 37 HOST_OS = $(shell uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')
38 ifeq ($(HOST_OS), linux) 38 ifeq ($(HOST_OS), linux)
39 TOOLCHAIN_DIR = linux-x86 39 HOST_ARCH = $(shell uname -m | \
ulan 2013/07/16 09:04:14 This doesn't work with previous versions of Androi
rmcilroy 2013/07/16 16:44:28 How about this? It defaults this variable based o
40 sed -e 's/i386/x86/;s/i486/x86/;s/i586/x86/;s/i686/x86/;')
41 TOOLCHAIN_DIR = linux-$(HOST_ARCH)
40 else 42 else
41 ifeq ($(HOST_OS), mac) 43 ifeq ($(HOST_OS), mac)
42 TOOLCHAIN_DIR = darwin-x86 44 TOOLCHAIN_DIR = darwin-x86
43 else 45 else
44 $(error Host platform "${HOST_OS}" is not supported) 46 $(error Host platform "${HOST_OS}" is not supported)
45 endif 47 endif
46 endif 48 endif
47 49
48 ifeq ($(ARCH), android_arm) 50 ifeq ($(ARCH), android_arm)
49 DEFINES = target_arch=arm v8_target_arch=arm android_target_arch=arm 51 DEFINES = target_arch=arm v8_target_arch=arm android_target_arch=arm
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 # Android GYP file generation targets. 91 # Android GYP file generation targets.
90 ANDROID_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(ANDROID_ARCHES)) 92 ANDROID_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(ANDROID_ARCHES))
91 $(ANDROID_MAKEFILES): 93 $(ANDROID_MAKEFILES):
92 @GYP_GENERATORS=make-android \ 94 @GYP_GENERATORS=make-android \
93 GYP_DEFINES="${DEFINES}" \ 95 GYP_DEFINES="${DEFINES}" \
94 CC="${ANDROID_TOOLCHAIN}/bin/*-gcc" \ 96 CC="${ANDROID_TOOLCHAIN}/bin/*-gcc" \
95 CXX="${ANDROID_TOOLCHAIN}/bin/*-g++" \ 97 CXX="${ANDROID_TOOLCHAIN}/bin/*-g++" \
96 build/gyp/gyp --generator-output="${OUTDIR}" build/all.gyp \ 98 build/gyp/gyp --generator-output="${OUTDIR}" build/all.gyp \
97 -Ibuild/standalone.gypi --depth=. -Ibuild/android.gypi \ 99 -Ibuild/standalone.gypi --depth=. -Ibuild/android.gypi \
98 -S.${ARCH} ${GYPFLAGS} 100 -S.${ARCH} ${GYPFLAGS}
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698