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:
parent
d3c583b339
commit
a860141bb9
3 changed files with 6 additions and 5 deletions
|
|
@ -28,7 +28,8 @@ if get_option('buildtype') == 'debug'
|
|||
endif
|
||||
|
||||
add_project_arguments(['-DVERSION_COMMIT_ID='+get_option('commit_id'),
|
||||
'-DVERSION_BUILD_TIME='+get_option('build_time')], language: 'c')
|
||||
'-DVERSION_BUILD_TIME='+get_option('build_time'),
|
||||
'-DVERSION_DIRTY_FINGERPRINT='+get_option('dirty_fingerprint')], language: 'c')
|
||||
|
||||
# Programs needed by all components
|
||||
go_compiler = find_program('go')
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue