myxce/src/meson.options
Rongsong Shen a860141bb9
feat(dirty-content-fingerprint): add dirty_fingerprint meson option and C define
Adds a dirty_fingerprint string meson option (default '') alongside the
already-shipped build-time-versioning feature's commit_id/build_time
options, and threads it through add_project_arguments() as
VERSION_DIRTY_FINGERPRINT for every C component. Purely additive,
non-behavioral plumbing -- nothing consumes the new define yet.

Verified independently by review: a bare meson setup with zero -D
options configures cleanly, and all 542 C compile commands carry the new
(empty) define, matching the existing commit_id/build_time defines'
counts exactly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-21 03:54:37 +00:00

8 lines
463 B
Text

option('with_debug', type: 'boolean', value: false, yield: true)
option('commit_id', type: 'string', value:'', yield: true)
option('build_time', type: 'string', value:'', yield: true)
option('dirty_fingerprint', type: 'string', value:'', yield: true)
option('component', type: 'combo',
choices: ['all', 'xcecore', 'xcecli'],
value: 'all',
description: 'Which component(s) to build: all (default, for dev), xcecore (C stack + apiserver), xcecli (CLI only)')