2020-12-28 19:52:17 +01:00
|
|
|
#!/bin/bash -e
|
2020-12-28 21:47:50 +01:00
|
|
|
# This script compiles tdlight/tdlib jni binaries for your platform.
|
|
|
|
# Fill the variables with your system details.
|
|
|
|
#
|
2020-12-28 19:52:17 +01:00
|
|
|
# MAIN REQUIRED ENVIRONMENT VARIABLES:
|
|
|
|
# OPERATING_SYSTEM_NAME = <windows | linux | osx>
|
|
|
|
# CPU_ARCHITECTURE_NAME = <amd64 | aarch64 | 386 | armv6 | armv7 | ppc64le>
|
2021-01-03 14:44:17 +01:00
|
|
|
# OPERATING_SYSTEM_NAME_SHORT = <win | linux | osx>
|
2020-12-28 19:52:17 +01:00
|
|
|
# IMPLEMENTATION_NAME = <tdlib | tdlight>
|
|
|
|
# CPU_CORES = "-- -j<cores>" or "-m" on Windows
|
|
|
|
# CMAKE_EXTRA_ARGUMENTS = <args>
|
|
|
|
# REVISION = <revision>
|
|
|
|
|
|
|
|
cd ../core
|
|
|
|
|
|
|
|
./generate_maven_project.sh
|
|
|
|
./generate_td_tools.sh
|
2020-12-29 19:33:21 +01:00
|
|
|
./configure_td.sh
|
2020-12-28 19:52:17 +01:00
|
|
|
./compile_td.sh
|
|
|
|
./compile_tdjni.sh
|
|
|
|
./build_generated_maven_project.sh
|
|
|
|
|
|
|
|
echo "Done."
|
|
|
|
exit 0
|