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

Side by Side Diff: Makefile.android

Issue 1209453003: [android] Set platform to 16 for 32 bit builds. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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
« 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 20 matching lines...) Expand all
31 MODES = release debug 31 MODES = release debug
32 32
33 # Generates all combinations of ANDROID ARCHES and MODES, 33 # Generates all combinations of ANDROID ARCHES and MODES,
34 # e.g. "android_ia32.release" or "android_arm.release" 34 # e.g. "android_ia32.release" or "android_arm.release"
35 ANDROID_BUILDS = $(foreach mode,$(MODES), \ 35 ANDROID_BUILDS = $(foreach mode,$(MODES), \
36 $(addsuffix .$(mode),$(ANDROID_ARCHES))) 36 $(addsuffix .$(mode),$(ANDROID_ARCHES)))
37 37
38 HOST_OS = $(shell uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/') 38 HOST_OS = $(shell uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')
39 39
40 ifeq ($(ARCH), android_arm) 40 ifeq ($(ARCH), android_arm)
41 DEFINES = target_arch=arm v8_target_arch=arm android_target_arch=arm 41 DEFINES = target_arch=arm v8_target_arch=arm android_target_arch=arm android_ target_platform=16
42 DEFINES += arm_neon=0 arm_version=7 42 DEFINES += arm_neon=0 arm_version=7
43 else ifeq ($(ARCH), android_arm64) 43 else ifeq ($(ARCH), android_arm64)
44 DEFINES = target_arch=arm64 v8_target_arch=arm64 android_target_arch=arm64 44 DEFINES = target_arch=arm64 v8_target_arch=arm64 android_target_arch=arm64 an droid_target_platform=21
45 else ifeq ($(ARCH), android_mipsel) 45 else ifeq ($(ARCH), android_mipsel)
46 DEFINES = target_arch=mipsel v8_target_arch=mipsel 46 DEFINES = target_arch=mipsel v8_target_arch=mipsel android_target_platform=16
47 DEFINES += android_target_arch=mips mips_arch_variant=mips32r2 47 DEFINES += android_target_arch=mips mips_arch_variant=mips32r2
48 else ifeq ($(ARCH), android_ia32) 48 else ifeq ($(ARCH), android_ia32)
49 DEFINES = target_arch=ia32 v8_target_arch=ia32 android_target_arch=x86 49 DEFINES = target_arch=ia32 v8_target_arch=ia32 android_target_arch=x86 android _target_platform=16
50 else ifeq ($(ARCH), android_x64) 50 else ifeq ($(ARCH), android_x64)
51 DEFINES = target_arch=x64 v8_target_arch=x64 android_target_arch=x86_64 51 DEFINES = target_arch=x64 v8_target_arch=x64 android_target_arch=x86_64 androi d_target_platform=21
52 else ifeq ($(ARCH), android_x87) 52 else ifeq ($(ARCH), android_x87)
53 DEFINES = target_arch=x87 v8_target_arch=x87 android_target_arch=x86 53 DEFINES = target_arch=x87 v8_target_arch=x87 android_target_arch=x86 android_t arget_platform=16
54 else 54 else
55 $(error Target architecture "${ARCH}" is not supported) 55 $(error Target architecture "${ARCH}" is not supported)
56 endif 56 endif
57 57
58 # Common flags. 58 # Common flags.
59 DEFINES += host_os=${HOST_OS} OS=android android_target_platform=21 59 DEFINES += host_os=${HOST_OS} OS=android
60 60
61 .SECONDEXPANSION: 61 .SECONDEXPANSION:
62 $(ANDROID_BUILDS): $(OUTDIR)/Makefile.$$@ 62 $(ANDROID_BUILDS): $(OUTDIR)/Makefile.$$@
63 @$(MAKE) -C "$(OUTDIR)" -f Makefile.$@ \ 63 @$(MAKE) -C "$(OUTDIR)" -f Makefile.$@ \
64 BUILDTYPE=$(shell echo $(subst .,,$(suffix $@)) | \ 64 BUILDTYPE=$(shell echo $(subst .,,$(suffix $@)) | \
65 python -c "print raw_input().capitalize()") \ 65 python -c "print raw_input().capitalize()") \
66 builddir="$(shell pwd)/$(OUTDIR)/$@" 66 builddir="$(shell pwd)/$(OUTDIR)/$@"
67 67
68 # Android GYP file generation targets. 68 # Android GYP file generation targets.
69 ANDROID_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(ANDROID_BUILDS)) 69 ANDROID_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(ANDROID_BUILDS))
70 $(ANDROID_MAKEFILES): 70 $(ANDROID_MAKEFILES):
71 GYP_GENERATORS=make-android \ 71 GYP_GENERATORS=make-android \
72 GYP_DEFINES="${DEFINES}" \ 72 GYP_DEFINES="${DEFINES}" \
73 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build: $(PYTHONPATH)" \ 73 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build: $(PYTHONPATH)" \
74 build/gyp/gyp --generator-output="${OUTDIR}" build/all.gyp \ 74 build/gyp/gyp --generator-output="${OUTDIR}" build/all.gyp \
75 -Ibuild/standalone.gypi --depth=. \ 75 -Ibuild/standalone.gypi --depth=. \
76 -S$(suffix $(basename $@))$(suffix $@) ${GYPFLAGS} 76 -S$(suffix $(basename $@))$(suffix $@) ${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