summaryrefslogtreecommitdiffstats
path: root/common/meson.build
blob: 202880f3651f8b7c9c94b8a6cbd73fb630bbd4be (plain)
1
2
3
4
5
6
7
8
9
10
11
version_h = vcs_tag(
    command: ['git',
        '--git-dir=' + join_paths(source_root, '.git'),
        '--work-tree=' + source_root,
        'describe', '--always', '--tags', '--dirty'],
    input: 'version.h.in',
    output: 'version.h',
    replace_string: '@VERSION@',
)

sources += version_h