diff options
| author | 2026-03-14 19:46:40 -0500 | |
|---|---|---|
| committer | 2026-03-15 12:53:21 -0500 | |
| commit | b46433ff940100ac1990798a14cd5b58bfb31062 (patch) | |
| tree | 4da604b7ee3778abbe5463d7a983b57a0b0cd5f9 /include | |
| parent | modules: drop unnecessary link flag (diff) | |
| download | solanum-dwfreed/meson-rebased.tar.gz solanum-dwfreed/meson-rebased.tar.bz2 solanum-dwfreed/meson-rebased.zip | |
build: add Meson buildsystem dwfreed/meson-rebased
Diffstat (limited to 'include')
| -rw-r--r-- | include/meson.build | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/meson.build b/include/meson.build new file mode 100644 index 00000000..bd841645 --- /dev/null +++ b/include/meson.build @@ -0,0 +1,26 @@ +setup_h = configure_file( + output: 'setup.h', + configuration: conf_data, + install: false +) + +serno_h = vcs_tag( + command: ['git', 'rev-list', '-1', '--no-commit-header', '--date=format:%Y%m%d', '--format=%cd-%h', 'HEAD'], + input: 'serno.h.in', + output: 'serno.h', + replace_string: '@SERNO@', + fallback: 'unknown', +) + +datecode_h = vcs_tag( + command: ['git', 'rev-list', '-1', '--no-commit-header', '--format=%ct', 'HEAD'], + input: 'datecode.h.in', + output: 'datecode.h', + replace_string: '@DATECODE@', + fallback: '0', +) + +global_include_dep = declare_dependency( + sources: [setup_h, serno_h, datecode_h], + include_directories: include_directories('.'), +) |
