From 0c5d2a595db449253bbbf056e6b113e256e50847 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 20 Jun 2024 13:29:13 +0000 Subject: [PATCH] Update content of files --- data/web/core.telegram.org/tdlib/docs.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/web/core.telegram.org/tdlib/docs.html b/data/web/core.telegram.org/tdlib/docs.html index 745a215296..2818af3ff4 100644 --- a/data/web/core.telegram.org/tdlib/docs.html +++ b/data/web/core.telegram.org/tdlib/docs.html @@ -129,7 +129,7 @@ $(function() {
  • Td::TdJson, Td::TdJsonStatic — dynamic and static version of a JSON interface. This has a simple C interface, so it can be easily used with any programming language that is able to execute C functions. See td_json_client documentation for more information.
  • Td::TdStatic — static library with C++ interface for general usage. See ClientManager and Client documentation for more information.
  • -

    For example, part of your CMakeLists.txt may look like this:

    add_subdirectory(td)
    target_link_libraries(YourTarget PRIVATE Td::TdStatic)

    Or you could install TDLib and then reference it in your CMakeLists.txt like this:

    find_package(Td 1.8.30 REQUIRED)
    target_link_libraries(YourTarget PRIVATE Td::TdStatic)

    See example/cpp/CMakeLists.txt.

    +

    For example, part of your CMakeLists.txt may look like this:

    add_subdirectory(td)
    target_link_libraries(YourTarget PRIVATE Td::TdStatic)

    Or you could install TDLib and then reference it in your CMakeLists.txt like this:

    find_package(Td 1.8.31 REQUIRED)
    target_link_libraries(YourTarget PRIVATE Td::TdStatic)

    See example/cpp/CMakeLists.txt.

    Using in Java projects

    TDLib provides native Java interface through JNI. To enable it, specify option -DTD_ENABLE_JNI=ON to CMake.

    See example/java for example of using TDLib from Java and detailed build and usage instructions.