From 4d359b475dd70dae73a452bf514564b17d3ab8fb Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Sun, 5 Oct 2025 18:08:19 -0500 Subject: Update build.bash --- build.bash | 21 ++++++++++++++++++--- 1 file 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() { } function buildTDLIB() { - - - return 0 + # TODO: Test to see if this works and if I want the install location to be where it is + + cd td && \ + rm -rf build && \ + mkdir build && \ + cd build && \ + 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 .. && \ + cmake --build . --target install && \ + cd ../../tdjni && \ + rm -rf build && \ + mkdir build && \ + cd build && \ + 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 && \ + cmake --build . --target install && \ + cd .. && \ + ls -l tdlib + + return $? } function buildJar() { -- cgit v1.2.3