diff options
| -rwxr-xr-x | build.bash | 21 |
1 files changed, 18 insertions, 3 deletions
| @@ -14,9 +14,24 @@ function runInLocal() { | |||
| 14 | } | 14 | } |
| 15 | 15 | ||
| 16 | function buildTDLIB() { | 16 | function 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 | ||
| 22 | function buildJar() { | 37 | function buildJar() { |
