2021-06-19 15:16:24 +05:30
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
RED='\033[0;31m'
|
|
|
|
NC='\033[0m' # No Color
|
|
|
|
|
|
|
|
WORKSPACE=/home/lg/working_dir
|
|
|
|
PATH=$WORKSPACE/chromium/src/third_party/llvm-build/Release+Asserts/bin:$WORKSPACE/depot_tools/:/usr/local/go/bin:$PATH
|
|
|
|
|
2021-07-02 17:04:38 +05:30
|
|
|
sudo apt-get install -y lsof libgoogle-glog-dev libprotobuf17 libgrpc++1 parallel golang-go
|
|
|
|
|
|
|
|
echo -e ${RED} -------- download mtool ${NC}
|
|
|
|
git clone https://github.com/bromite/mtool
|
|
|
|
cd mtool
|
|
|
|
make
|
2021-08-15 17:08:00 +05:30
|
|
|
cd ..
|
|
|
|
|
2021-12-06 19:37:06 +05:30
|
|
|
echo -e ${RED} -------- download ninjatracing ${NC}
|
|
|
|
git clone https://github.com/nico/ninjatracing
|
|
|
|
|
2021-08-15 17:08:00 +05:30
|
|
|
mkdir $CIPD_CACHE_DIR
|
2021-08-27 14:53:07 +05:30
|
|
|
mkdir $VPYTHON_VIRTUALENV_ROOT
|
2021-07-02 17:04:38 +05:30
|
|
|
|
|
|
|
echo -e ${RED} -------- download goma client ${NC}
|
|
|
|
cd $WORKSPACE
|
2021-06-19 15:16:24 +05:30
|
|
|
cipd install infra/goma/client/linux-amd64 -root $WORKSPACE/goma
|
|
|
|
|
|
|
|
echo "nomatter" >$WORKSPACE/.debug_auth_file
|
|
|
|
sudo cp $WORKSPACE/goma_auth.py $WORKSPACE/goma/
|
2021-08-14 21:14:28 +05:30
|
|
|
|
2021-08-17 15:11:16 +05:30
|
|
|
echo -e ${RED} -------- prepare vpython virtual environment ${NC}
|
2021-08-15 17:08:00 +05:30
|
|
|
rm -rf /tmp/vpython*
|
2021-08-14 22:00:07 +05:30
|
|
|
cd $WORKSPACE/chromium/src
|
2021-09-25 17:17:06 +05:30
|
|
|
vpython -vpython-spec .vpython -vpython-root $VPYTHON_VIRTUALENV_ROOT -vpython-log-level debug -vpython-tool install
|
2021-09-25 12:12:05 +05:30
|
|
|
vpython3 -vpython-spec .vpython3 -vpython-root $VPYTHON_VIRTUALENV_ROOT -vpython-log-level debug -vpython-tool install
|
2021-08-17 15:11:16 +05:30
|
|
|
|
2021-08-27 16:10:38 +05:30
|
|
|
echo -e ${RED} -------- download x86_64 android image ${NC}
|
2022-02-03 03:29:16 +05:30
|
|
|
#echo -e "\$ParanoidMode CheckIntegrity\n\nchromium/third_party/android_sdk/public/avds/android-31/google_apis/x86_64 Ur_zl6_BRKRkf_9X3SMZ3eH2auoOyJ2kLslpTZZwi3gC" | .cipd_client ensure -ensure-file - -root $WORKSPACE/chromium/src/.android
|
|
|
|
#echo -e "\$ParanoidMode CheckIntegrity\n\nchromium/third_party/android_sdk/public/emulator gMHhUuoQRKfxr-MBn3fNNXZtkAVXtOwMwT7kfx8jkIgC\nchromium/third_party/android_sdk/public/system-images/android-31/google_apis/x86_64 R6Jh5_P21Euu-kdb11zcNjdJKN4vV1mdQTb8t4gph4IC" | .cipd_client ensure -ensure-file - -root $WORKSPACE/chromium/src/.emulator_sdk
|
2021-11-30 19:55:29 +05:30
|
|
|
|
|
|
|
echo -e ${RED} -------- download kythe resources ${NC}
|
|
|
|
wget https://chromium.googlesource.com/chromium/tools/build/+/main/recipes/recipe_modules/codesearch/resources/add_kythe_metadata.py?format=TEXT -O ~/add_kythe_metadata.py.base64
|
|
|
|
base64 -d ~/add_kythe_metadata.py.base64 >~/add_kythe_metadata.py
|
|
|
|
echo -e "infra/tools/package_index/linux-amd64 latest" | .cipd_client ensure -ensure-file - -root ~/package_index/latest
|
2021-12-06 19:00:39 +05:30
|
|
|
|
2021-12-06 19:59:22 +05:30
|
|
|
cd $WORKSPACE/
|
|
|
|
wget https://github.com/kythe/kythe/releases/download/v0.0.55/kythe-v0.0.55.tar.gz
|
|
|
|
tar xfz kythe-v0.0.55.tar.gz
|
|
|
|
|
2021-12-06 19:00:39 +05:30
|
|
|
# removed since fail download with
|
|
|
|
# https://commondatastorage.9oo91eapis.qjz9zk/chromium-browser-clang/Linux_x64/translation_unit-llvmorg-14-init-5759-g02895eed-1.tgz
|
2021-12-06 20:51:24 +05:30
|
|
|
python tools/clang/scripts/update.py --package=translation_unit
|
2021-12-08 17:13:28 +05:30
|
|
|
|
|
|
|
echo -e ${RED} -------- download bromite-buildtools ${NC}
|
|
|
|
cd $WORKSPACE/
|
|
|
|
git clone https://github.com/uazo/bromite-buildtools
|
|
|
|
|
|
|
|
echo -e ${RED} -------- compile modified ninja ${NC}
|
|
|
|
cd $WORKSPACE/
|
|
|
|
git clone https://github.com/ninja-build/ninja.git -b v1.8.2
|
|
|
|
cd ninja
|
|
|
|
git apply $WORKSPACE/bromite-buildtools/ninja-one-target-for-compdb.patch
|
|
|
|
./configure.py --bootstrap
|
2021-12-08 17:34:18 +05:30
|
|
|
|
|
|
|
echo -e ${RED} -------- download clang indexer ${NC}
|
|
|
|
cd $WORKSPACE/
|
|
|
|
wget https://github.com/clangd/clangd/releases/download/snapshot_20211205/clangd_indexing_tools-linux-snapshot_20211205.zip
|
|
|
|
unzip clangd_indexing_tools-linux-snapshot_20211205.zip
|
|
|
|
rm clangd_indexing_tools-linux-snapshot_20211205.zip
|