Preliminary upload of win native build scripts

This commit is contained in:
Alexander David Frick 2022-04-20 14:23:02 -07:00 committed by GitHub
parent 624d2b5b42
commit 52d9bb95a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 65 additions and 0 deletions

19
win_scripts/clean.bat Normal file
View file

@ -0,0 +1,19 @@
# run from within out/Default or wherever you put your build, or cd there first
# i.e. cd /home/alex/bin/chromium-dev/
find . -name "*deps*" -delete
find . -name "*TOC*" -delete
rm -r pyproto
rm -r obj
rm -r newlib_pnacl_nonsfi
rm -r newlib_pnacl
rm -r nacl_bootstrap_x64
rm -r irt_x64
rm -r glibc_x64
rm -r gen
rm -r etc
rm -r clang_newlib_x64
rm -r thinlto-cache
rm -r fontconfig_caches
exit 0

22
win_scripts/setup.bat Normal file
View file

@ -0,0 +1,22 @@
## Windows native build setup script.
# Copyright (c) 2022 Alex313031.
mkdir C:\chromium\src\out\thorium
copy ..\build\* C:\chromium\src\build
copy ..\chrome\* C:\chromium\src\chrome
copy ..\components\* C:\chromium\src\components
copy ..\content\* C:\chromium\src\content
copy ..\media\* C:\chromium\src\media
copy ..\net\* C:\chromium\src\net
copy ..\sandbox\* C:\chromium\src\sandbox
copy ..\third_party\* C:\chromium\src\third_party
copy ..\tools\* C:\chromium\src\tools
copy ..\ui\* C:\chromium\src\ui
copy ..\v8\* C:\chromium\src\v8
copy ..\content_shell\* C:\chromium\src\out\thorium
copy ..\pak_src\bin\pak-win\* C:\chromium\src\out\thorium
cd C:\chromium\src
exit 0

24
win_scripts/trunk.bat Normal file
View file

@ -0,0 +1,24 @@
## Windows native build trunk script.
# Copyright (c) 2022 Alex313031.
cd C:\chromium\src\v8 &&
git checkout -f origin/main &&
cd C:\chromium\src &&
git checkout -f origin/main &&
git rebase-update &&
git fetch --tags &&
gclient sync -D &&
gclient sync --with_branch_heads --with_tags &&
gclient runhooks &&
python tools\update_pgo_profiles.py --target=win64 update --gs-url-base=chromium-optimization-profiles/pgo_profiles &&
exit 0