-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide a single script that does everything
Also, hardcode the tdlib version, because only one works
- Loading branch information
1 parent
f7829a4
commit 21fcb8a
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
JOBS="$(nproc || echo 1)" | ||
|
||
rm -rf build | ||
mkdir build | ||
pushd build | ||
git clone https://github.com/tdlib/td.git | ||
pushd td | ||
git checkout 7d41d9eaa58a6e0927806283252dc9e74eda5512 # v1.7.9 wasn't properly tagged | ||
mkdir build | ||
pushd build | ||
cmake -DCMAKE_BUILD_TYPE=Release .. | ||
make -j "${JOBS}" | ||
make install DESTDIR=destdir | ||
popd | ||
popd | ||
cmake -DTd_DIR="$(realpath .)"/td/build/destdir/usr/local/lib/cmake/Td/ -DNoVoip=True .. | ||
make -j "${JOBS}" | ||
echo "Now calling sudo make install" | ||
sudo make install | ||
popd |