Skip to content

Commit 65f2fbf

Browse files
committed
meson: Add project URL
1 parent 2fa14ea commit 65f2fbf

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

meson.build

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,28 @@ project('network-config-manager', 'c',
22
version : '0.7.3',
33
license : 'Apache-2.0',
44
default_options: [
5-
'c_std=gnu99',
5+
'c_std=gnu11',
6+
'prefix=/usr',
7+
'sysconfdir=/etc',
68
'localstatedir=/var',
9+
'warning_level=2',
710
],
811
meson_version : '>= 0.40')
912

1013
so_version = '1'
1114

1215
conf = configuration_data()
16+
conf.set_quoted('PROJECT_URL', 'https://github.com/vmware/network-config-manager')
17+
conf.set('PROJECT_VERSION', meson.project_version().split('~')[0],
18+
description : 'Numerical project version (used where a simple number is expected)')
19+
conf.set_quoted('PROJECT_VERSION_FULL', meson.project_version(), description : 'Full project version')
20+
1321
conf.set_quoted('PACKAGE_VERSION', meson.project_version())
1422
conf.set_quoted('PACKAGE_STRING', meson.project_name() + ' ' + meson.project_version())
1523

1624
substs = configuration_data()
25+
1726
substs.set('PACKAGE_URL', 'https://github.com/vmware/network-config-manager')
18-
substs.set('PACKAGE_VERSION', meson.project_version())
1927
conf.set_quoted('PKGSYSCONFDIR', get_option('sysconfdir'))
2028

2129
#####################################################################

0 commit comments

Comments
 (0)