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)
- Creating bots HOT 1
- Different thread call problem HOT 1
- Is GetChats an offline request? HOT 1
- any way join channel or group automatically? HOT 2
- how to set password? HOT 1
- removeMessageReaction method not working HOT 12
- Question HOT 1
- td_send or td_receive contains @type? HOT 2
- Quoting in telegram HOT 4
- Integration with Android application HOT 3
- API_ID_INVALID when trying to login with aiotdlib HOT 1
- Is TdApi.User id globally unique? HOT 2
- How to get "Posted Stories" for a user? HOT 2
- In which cases updatesTooLong sends HOT 2
- Healthcare smart contract HOT 1
- how to get entity for a markdown text HOT 4
- how to restart client ? HOT 2
- Telegram HOT 1
- how to update layer to 170? HOT 9
- Getting lots of error with: Error : 420 : FLOOD_WAIT_x HOT 3
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.