You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
691 B

  1. Description: set a static version string rather than discern it from git
  2. --- a/meson.build
  3. +++ b/meson.build
  4. @@ -17,6 +17,7 @@ add_project_arguments(
  5. conf = configuration_data()
  6. conf.set_quoted('PACKAGE_NAME', meson.project_name())
  7. +conf.set('VCS_TAG', meson.project_version())
  8. conf.set('_GNU_SOURCE', 1, description : 'Enable GNU extensions on systems that have them.')
  9. build_arping = get_option('BUILD_ARPING')
  10. @@ -207,10 +208,10 @@ foreach h : [
  11. endif
  12. endforeach
  13. -git_version_h = vcs_tag(
  14. +git_version_h = configure_file(
  15. input : 'git-version.h.meson',
  16. output : 'git-version.h',
  17. - fallback : meson.project_version()
  18. + configuration: conf
  19. )
  20. config_h = configure_file(