Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 | 40 DEFINES += arm_neon=0 arm_version=7 |
| 43 else ifeq ($(ARCH), android_arm64) | 41 else ifeq ($(ARCH), android_arm64) |
| 44 DEFINES = target_arch=arm64 v8_target_arch=arm64 android_target_arch=arm64 an droid_target_platform=21 | 42 DEFINES = target_arch=arm64 v8_target_arch=arm64 |
| 45 else ifeq ($(ARCH), android_mipsel) | 43 else ifeq ($(ARCH), android_mipsel) |
| 46 DEFINES = target_arch=mipsel v8_target_arch=mipsel android_target_platform=16 | 44 DEFINES = target_arch=mipsel v8_target_arch=mipsel |
| 47 DEFINES += android_target_arch=mips mips_arch_variant=mips32r2 | 45 DEFINES += mips_arch_variant=mips32r2 |
|
Michael Achenbach
2015/06/24 14:53:31
I'd like to tidy up mips_arch_variant=mips32r2. Is
dusmil.imgtec
2015/06/24 15:55:20
Yes, this should follow chromium variants and vari
dusmil.imgtec
2015/06/24 16:08:23
On 2015/06/24 14:53:31, Michael Achenbach wrote:
I
Michael Achenbach
2015/06/26 08:46:58
I'll delete mips_arch_variant as it has no effect.
| |
| 48 else ifeq ($(ARCH), android_ia32) | 46 else ifeq ($(ARCH), android_ia32) |
| 49 DEFINES = target_arch=ia32 v8_target_arch=ia32 android_target_arch=x86 android _target_platform=16 | 47 DEFINES = target_arch=ia32 v8_target_arch=ia32 |
| 50 else ifeq ($(ARCH), android_x64) | 48 else ifeq ($(ARCH), android_x64) |
| 51 DEFINES = target_arch=x64 v8_target_arch=x64 android_target_arch=x86_64 androi d_target_platform=21 | 49 DEFINES = target_arch=x64 v8_target_arch=x64 |
| 52 else ifeq ($(ARCH), android_x87) | 50 else ifeq ($(ARCH), android_x87) |
| 53 DEFINES = target_arch=x87 v8_target_arch=x87 android_target_arch=x86 android_t arget_platform=16 | 51 DEFINES = target_arch=ia32 v8_target_arch=x87 |
|
Michael Achenbach
2015/06/24 14:53:31
Target arch x87 seems like a mistake to me. CC'ing
| |
| 54 else | 52 else |
| 55 $(error Target architecture "${ARCH}" is not supported) | 53 $(error Target architecture "${ARCH}" is not supported) |
| 56 endif | 54 endif |
| 57 | 55 |
| 58 # Common flags. | 56 # Common flags. |
| 59 DEFINES += host_os=${HOST_OS} OS=android | 57 DEFINES += OS=android |
| 60 | 58 |
| 61 .SECONDEXPANSION: | 59 .SECONDEXPANSION: |
| 62 $(ANDROID_BUILDS): $(OUTDIR)/Makefile.$$@ | 60 $(ANDROID_BUILDS): $(OUTDIR)/Makefile.$$@ |
| 63 @$(MAKE) -C "$(OUTDIR)" -f Makefile.$@ \ | 61 @$(MAKE) -C "$(OUTDIR)" -f Makefile.$@ \ |
| 64 BUILDTYPE=$(shell echo $(subst .,,$(suffix $@)) | \ | 62 BUILDTYPE=$(shell echo $(subst .,,$(suffix $@)) | \ |
| 65 python -c "print raw_input().capitalize()") \ | 63 python -c "print raw_input().capitalize()") \ |
| 66 builddir="$(shell pwd)/$(OUTDIR)/$@" | 64 builddir="$(shell pwd)/$(OUTDIR)/$@" |
| 67 | 65 |
| 68 # Android GYP file generation targets. | 66 # Android GYP file generation targets. |
| 69 ANDROID_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(ANDROID_BUILDS)) | 67 ANDROID_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(ANDROID_BUILDS)) |
| 70 $(ANDROID_MAKEFILES): | 68 $(ANDROID_MAKEFILES): |
| 71 GYP_GENERATORS=make-android \ | 69 GYP_GENERATORS=make-android \ |
| 72 GYP_DEFINES="${DEFINES}" \ | 70 GYP_DEFINES="${DEFINES}" \ |
| 73 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build: $(PYTHONPATH)" \ | 71 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build: $(PYTHONPATH)" \ |
| 74 build/gyp/gyp --generator-output="${OUTDIR}" build/all.gyp \ | 72 build/gyp/gyp --generator-output="${OUTDIR}" build/all.gyp \ |
| 75 -Ibuild/standalone.gypi --depth=. \ | 73 -Ibuild/standalone.gypi --depth=. \ |
| 76 -S$(suffix $(basename $@))$(suffix $@) ${GYPFLAGS} | 74 -S$(suffix $(basename $@))$(suffix $@) ${GYPFLAGS} |
| OLD | NEW |