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>
This commit is contained in:
Rongsong Shen 2026-08-21 03:54:37 +00:00
parent d3c583b339
commit a860141bb9
No known key found for this signature in database
GPG key ID: 5BCDAAE0123E9FE2
3 changed files with 6 additions and 5 deletions

View file

@ -1,6 +1,7 @@
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',