summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BUILDING.md5
-rwxr-xr-xbuild.bash46
m---------td0
3 files changed, 5 insertions, 46 deletions
diff --git a/BUILDING.md b/BUILDING.md
new file mode 100644
index 0000000..b95127d
--- /dev/null
+++ b/BUILDING.md
@@ -0,0 +1,5 @@
1# BUILDING
2
3To build tgmapper, you first need to build the telegram client. This is in the `td` folder, and specific instructions can be found at `td/index.html`
4
5Then, you need to do xyz
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 "$?"
diff --git a/td b/td
Subproject 369ee922b45bfa7e8da357e4d62e93925862d86 Subproject a9a8353d4d879242001aeef55605ce4cd930513