meson.build 381 B

123456789101112131415
  1. project('vcstag', 'c')
  2. version_src = vcs_tag(input : 'vcstag.c.in',
  3. output : 'vcstag.c',
  4. fallback : '1.0.0')
  5. version_src_custom = vcs_tag(input : 'vcstag.c.in',
  6. output : 'vcstag-custom.c',
  7. command : ['git', 'show-ref', '-s', 'refs/heads/master'],
  8. fallback : '1.0.0')
  9. executable('tagprog', 'tagprog.c', version_src)
  10. executable('tagprog-custom', 'tagprog.c', version_src_custom)