summaryrefslogtreecommitdiff
path: root/build.bash
diff options
context:
space:
mode:
author@syxhe <t.me/syxhe>2025-12-18 17:15:50 -0600
committer@syxhe <t.me/syxhe>2025-12-18 17:15:50 -0600
commit59a7d9eb7c82a9a4da1275dc189ef0f5dea339a8 (patch)
tree49249956dc5787dbe615e04f6659ce39c28839f6 /build.bash
parent4d359b475dd70dae73a452bf514564b17d3ab8fb (diff)
Use correct telegram client versionHEADmaster
Diffstat (limited to 'build.bash')
-rwxr-xr-xbuild.bash46
1 files changed, 0 insertions, 46 deletions
diff --git a/build.bash b/build.bash
deleted file mode 100755
index 1e9572e..0000000
--- a/build.bash
+++ /dev/null
@@ -1,46 +0,0 @@
1#!/usr/bin/env -vS bash
2
3SOMEWHAT_REAL_DIR="$(realpath "$0")"
4FILENAME="${SOMEWHAT_REAL_DIR##*/}"
5PATH_TO="${SOMEWHAT_REAL_DIR/$FILENAME/}"
6
7function runInLocal() {
8 if [[ "$(pwd)/" != "$PATH_TO" ]]; then
9 (cd "$PATH_TO" && bash "$FILENAME")
10 exit $?
11 fi
12
13 return 0
14}
15
16function buildTDLIB() {
17 # TODO: Test to see if this works and if I want the install location to be where it is
18
19 cd td && \
20 rm -rf build && \
21 mkdir build && \
22 cd build && \
23 CXXFLAGS="-stdlib=libc++" CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=../../tdjni -DTD_ENABLE_JNI=ON .. && \
24 cmake --build . --target install && \
25 cd ../../tdjni && \
26 rm -rf build && \
27 mkdir build && \
28 cd build && \
29 CXXFLAGS="-stdlib=libc++" CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=../tdlib -DTd_DIR:PATH=$(readlink -e ../td/lib/cmake/Td) ../../td/CMakeLists.txt && \
30 cmake --build . --target install && \
31 cd .. && \
32 ls -l tdlib
33
34 return $?
35}
36
37function buildJar() {
38
39 return 0
40}
41
42runInLocal && \
43 buildTDLIB && \
44 buildJar
45
46exit "$?"