summaryrefslogtreecommitdiff
path: root/build.bash
diff options
context:
space:
mode:
author@syxhe <t.me/syxhe>2025-10-05 18:08:19 -0500
committer@syxhe <t.me/syxhe>2025-10-05 18:08:19 -0500
commit4d359b475dd70dae73a452bf514564b17d3ab8fb (patch)
treed45232a3d7805bb22354b5afb8ae7c70e4348af8 /build.bash
parent3de3a9d4ca7b188abb0411c9e0a484ed2561a4b7 (diff)
Update build.bashHEADmaster
Diffstat (limited to 'build.bash')
-rwxr-xr-xbuild.bash21
1 files changed, 18 insertions, 3 deletions
diff --git a/build.bash b/build.bash
index f2b188d..1e9572e 100755
--- a/build.bash
+++ b/build.bash
@@ -14,9 +14,24 @@ function runInLocal() {
14} 14}
15 15
16function buildTDLIB() { 16function buildTDLIB() {
17 17 # TODO: Test to see if this works and if I want the install location to be where it is
18 18
19 return 0 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 $?
20} 35}
21 36
22function buildJar() { 37function buildJar() {