forked from io-sea/libiosea-hash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
33 lines (25 loc) · 969 Bytes
/
meson.build
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
project('libiosea-hash',
'c',
version: '1.3.0',
license: 'LGPL3.0-or-later',
default_options : ['default_library=shared',
'werror=true'])
cc = meson.get_compiler('c')
options = cc.get_supported_arguments([
'-Werror',
'-Wall'
])
add_project_arguments(options, language: 'c')
subdir('hash')
conf_data = configuration_data()
conf_data.set('LIBEXTSTORE_BASE_VERSION', meson.project_version())
conf_data.set('LIBEXTSTORE_EXTRA_VERSION', '')
distfile = meson.project_name() + '-' + meson.project_version()
conf_data.set('CPACK_SOURCE_PACKAGE_FILE_NAME', distfile)
# Build the spec file
configure_file(input : 'libiosea-hash.spec-in.meson',
output : 'libiosea-hash.spec',
configuration : conf_data)
filespec = meson.source_root() + '/libiosea-hash.spec'
distdir = meson.build_root() + '/meson-dist/' + meson.project_name() + '-' + meson.project_version()
meson.add_dist_script('/usr/bin/cp', filespec, distdir)