| 1 | git clone https://github.com/tdlib/td |
| 2 | cd td/example/android |
| 3 | # copy build-tdlib.sh and CMakeLists.txt into this folder |
| 4 | ./fetch-sdk.sh |
| 5 | # copy boringssl from TMessagesProj/jni/boringssl into td/example/android/third-party/openssl with such structure: |
| 6 | # third-party/ |
| 7 | # openssl/ |
| 8 | # $ARCH/ |
| 9 | # include/ <- TMessagesProj/jni/boringssl/include |
| 10 | # lib/ <- TMessagesProj/jni/boringssl/lib/$ARCH |
| 11 | ./build-tdlib.sh |
| 12 | # gather libtde2e.a and libtdutils.a into TMessagesProj/jni/tde2e/$ARCH |