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.