td icon indicating copy to clipboard operation
td copied to clipboard

tdjson static library

Open Linklsk opened this issue 9 months ago • 3 comments

Hello everyone! How i can build a static library tdjson?

Linklsk avatar Mar 24 '25 02:03 Linklsk

It is always built by default. You can find tdjson_static among the built libriraies.

levlam avatar Mar 24 '25 19:03 levlam

It is always built by default. You can find tdjson_static among the built libriraies.

I mean full static, with zlib, libssl etc, can I build such a library?

Linklsk avatar Apr 18 '25 04:04 Linklsk

Yes, you can link zlib and OpenSSL statically. Build dependencies configuration is done via CMake. It will choose the static libraries if dynamic libraries aren't present in the system, or static libraries manually specified during CMake configuration. You will also need to statically link C++ standard library and may want to statically link C standard library other than libc.

levlam avatar Apr 18 '25 06:04 levlam