Skip to content

Commit

Permalink
ohos v8 9.4执行gclient sync时出错
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Aug 14, 2024
1 parent 6c4ce14 commit 30b949f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 10 deletions.
14 changes: 10 additions & 4 deletions ohos_armv7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ if [ "$VERSION" == "10.6.194" -o "$VERSION" == "11.8.172" ]; then
wget \
build-essential \
python3 \
ninja-build \
xz-utils \
zip

Expand All @@ -30,11 +31,14 @@ else
zip
fi

sudo apt-get install -y ninja-build

cd ~
echo "=====[ Getting Depot Tools ]====="
git clone -q https://chromium.googlesource.com/chromium/tools/depot_tools.git
if [ "$VERSION" != "10.6.194" -a "$VERSION" != "11.8.172" ]; then
cd depot_tools
git reset --hard 8d16d4a
cd ..
fi
export DEPOT_TOOLS_UPDATE=0
export PATH=$(pwd)/depot_tools:$PATH
gclient
Expand All @@ -49,7 +53,10 @@ echo "target_os = ['android']" >> .gclient
cd ~/v8/v8
git checkout refs/tags/$VERSION

gclient sync -D
echo "=====[ fix DEPS ]===="
node -e "const fs = require('fs'); fs.writeFileSync('./DEPS', fs.readFileSync('./DEPS', 'utf-8').replace(\"Var('chromium_url') + '/external/github.com/kennethreitz/requests.git'\", \"'https://github.com/kennethreitz/requests'\"));"

gclient sync


# echo "=====[ Patching V8 ]====="
Expand Down Expand Up @@ -82,7 +89,6 @@ if [ "$NEW_WRAP" == "with_new_wrap" ]; then
CXX_SETTING="use_custom_libcxx=true"
fi


echo "=====[ add ArrayBuffer_New_Without_Stl ]====="
node $GITHUB_WORKSPACE/node-script/add_arraybuffer_new_without_stl.js . $VERSION $NEW_WRAP

Expand Down
13 changes: 10 additions & 3 deletions ohos_armv8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ if [ "$VERSION" == "10.6.194" -o "$VERSION" == "11.8.172" ]; then
wget \
build-essential \
python3 \
ninja-build \
xz-utils \
zip

Expand All @@ -30,11 +31,14 @@ else
zip
fi

sudo apt-get install -y ninja-build

cd ~
echo "=====[ Getting Depot Tools ]====="
git clone -q https://chromium.googlesource.com/chromium/tools/depot_tools.git
if [ "$VERSION" != "10.6.194" -a "$VERSION" != "11.8.172" ]; then
cd depot_tools
git reset --hard 8d16d4a
cd ..
fi
export DEPOT_TOOLS_UPDATE=0
export PATH=$(pwd)/depot_tools:$PATH
gclient
Expand All @@ -49,7 +53,10 @@ echo "target_os = ['android']" >> .gclient
cd ~/v8/v8
git checkout refs/tags/$VERSION

gclient sync -D
echo "=====[ fix DEPS ]===="
node -e "const fs = require('fs'); fs.writeFileSync('./DEPS', fs.readFileSync('./DEPS', 'utf-8').replace(\"Var('chromium_url') + '/external/github.com/kennethreitz/requests.git'\", \"'https://github.com/kennethreitz/requests'\"));"

gclient sync


# echo "=====[ Patching V8 ]====="
Expand Down
13 changes: 10 additions & 3 deletions ohos_x64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ if [ "$VERSION" == "10.6.194" -o "$VERSION" == "11.8.172" ]; then
wget \
build-essential \
python3 \
ninja-build \
xz-utils \
zip

Expand All @@ -30,11 +31,14 @@ else
zip
fi

sudo apt-get install -y ninja-build

cd ~
echo "=====[ Getting Depot Tools ]====="
git clone -q https://chromium.googlesource.com/chromium/tools/depot_tools.git
if [ "$VERSION" != "10.6.194" -a "$VERSION" != "11.8.172" ]; then
cd depot_tools
git reset --hard 8d16d4a
cd ..
fi
export DEPOT_TOOLS_UPDATE=0
export PATH=$(pwd)/depot_tools:$PATH
gclient
Expand All @@ -49,7 +53,10 @@ echo "target_os = ['android']" >> .gclient
cd ~/v8/v8
git checkout refs/tags/$VERSION

gclient sync -D
echo "=====[ fix DEPS ]===="
node -e "const fs = require('fs'); fs.writeFileSync('./DEPS', fs.readFileSync('./DEPS', 'utf-8').replace(\"Var('chromium_url') + '/external/github.com/kennethreitz/requests.git'\", \"'https://github.com/kennethreitz/requests'\"));"

gclient sync


# echo "=====[ Patching V8 ]====="
Expand Down

0 comments on commit 30b949f

Please sign in to comment.