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 |
|
Michael Achenbach
2015/06/26 08:46:59
Moving arm_version into gypi. Deleting neon=0 as i
| |
| 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 | |
| 48 else ifeq ($(ARCH), android_ia32) | 45 else ifeq ($(ARCH), android_ia32) |
| 49 DEFINES = target_arch=ia32 v8_target_arch=ia32 android_target_arch=x86 android _target_platform=16 | 46 DEFINES = target_arch=ia32 v8_target_arch=ia32 |
| 50 else ifeq ($(ARCH), android_x64) | 47 else ifeq ($(ARCH), android_x64) |
| 51 DEFINES = target_arch=x64 v8_target_arch=x64 android_target_arch=x86_64 androi d_target_platform=21 | 48 DEFINES = target_arch=x64 v8_target_arch=x64 |
| 52 else ifeq ($(ARCH), android_x87) | 49 else ifeq ($(ARCH), android_x87) |
| 53 DEFINES = target_arch=x87 v8_target_arch=x87 android_target_arch=x86 android_t arget_platform=16 | 50 DEFINES = target_arch=ia32 v8_target_arch=x87 |
| 54 else | 51 else |
| 55 $(error Target architecture "${ARCH}" is not supported) | 52 $(error Target architecture "${ARCH}" is not supported) |
| 56 endif | 53 endif |
| 57 | 54 |
| 58 # Common flags. | 55 # Common flags. |
| 59 DEFINES += host_os=${HOST_OS} OS=android | 56 DEFINES += OS=android |
| 60 | 57 |
| 61 .SECONDEXPANSION: | 58 .SECONDEXPANSION: |
| 62 $(ANDROID_BUILDS): $(OUTDIR)/Makefile.$$@ | 59 $(ANDROID_BUILDS): $(OUTDIR)/Makefile.$$@ |
| 63 @$(MAKE) -C "$(OUTDIR)" -f Makefile.$@ \ | 60 @$(MAKE) -C "$(OUTDIR)" -f Makefile.$@ \ |
| 64 BUILDTYPE=$(shell echo $(subst .,,$(suffix $@)) | \ | 61 BUILDTYPE=$(shell echo $(subst .,,$(suffix $@)) | \ |
| 65 python -c "print raw_input().capitalize()") \ | 62 python -c "print raw_input().capitalize()") \ |
| 66 builddir="$(shell pwd)/$(OUTDIR)/$@" | 63 builddir="$(shell pwd)/$(OUTDIR)/$@" |
| 67 | 64 |
| 68 # Android GYP file generation targets. | 65 # Android GYP file generation targets. |
| 69 ANDROID_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(ANDROID_BUILDS)) | 66 ANDROID_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(ANDROID_BUILDS)) |
| 70 $(ANDROID_MAKEFILES): | 67 $(ANDROID_MAKEFILES): |
| 71 GYP_GENERATORS=make-android \ | 68 GYP_GENERATORS=make-android \ |
| 72 GYP_DEFINES="${DEFINES}" \ | 69 GYP_DEFINES="${DEFINES}" \ |
| 73 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build: $(PYTHONPATH)" \ | 70 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build: $(PYTHONPATH)" \ |
| 74 build/gyp/gyp --generator-output="${OUTDIR}" build/all.gyp \ | 71 build/gyp/gyp --generator-output="${OUTDIR}" build/all.gyp \ |
| 75 -Ibuild/standalone.gypi --depth=. \ | 72 -Ibuild/standalone.gypi --depth=. \ |
| 76 -S$(suffix $(basename $@))$(suffix $@) ${GYPFLAGS} | 73 -S$(suffix $(basename $@))$(suffix $@) ${GYPFLAGS} |
| OLD | NEW |