diff options
Diffstat (limited to 'doc/HOWTO.md')
| -rw-r--r-- | doc/HOWTO.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/HOWTO.md b/doc/HOWTO.md index c6e4e79..fa3395a 100644 --- a/doc/HOWTO.md +++ b/doc/HOWTO.md @@ -58,6 +58,24 @@ cmake --build build -j4 **Note:** `DEMO_ALL_OPTIONS=ON` enables tests, tools, AND `STRIP_ALL`, which removes debug-only code. Use selective flags for debugging. +### Size Measurement Build +```bash +./scripts/measure_size.sh +``` +Measures demo code size by stubbing external libraries (wgpu/GLFW/miniaudio). Binary compiles but **does NOT run**. + +**Manual:** +```bash +cmake -S . -B build_size -DDEMO_STRIP_EXTERNAL_LIBS=ON +cmake --build build_size -j4 +strip build_size/demo64k +ls -lh build_size/demo64k +``` + +**Typical results:** Demo=4.4MB (69%), External=2.0MB (31%) + +See `doc/SIZE_MEASUREMENT.md` for details. + --- ## Build System |
