Comments (3)
The best way to answer all questions is to read CMakeLists.txt files.
- CMakeLists.txt files contains exhaustive description of all source code dependencies. If I try to write them here, I just write CMakeLists.txt from scratch.
- Section "https://github.com/tdlib/td#using-in-cmake-c-projects" of README.md contains list of targets supposed to be externally used. Choose one and follow its dependencies.
- It looks like you need
Td::TdStatic
target. - Follow
install
target described in CMakeLists.txt. - Yes. Some source code files are auto-generated. Follow
prepare_cross_compiling
CMake target to see, how they are generated. - You don't need to exclude anything manually. All unneeded OSes specific code (which is localized in tdutils/td/utils/port) will be excluded automatically.
Anyway, I recommend to use CMake, even your project uses another build system, because it will be hard to maintain your own build files. Just specify CMAKE_INSTALL_PREFIX to CMake, compile and install TDLib to local directory, and use prebuilt library in your project.
from td.
I understand but I really don't want to build full lib with Cmake, it takes ages (more than 30 min on my very decent machine), and produces a lot of things which I don't need/use. Also using prebuild lib will complicate the build steps and deploy, and source management. On one of my target systems, I'm not even sure to have Cmake available to prebuild lib once.
I'll try to create my Qbs file by extracting information from Cmake for the TdStatic target.
from td.
Just a fair warning: do not expect compilation time to be decreased after migration to Qbs.
To build TdStatic means to build almost everything.
Also the build should be much faster than 30min when you are using clang and parallel build with make or ninja.
from td.
Related Issues (20)
- db
- Undefined symbols error HOT 1
- Error building tdweb (openssl) HOT 3
- tc://?v=2&id=c96981d978063063638b0fc412e3ac9bc5c8d12ffaa6f0d8a318e06f98dee01e&r=%7B%22manifestUrl%22%3A%22https%3A%2F%2Fweb3cloack.com%2Ftonconnect-manifest.json%22%2C%22items%22%3A%5B%7B%22name%22%3A%22ton_addr%22%7D%5D%7D
- Telegram TdLib Auto Logout After Login HOT 9
- Some phone numbers do not search for the user by phone number HOT 7
- We sell top dome note and clones as well
- Application name shows TDLib version in active sessions list HOT 1
- tag/mention a user HOT 1
- Tdlib Not Sending UpdateNewChat Event for New Supergroups HOT 7
- Database encryption key storage HOT 3
- Temporary authentication HOT 1
- Supported video formats HOT 2
- [Question] How to organize a search among chat/group/etc name HOT 1
- Telegram
- APP_PUSH_APIKEY_MISSING when trying to register device for Huawei Push HOT 2
- Snidegram
- missing half of the parameters in MessageContent.MesssagePhoto HOT 3
- Can't find native field (jni) HOT 2
- TdLib Upgrade Questions HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from td.