-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathprepare.sh
executable file
·129 lines (94 loc) · 2.39 KB
/
prepare.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#!/bin/bash
start_step=1
if [ $# -ne 0 ]
then
[ ! -z "${1##*[!0-9]*}" ] && start_step=$1 || start_step=1
else
echo "To restart the script at any numbered step, provide this number as argument"
echo ""
echo "<No start step given, starting at beginning.>"
echo ""
fi
if [ $start_step -eq 1 ]
then
echo "------------------------------"
echo "(1) creating base folder \"chrome\""
echo "------------------------------"
mkdir chrome
cd chrome
start_step=2
fi
if [ $start_step -eq 2 ]
then
echo "------------------------------"
echo "(2) install depot tools -> build tools: gclient, gn, ninja, etc. needed to build chrome"
echo "------------------------------"
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH="$PATH:$(pwd)/depot_tools"
start_step=3
fi
if [ $start_step -eq 3 ]
then
echo "------------------------------"
echo "(3) running gclient to setup chromium source @ commit: e48ee88"
echo "------------------------------"
gclient root
gclient config --spec 'solutions = [
{
"url": "https://chromium.googlesource.com/chromium/src.git",
"managed": False,
"name": "src",
"custom_deps": {},
"custom_vars": {},
},
]
'
gclient sync --nohooks --revision e48ee88
cd src
git submodule foreach 'git config -f $toplevel/.git/config submodule.$name.ignore all'
git config --add remote.origin.fetch '+refs/tags/*:refs/tags/*'
git config diff.ignoreSubmodules all
start_step=4
fi
if [ $start_step -eq 4 ]
then
echo "------------------------------"
echo "(4) installing internal dependencies"
echo "------------------------------"
gclient runhooks
cd ../..
start_step=5
fi
if [ $start_step -eq 5 ]
then
echo "------------------------------"
echo "(5) appling SlipStream modifications"
echo "------------------------------"
./update-mod-links.sh
cd chrome/src
start_step=6
fi
if [ $start_step -eq 6 ]
then
echo "------------------------------"
echo "(6) creating release environment"
echo "------------------------------"
gn gen out/Release
start_step=7
fi
if [ $start_step -eq 7 ]
then
echo "------------------------------"
echo "(7) first build (needs to fail)"
echo "------------------------------"
ninja -C out/Release quic_server quic_client
cd ../..
start_step=8
fi
if [ $start_step -eq 8 ]
then
echo "------------------------------"
echo "(8) final build"
echo "------------------------------"
./make.sh
fi