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 wget ${URL_PREFIX}include.7z -O third_party/v8-include.7z | 6 if [[ ! -d "third_party/prebuilt-v8/include" ]]; then |
7 7z x third_party/v8-include.7z -othird_party/prebuilt-v8 | 7 wget ${URL_PREFIX}include.7z -O third_party/v8-include.7z |
| 8 7z x third_party/v8-include.7z -othird_party/prebuilt-v8 |
| 9 fi |
8 | 10 |
9 PREBUILT_V8_ARCHIVE=${TARGET_OS}-${TARGET_ARCH}-${Configuration}.tar.xz | 11 PREBUILT_V8_ARCHIVE=${TARGET_OS}-${TARGET_ARCH}-${Configuration}.tar.xz |
10 | 12 |
11 if [[ "${TARGET_OS}" != "android" ]]; then | 13 if [[ "${TARGET_OS}" != "android" ]]; then |
12 if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then | 14 if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then |
13 PREBUILT_V8_ARCHIVE=osx-x64-debug.tar.xz | 15 PREBUILT_V8_ARCHIVE=osx-x64-debug.tar.xz |
14 elif [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then | 16 elif [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then |
15 PREBUILT_V8_ARCHIVE=u14.04-x64-debug.tar.xz | 17 PREBUILT_V8_ARCHIVE=u14.04-x64-debug.tar.xz |
16 fi | 18 fi |
17 fi | 19 fi |
18 | 20 |
19 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 |
20 tar -xJf third_party/v8-prebuilt.tar.xz -C third_party/prebuilt-v8 | 22 mkdir -p 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}-
${TARGET_ARCH}-${Configuration} |
OLD | NEW |