1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
Description: Remove git access with meson during build
Author: Marc Leeman <marc.leeman@gmail.com>
Last-Update: 2025-05-16
Index: openvpn3-client/meson.build
===================================================================
--- openvpn3-client.orig/meson.build
+++ openvpn3-client/meson.build
@@ -159,30 +159,7 @@ if (dep_tinyxml2.version().version_compa
endif
endif
-# Prepare some version details - if on a git checkout
-# For tarball builds, the build-version.h should already pre-exist
-# in ./src
fs = import('fs')
-if fs.exists(meson.project_source_root() / '.git')
- openvpn3_core_ver = get_option('openvpn3_core_version')
- if openvpn3_core_ver == ''
- openvpn3_core_ver = run_command(['scripts/get-version','--core-version'], check: true).stdout().strip()
- endif
-
- version_header = configuration_data()
- version_header.set_quoted('OPENVPN_VERSION',
- openvpn3_core_ver,
- description: 'OpenVPN 3 Core Library version')
- version_header.set_quoted('PACKAGE_GUIVERSION',
- run_command(['scripts/get-version','--gui-version'], check: true).stdout().strip(),
- description: 'OpenVPN 3 Linux version identifier')
- version_header.set_quoted('PACKAGE_NAME', 'OpenVPN3/Linux',
- description: 'Name of this project')
- configure_file(
- configuration: version_header,
- output: 'build-version.h'
- )
-endif
meson.add_dist_script(find_program('scripts/prepare-build-version-h'))
cp_prog = find_program('cp', required: true)
|