tdlight/example/web
Andrea Cavalli b6c5bd07bb Apply tdlight patch
- Memory manager
- TD_SKIP_TEST/TD_SKIP_BENCHMARK/TD_SKIP_TG_CLI
- Rebranding
- github workflow
- .gitignore
- Add crypt32 to windows
- Fatal crash log handler
- optionally unencrypted database
- malloc_trim support
- getMemoryStatistics

Options:
- disable_document_filenames
- disable_minithumbnails
- disable_notifications
- disable_group_calls
- disable_auto_download
- ignore_server_deletes_and_reads
- ignore_update_chat_last_message
- ignore_update_chat_read_inbox
- ignore_update_user_chat_action
- receive_access_hashes
- message_unload_delay modification
2024-08-27 15:24:01 +02:00
..
tdweb Apply tdlight patch 2024-08-27 15:24:01 +02:00
.gitignore Improve relative paths in .gitignore. 2024-05-31 01:17:34 +03:00
build-openssl.sh Close databases and binlog on another thread. 2023-10-05 21:50:53 +03:00
build-tdlib.sh Update default OpenSSL versions in examples. 2023-03-26 22:36:09 +03:00
build-tdweb.sh Begin all Bash scripts with "cd $(dirname $0)". 2021-12-08 19:43:21 +03:00
copy-tdlib.sh Begin all Bash scripts with "cd $(dirname $0)". 2021-12-08 19:43:21 +03:00
README.md Apply tdlight patch 2024-08-27 15:24:01 +02:00

TDLib Web example

This is an example of building TDLib for browsers using Emscripten. These scripts build TDLib and create an NPM package tdweb. You need a Unix shell with sed, tar and wget utilities to run the provided scripts.

Building tdweb NPM package

  • Install the 3.1.1 emsdk, which is known to work. Do not use the system-provided emscripten package, because it contains a too old emsdk version.
  • Install all TDLib build dependencies described in Building and sed, tar and wget utilities.
  • Run source ./emsdk_env.sh from emsdk directory to set up the correct build environment.
  • On macOS, install the coreutils Homebrew package and replace realpath in scripts with grealpath:
brew install coreutils
sed -i.bak 's/[(]realpath/(grealpath/g' build-tdlib.sh
  • Run build scripts in the following order:
cd <path to TDLib sources>/example/web
./build-openssl.sh
./build-tdlib.sh
./copy-tdlib.sh
./build-tdweb.sh
  • The built package is now located in the tdweb directory.

Using tdweb NPM package

See tdweb or README.md for package documentation.