2020-12-28 19:52:17 +01:00
|
|
|
#!/bin/bash -e
|
2020-12-29 19:33:21 +01:00
|
|
|
# This script compiles tdlight/tdlib api for your platform.
|
2020-12-28 21:47:50 +01:00
|
|
|
# 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>
|
2021-09-14 13:32:20 +02:00
|
|
|
# CPU_ARCHITECTURE_NAME = <amd64 | aarch64 | 386 | armhf | 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>
|
2022-02-18 19:28:35 +01:00
|
|
|
# OPTIONAL ENVIRONMENT VARIABLES:
|
|
|
|
# CROSS_BUILD_DEPS_DIR = <args>
|
2020-12-28 19:52:17 +01:00
|
|
|
|
|
|
|
cd ../core
|
|
|
|
|
2021-09-11 12:27:22 +02:00
|
|
|
source ./setup-variables.sh
|
|
|
|
./install-dependencies.sh
|
2021-12-08 00:00:21 +01:00
|
|
|
|
|
|
|
./generate_td_tools.sh
|
|
|
|
./configure_td.sh
|
2021-12-08 00:48:27 +01:00
|
|
|
|
|
|
|
API_TYPE=legacy ./generate_tdapi_maven_project.sh
|
2021-12-08 00:00:21 +01:00
|
|
|
API_TYPE=legacy ./generate_tdapi_java_file.sh
|
|
|
|
API_TYPE=legacy ./build_generated_tdapi_maven_project.sh
|
|
|
|
|
|
|
|
API_TYPE=sealed ./generate_tdapi_maven_project.sh
|
|
|
|
API_TYPE=sealed ./generate_tdapi_java_file.sh
|
|
|
|
API_TYPE=sealed ./build_generated_tdapi_maven_project.sh
|
2020-12-28 19:52:17 +01:00
|
|
|
|
|
|
|
echo "Done."
|
|
|
|
exit 0
|