~/talk

Integrating C++ Code Generation Into a Large CMake Build

Talkat ACCU 2024 · 2024-04-17..04-20· [c-and-cpp]
name:CB Bailey
links:none on file
slides:none on file

Bloomberg uses an XSD-driven generator to emit C++ stubs and libraries and the talk shows how that generator integrates with CMake to avoid forcing teams to hand-edit generated code. It compares configure-time generation (runs during CMake configure so generated headers exist for static analysis) versus build-time add_custom_command, then describes a practical implementation that writes a small top-level project, runs generators in parallel via a deferred CMake build, emits depfiles, generates into a temp dir and only copies changed files — resulting in fast, correct incremental builds and workable rollouts across a large codebase.

AI-written summary · about

  1. 0:00Introduction
  2. 10:11Code generation overview
  3. 25:25CMake build-time generation
  4. 39:57Configure-time generation
  5. 50:31Advanced CMake module
  6. 1:03:49Deferred generation demo
  7. 1:10:40Dependency files and future
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.