OLD | NEW |
1 #!/usr/bin/env bash | 1 #!/usr/bin/env bash |
2 | 2 |
3 set -x | 3 set -x |
4 set -e | 4 set -e |
5 | 5 |
6 if [[ ! -d "third_party/prebuilt-v8/include" ]]; then | 6 if [[ ! -d "third_party/prebuilt-v8/include" ]]; then |
7 wget ${URL_PREFIX}include.7z -O third_party/v8-include.7z | 7 wget ${URL_PREFIX}include.7z -O third_party/v8-include.7z |
8 7z x third_party/v8-include.7z -othird_party/prebuilt-v8 | 8 7z x third_party/v8-include.7z -othird_party/prebuilt-v8 |
9 fi | 9 fi |
10 | 10 |
11 PREBUILT_V8_ARCHIVE=${TARGET_OS}-${TARGET_ARCH}-${Configuration}.tar.xz | 11 PREBUILT_V8_ARCHIVE=${TARGET_OS}-${ABP_TARGET_ARCH}-${Configuration}.tar.xz |
12 | 12 |
13 if [[ "${TARGET_OS}" != "android" ]]; then | 13 if [[ "${TARGET_OS}" != "android" ]]; then |
14 if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then | 14 if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then |
15 PREBUILT_V8_ARCHIVE=osx-x64-debug.tar.xz | 15 PREBUILT_V8_ARCHIVE=osx-x64-debug.tar.xz |
16 elif [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then | 16 elif [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then |
17 PREBUILT_V8_ARCHIVE=u14.04-x64-debug.tar.xz | 17 PREBUILT_V8_ARCHIVE=u14.04-x64-debug.tar.xz |
18 fi | 18 fi |
19 fi | 19 fi |
20 | 20 |
21 wget ${URL_PREFIX}/${PREBUILT_V8_ARCHIVE} -O third_party/v8-prebuilt.tar.xz | 21 wget ${URL_PREFIX}/${PREBUILT_V8_ARCHIVE} -O third_party/v8-prebuilt.tar.xz |
22 mkdir -p third_party/prebuilt-v8/${TARGET_OS}-${TARGET_ARCH}-${Configuration} | 22 mkdir -p third_party/prebuilt-v8/${TARGET_OS}-${ABP_TARGET_ARCH}-${Configuration
} |
23 tar -xJf third_party/v8-prebuilt.tar.xz -C third_party/prebuilt-v8/${TARGET_OS}-
${TARGET_ARCH}-${Configuration} | 23 tar -xJf third_party/v8-prebuilt.tar.xz -C third_party/prebuilt-v8/${TARGET_OS}-
${ABP_TARGET_ARCH}-${Configuration} |
OLD | NEW |