LEFT | RIGHT |
1 V8_DIR :=$(shell pwd -L)/third_party/v8/ | 1 V8_DIR :=$(shell pwd -L)/third_party/v8/ |
2 HOST_ARCH :=$(shell python ${V8_DIR}gypfiles/detect_v8_host_arch.py) | 2 HOST_ARCH :=$(shell python ${V8_DIR}gypfiles/detect_v8_host_arch.py) |
3 | 3 |
4 GYP_PARAMETERS=host_arch=${HOST_ARCH} | 4 GYP_PARAMETERS=host_arch=${HOST_ARCH} |
5 | 5 |
6 ifndef HOST_OS | 6 ifndef HOST_OS |
7 raw_OS = $(shell uname -s) | 7 raw_OS = $(shell uname -s) |
8 ifeq (${raw_OS},Linux) | 8 ifeq (${raw_OS},Linux) |
9 HOST_OS=linux | 9 HOST_OS=linux |
10 else ifeq (${raw_OS},Darwin) | 10 else ifeq (${raw_OS},Darwin) |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 cd third_party/v8 && GYP_GENERATORS=make-android \ | 73 cd third_party/v8 && GYP_GENERATORS=make-android \ |
74 GYP_DEFINES="${GYP_PARAMETERS} v8_target_arch=${ANDROID_ARCH}" \ | 74 GYP_DEFINES="${GYP_PARAMETERS} v8_target_arch=${ANDROID_ARCH}" \ |
75 PYTHONPATH="${V8_DIR}tools/generate_shim_headers:${V8_DIR}gypfiles:${P
YTHONPATH}" \ | 75 PYTHONPATH="${V8_DIR}tools/generate_shim_headers:${V8_DIR}gypfiles:${P
YTHONPATH}" \ |
76 tools/gyp/gyp \ | 76 tools/gyp/gyp \ |
77 --generator-output=../../build src/v8.gyp \ | 77 --generator-output=../../build src/v8.gyp \ |
78 -Igypfiles/standalone.gypi \ | 78 -Igypfiles/standalone.gypi \ |
79 --depth=. \ | 79 --depth=. \ |
80 -S.android_${ANDROID_ARCH}.release \ | 80 -S.android_${ANDROID_ARCH}.release \ |
81 -I../../android-v8-options.gypi | 81 -I../../android-v8-options.gypi |
82 cd third_party/v8 && make \ | 82 cd third_party/v8 && make \ |
83 -C ../../build \ | 83 -C ../../build \ |
84 -f Makefile.android_${ANDROID_ARCH}.release \ | 84 -f Makefile.android_${ANDROID_ARCH}.release \ |
85 v8_snapshot v8_libplatform v8_libsampler \ | 85 v8_snapshot v8_libplatform v8_libsampler \ |
86 BUILDTYPE=Release \ | 86 BUILDTYPE=Release \ |
87 builddir=${V8_DIR}../../build/android_${ANDROID_ARCH}.release | 87 builddir=${V8_DIR}../../build/android_${ANDROID_ARCH}.release |
88 | 88 |
89 v8_android_multi_linux_${ANDROID_ARCH}: v8_android_multi | 89 v8_android_multi_linux_${ANDROID_ARCH}: v8_android_multi |
90 | 90 |
91 v8_android_multi_mac_ia32: v8_android_multi | 91 v8_android_multi_mac_ia32: v8_android_multi |
92 find build/android_ia32.release/ -depth 1 -iname \*.a -exec ${ANDROID_ND
K_ROOT}/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-ranlib
{} \; | 92 find build/android_ia32.release/ -depth 1 -iname \*.a -exec ${ANDROID_ND
K_ROOT}/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-ranlib
{} \; |
93 | 93 |
94 v8_android_multi_mac_arm: v8_android_multi | 94 v8_android_multi_mac_arm: v8_android_multi |
95 find build/android_arm.release/ -depth 1 -iname \*.a -exec ${ANDROID_NDK
_ROOT}/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux
-androideabi-ranlib {} \; | 95 find build/android_arm.release/ -depth 1 -iname \*.a -exec ${ANDROID_NDK
_ROOT}/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux
-androideabi-ranlib {} \; |
96 | 96 |
97 android_multi: v8_android_multi_${HOST_OS}_${ANDROID_ARCH} | 97 android_multi: v8_android_multi_${HOST_OS}_${ANDROID_ARCH} |
98 GYP_DEFINES="${GYP_PARAMETERS}" \ | 98 GYP_DEFINES="${GYP_PARAMETERS}" \ |
99 » ./make_gyp_wrapper.py --depth=. -f make-android -Ilibadblockplus.gypi --
generator-output=build -Gandroid_ndk_version=r9 libadblockplus.gyp | 99 » python ./make_gyp_wrapper.py --depth=. -f make-android -Ilibadblockplus.
gypi --generator-output=build -Gandroid_ndk_version=r9 libadblockplus.gyp |
100 $(ANDROID_NDK_ROOT)/ndk-build -C build installed_modules \ | 100 $(ANDROID_NDK_ROOT)/ndk-build -C build installed_modules \ |
101 BUILDTYPE=Release \ | 101 BUILDTYPE=Release \ |
102 APP_ABI=$(ANDROID_ABI) \ | 102 APP_ABI=$(ANDROID_ABI) \ |
103 APP_PLATFORM=android-9 \ | 103 APP_PLATFORM=android-9 \ |
104 APP_STL=c++_static \ | 104 APP_STL=c++_static \ |
105 APP_BUILD_SCRIPT=Makefile \ | 105 APP_BUILD_SCRIPT=Makefile \ |
106 NDK_PROJECT_PATH=. \ | 106 NDK_PROJECT_PATH=. \ |
107 NDK_OUT=. \ | 107 NDK_OUT=. \ |
108 NDK_APP_DST_DIR=$(ANDROID_DEST_DIR) | 108 NDK_APP_DST_DIR=$(ANDROID_DEST_DIR) |
109 endif | 109 endif |
110 | 110 |
LEFT | RIGHT |