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

Side by Side Diff: Makefile.android

Issue 1210393003: Reland [android] Migrate more configs to gyp. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix 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 | build/standalone.gypi » ('j') | 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 17 matching lines...) Expand all
28 # Those definitions should be consistent with the main Makefile 28 # Those definitions should be consistent with the main Makefile
29 ANDROID_ARCHES = android_ia32 android_x64 android_arm android_arm64 \ 29 ANDROID_ARCHES = android_ia32 android_x64 android_arm android_arm64 \
30 android_mipsel android_x87 30 android_mipsel android_x87
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/')
39
40 ifeq ($(ARCH), android_arm) 38 ifeq ($(ARCH), android_arm)
41 DEFINES = target_arch=arm v8_target_arch=arm android_target_arch=arm android_ target_platform=16 39 DEFINES = target_arch=arm v8_target_arch=arm
42 DEFINES += arm_neon=0 arm_version=7
43 else ifeq ($(ARCH), android_arm64) 40 else ifeq ($(ARCH), android_arm64)
44 DEFINES = target_arch=arm64 v8_target_arch=arm64 android_target_arch=arm64 an droid_target_platform=21 41 DEFINES = target_arch=arm64 v8_target_arch=arm64
45 else ifeq ($(ARCH), android_mipsel) 42 else ifeq ($(ARCH), android_mipsel)
46 DEFINES = target_arch=mipsel v8_target_arch=mipsel android_target_platform=16 43 DEFINES = target_arch=mipsel v8_target_arch=mipsel
47 DEFINES += android_target_arch=mips mips_arch_variant=mips32r2
48 else ifeq ($(ARCH), android_ia32) 44 else ifeq ($(ARCH), android_ia32)
49 DEFINES = target_arch=ia32 v8_target_arch=ia32 android_target_arch=x86 android _target_platform=16 45 DEFINES = target_arch=ia32 v8_target_arch=ia32
50 else ifeq ($(ARCH), android_x64) 46 else ifeq ($(ARCH), android_x64)
51 DEFINES = target_arch=x64 v8_target_arch=x64 android_target_arch=x86_64 androi d_target_platform=21 47 DEFINES = target_arch=x64 v8_target_arch=x64
52 else ifeq ($(ARCH), android_x87) 48 else ifeq ($(ARCH), android_x87)
53 DEFINES = target_arch=x87 v8_target_arch=x87 android_target_arch=x86 android_t arget_platform=16 49 DEFINES = target_arch=ia32 v8_target_arch=x87
54 else 50 else
55 $(error Target architecture "${ARCH}" is not supported) 51 $(error Target architecture "${ARCH}" is not supported)
56 endif 52 endif
57 53
58 # Common flags. 54 # Common flags.
59 DEFINES += host_os=${HOST_OS} OS=android 55 DEFINES += OS=android
60 56
61 .SECONDEXPANSION: 57 .SECONDEXPANSION:
62 $(ANDROID_BUILDS): $(OUTDIR)/Makefile.$$@ 58 $(ANDROID_BUILDS): $(OUTDIR)/Makefile.$$@
63 @$(MAKE) -C "$(OUTDIR)" -f Makefile.$@ \ 59 @$(MAKE) -C "$(OUTDIR)" -f Makefile.$@ \
64 BUILDTYPE=$(shell echo $(subst .,,$(suffix $@)) | \ 60 BUILDTYPE=$(shell echo $(subst .,,$(suffix $@)) | \
65 python -c "print raw_input().capitalize()") \ 61 python -c "print raw_input().capitalize()") \
66 builddir="$(shell pwd)/$(OUTDIR)/$@" 62 builddir="$(shell pwd)/$(OUTDIR)/$@"
67 63
68 # Android GYP file generation targets. 64 # Android GYP file generation targets.
69 ANDROID_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(ANDROID_BUILDS)) 65 ANDROID_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(ANDROID_BUILDS))
70 $(ANDROID_MAKEFILES): 66 $(ANDROID_MAKEFILES):
71 GYP_GENERATORS=make-android \ 67 GYP_GENERATORS=make-android \
72 GYP_DEFINES="${DEFINES}" \ 68 GYP_DEFINES="${DEFINES}" \
73 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build: $(PYTHONPATH)" \ 69 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build: $(PYTHONPATH)" \
74 build/gyp/gyp --generator-output="${OUTDIR}" build/all.gyp \ 70 build/gyp/gyp --generator-output="${OUTDIR}" build/all.gyp \
75 -Ibuild/standalone.gypi --depth=. \ 71 -Ibuild/standalone.gypi --depth=. \
76 -S$(suffix $(basename $@))$(suffix $@) ${GYPFLAGS} 72 -S$(suffix $(basename $@))$(suffix $@) ${GYPFLAGS}
OLDNEW
« no previous file with comments | « no previous file | build/standalone.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698