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)
- Isn't there an instant way to change the hint password? HOT 3
- How to buy/subscribe to Telegram Business/Premium on Test DC? HOT 2
- Problem with secret messaging in Telegram X HOT 3
- Exclude x86 libs from android build? HOT 1
- When send voicenote with own client official desktop telegram shows it strange HOT 8
- [static const] please write code that complies with the C++ standard HOT 5
- How often does TDLib phone back to server to decide on the connection state? HOT 2
- Delays in getting message updates from some specific channels HOT 5
- step stuck:Please enter phone number HOT 1
- Someone please help me HOT 3
- [ASK] getChat delayed HOT 5
- Chat not found 400 HOT 10
- Question: Can this lib work with microcontrollers? HOT 2
- How many uploadFiles do we receive for already uploaded files? HOT 9
- Unsupported proxy link in tgx HOT 6
- An error occurred while building OpenSSL for Android HOT 5
- Why is 'upload_max_fileparts_premium' not being used? HOT 14
- Please guide me to read tdlib telegram's sqlite file, and convert it into telethon for use. Please ? HOT 3
- Trailing files cause pthreads unhandled exceptions to be triggered HOT 4
- Clear uploading files/unsent/pending messages queue on crash HOT 29
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.