Skip to content

Commit 5fe8767

Browse files
authored
Speedup build process (#672)
* Remove packages not required in Ubuntu * Ignore previous commits to speedup download * Parallel compiling
1 parent 2046128 commit 5fe8767

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Install dependencies:
127127
Download and install from source:
128128

129129
```
130-
git clone --recurse-submodules https://github.com/MisterTea/EternalTerminal.git
130+
git clone --recurse-submodules --depth 1 https://github.com/MisterTea/EternalTerminal.git
131131
cd EternalTerminal
132132
mkdir build
133133
cd build
@@ -204,12 +204,12 @@ To build Eternal Terminal on Mac, the easiest way is to grab dependencies with H
204204

205205
```
206206
brew install autoconf automake libtool
207-
git clone --recurse-submodules https://github.com/MisterTea/EternalTerminal.git
207+
git clone --recurse-submodules --depth 1 https://github.com/MisterTea/EternalTerminal.git
208208
cd EternalTerminal
209209
mkdir build
210210
cd build
211211
cmake ../
212-
make && sudo make install
212+
make -j$(nproc) && sudo make install
213213
```
214214

215215
To run an `et` server for testing, run `./etserver`. To run an `et`
@@ -227,27 +227,27 @@ Grab the deps and then follow this process.
227227
Debian/Ubuntu Dependencies:
228228

229229
```
230-
sudo apt install libboost-dev libsodium-dev autoconf libtool \
231-
libprotobuf-dev protobuf-compiler libgflags-dev libutempter-dev libcurl4-openssl-dev \
230+
sudo apt install libsodium-dev autoconf libtool \
231+
libprotobuf-dev protobuf-compiler libutempter-dev libcurl4-openssl-dev \
232232
build-essential ninja-build cmake git zip
233233
```
234234

235235
Fetch source, build and install:
236236

237237
```
238-
git clone --recurse-submodules https://github.com/MisterTea/EternalTerminal.git
238+
git clone --recurse-submodules --depth 1 https://github.com/MisterTea/EternalTerminal.git
239239
cd EternalTerminal
240240
mkdir build
241241
cd build
242242
# For ARM (including OS/X with apple silicon):
243243
if [[ $(uname -a | grep 'arm\|aarch64') ]]; then export VCPKG_FORCE_SYSTEM_BINARIES=1; fi
244244
cmake ../
245-
make package
245+
make -j$(nproc) package
246246
sudo dpkg --install *.deb
247247
sudo cp ../etc/et.cfg /etc/
248248
```
249249

250-
Once built, the binary only requires `libgflags-dev` and `libprotobuf-dev`.
250+
Once built, the binary only requires `libprotobuf-dev`.
251251

252252

253253
### CentOS 7
@@ -268,7 +268,7 @@ sudo yum install devtoolset-11 devtoolset-11-libatomic-devel rh-git227
268268

269269
Download and install from source ([see #238 for details](https://github.com/MisterTea/EternalTerminal/issues/238)):
270270
```
271-
git clone --recurse-submodules https://github.com/MisterTea/EternalTerminal.git
271+
git clone --recurse-submodules --depth 1 https://github.com/MisterTea/EternalTerminal.git
272272
cd EternalTerminal
273273
mkdir build
274274
cd build

0 commit comments

Comments
 (0)