| 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 28 matching lines...) Expand all Loading... |
| 39 ANDROID_NDK_HOST_ARCH ?= $(shell uname -m | sed -e 's/i[3456]86/x86/') | 39 ANDROID_NDK_HOST_ARCH ?= $(shell uname -m | sed -e 's/i[3456]86/x86/') |
| 40 ifeq ($(HOST_OS), linux) | 40 ifeq ($(HOST_OS), linux) |
| 41 TOOLCHAIN_DIR = linux-$(ANDROID_NDK_HOST_ARCH) | 41 TOOLCHAIN_DIR = linux-$(ANDROID_NDK_HOST_ARCH) |
| 42 else ifeq ($(HOST_OS), mac) | 42 else ifeq ($(HOST_OS), mac) |
| 43 TOOLCHAIN_DIR = darwin-$(ANDROID_NDK_HOST_ARCH) | 43 TOOLCHAIN_DIR = darwin-$(ANDROID_NDK_HOST_ARCH) |
| 44 else | 44 else |
| 45 $(error Host platform "${HOST_OS}" is not supported) | 45 $(error Host platform "${HOST_OS}" is not supported) |
| 46 endif | 46 endif |
| 47 | 47 |
| 48 ifeq ($(ARCH), android_arm) | 48 ifeq ($(ARCH), android_arm) |
| 49 DEFINES = target_arch=arm v8_target_arch=arm android_target_arch=arm android_
target_platform=21 | 49 DEFINES = OS=android target_arch=arm v8_target_arch=arm android_target_arch=a
rm android_target_platform=21 |
| 50 DEFINES += arm_neon=0 arm_version=7 | 50 DEFINES += arm_neon=0 arm_version=7 |
| 51 TOOLCHAIN_ARCH = arm-linux-androideabi | 51 TOOLCHAIN_ARCH = arm-linux-androideabi |
| 52 TOOLCHAIN_PREFIX = $(TOOLCHAIN_ARCH) | 52 TOOLCHAIN_PREFIX = $(TOOLCHAIN_ARCH) |
| 53 else ifeq ($(ARCH), android_arm64) | 53 else ifeq ($(ARCH), android_arm64) |
| 54 DEFINES = target_arch=arm64 v8_target_arch=arm64 android_target_arch=arm64 an
droid_target_platform=21 | 54 DEFINES = OS=android target_arch=arm64 v8_target_arch=arm64 android_target_ar
ch=arm64 android_target_platform=21 |
| 55 TOOLCHAIN_ARCH = aarch64-linux-android | 55 TOOLCHAIN_ARCH = aarch64-linux-android |
| 56 TOOLCHAIN_PREFIX = $(TOOLCHAIN_ARCH) | 56 TOOLCHAIN_PREFIX = $(TOOLCHAIN_ARCH) |
| 57 else ifeq ($(ARCH), android_mipsel) | 57 else ifeq ($(ARCH), android_mipsel) |
| 58 DEFINES = target_arch=mipsel v8_target_arch=mipsel android_target_platform=21 | 58 DEFINES = OS=android target_arch=mipsel v8_target_arch=mipsel android_target_
platform=21 |
| 59 DEFINES += android_target_arch=mips mips_arch_variant=mips32r2 | 59 DEFINES += android_target_arch=mips mips_arch_variant=mips32r2 |
| 60 TOOLCHAIN_ARCH = mipsel-linux-android | 60 TOOLCHAIN_ARCH = mipsel-linux-android |
| 61 TOOLCHAIN_PREFIX = $(TOOLCHAIN_ARCH) | 61 TOOLCHAIN_PREFIX = $(TOOLCHAIN_ARCH) |
| 62 else ifeq ($(ARCH), android_ia32) | 62 else ifeq ($(ARCH), android_ia32) |
| 63 DEFINES = target_arch=ia32 v8_target_arch=ia32 android_target_arch=x86 android
_target_platform=21 | 63 DEFINES = OS=android target_arch=ia32 v8_target_arch=ia32 android_target_arch=
x86 android_target_platform=21 |
| 64 TOOLCHAIN_ARCH = x86 | 64 TOOLCHAIN_ARCH = x86 |
| 65 TOOLCHAIN_PREFIX = i686-linux-android | 65 TOOLCHAIN_PREFIX = i686-linux-android |
| 66 else ifeq ($(ARCH), android_x64) | 66 else ifeq ($(ARCH), android_x64) |
| 67 DEFINES = target_arch=x64 v8_target_arch=x64 android_target_arch=x86_64 androi
d_target_platform=21 | 67 DEFINES = OS=android target_arch=x64 v8_target_arch=x64 android_target_arch=x8
6_64 android_target_platform=21 |
| 68 TOOLCHAIN_ARCH = x86_64 | 68 TOOLCHAIN_ARCH = x86_64 |
| 69 TOOLCHAIN_PREFIX = x86_64-linux-android | 69 TOOLCHAIN_PREFIX = x86_64-linux-android |
| 70 else ifeq ($(ARCH), android_x87) | 70 else ifeq ($(ARCH), android_x87) |
| 71 DEFINES = target_arch=x87 v8_target_arch=x87 android_target_arch=x86 android_t
arget_platform=21 | 71 DEFINES = OS=android target_arch=x87 v8_target_arch=x87 android_target_arch=x8
6 android_target_platform=21 |
| 72 TOOLCHAIN_ARCH = x86 | 72 TOOLCHAIN_ARCH = x86 |
| 73 TOOLCHAIN_PREFIX = i686-linux-android | 73 TOOLCHAIN_PREFIX = i686-linux-android |
| 74 else | 74 else |
| 75 $(error Target architecture "${ARCH}" is not supported) | 75 $(error Target architecture "${ARCH}" is not supported) |
| 76 endif | 76 endif |
| 77 | 77 |
| 78 TOOLCHAIN_PATH = \ | 78 TOOLCHAIN_PATH = \ |
| 79 ${ANDROID_NDK_ROOT}/toolchains/${TOOLCHAIN_ARCH}-4.9/prebuilt | 79 ${ANDROID_NDK_ROOT}/toolchains/${TOOLCHAIN_ARCH}-4.9/prebuilt |
| 80 ANDROID_TOOLCHAIN ?= ${TOOLCHAIN_PATH}/${TOOLCHAIN_DIR} | 80 ANDROID_TOOLCHAIN ?= ${TOOLCHAIN_PATH}/${TOOLCHAIN_DIR} |
| 81 | 81 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 104 | 104 |
| 105 # Android GYP file generation targets. | 105 # Android GYP file generation targets. |
| 106 ANDROID_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(ANDROID_BUILDS)) | 106 ANDROID_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(ANDROID_BUILDS)) |
| 107 $(ANDROID_MAKEFILES): | 107 $(ANDROID_MAKEFILES): |
| 108 GYP_GENERATORS=make-android \ | 108 GYP_GENERATORS=make-android \ |
| 109 GYP_DEFINES="${DEFINES}" \ | 109 GYP_DEFINES="${DEFINES}" \ |
| 110 CC="${ANDROID_TOOLCHAIN}/bin/${TOOLCHAIN_PREFIX}-gcc" \ | 110 CC="${ANDROID_TOOLCHAIN}/bin/${TOOLCHAIN_PREFIX}-gcc" \ |
| 111 CXX="${ANDROID_TOOLCHAIN}/bin/${TOOLCHAIN_PREFIX}-g++" \ | 111 CXX="${ANDROID_TOOLCHAIN}/bin/${TOOLCHAIN_PREFIX}-g++" \ |
| 112 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build:
$(PYTHONPATH)" \ | 112 PYTHONPATH="$(shell pwd)/tools/generate_shim_headers:$(shell pwd)/build:
$(PYTHONPATH)" \ |
| 113 build/gyp/gyp --generator-output="${OUTDIR}" build/all.gyp \ | 113 build/gyp/gyp --generator-output="${OUTDIR}" build/all.gyp \ |
| 114 » -Ibuild/standalone.gypi --depth=. -Ibuild/android.gypi \ | 114 » -Ibuild/standalone.gypi --depth=. \ |
| 115 -S$(suffix $(basename $@))$(suffix $@) ${GYPFLAGS} | 115 -S$(suffix $(basename $@))$(suffix $@) ${GYPFLAGS} |
| OLD | NEW |