Building and Packaging Modern C++
summary
Shows concrete build recipes: use CMake + Ninja for fast incremental builds, set compiler launcher to plug in ccache (benchmarks claim up to ~150x for repeat compiles) and share its cache on network storage; run distributed compilation with icecream (Mozilla reports cutting build time by ~75%); manage reproducible toolchains with Nix, package binaries with Conan or CPack/AppImage and run linters/formatters in pre-commit hooks for gated checks.
AI-written summary · about
chapters (18)
- 0:00Start
- 0:54Building C Code
- 1:31How To Install Cmake
- 2:13Pip Install Cmake
- 6:46Build Using Ninja and Cmake
- 7:18Build Only What's Required
- 9:23Big C Cash
- 20:18Caveats
- 22:50Portable Build Environments
- 23:36Containers
- 24:52Nyx
- 26:20Multiple Versions of Packages
- 27:55Nyx Shell
- 29:11Compare to Other Package Managers
- 30:33Git Hooks
- 31:53Pre-Commit Hooks
- 33:15Packaging
- 40:24Cpuc
related talks
01h 00mHow to start a modern C++ project
01h 04mBetter CMake: A World Tour of Build Systems - Better C++ Builds
01h 01mGit, CMake, Conan - How to ship and reuse our C++ projects
54mCMake for the Impatient
37mCross-Building Strategies in the Age of C++ Package Managers
19mAutomatic Caching for C++ Builds: Merging Git and the Compiler
50mModern DevOps in C and C++
33mBehind the Scenes of a C++ Build System
