-
Notifications
You must be signed in to change notification settings - Fork 42
/
meson.build
41 lines (34 loc) · 893 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
34
35
36
37
38
39
40
41
project(
'libresample',
'c',
meson_version : '>=1.3',
default_options : 'default_library=both',
version : '0.1.5',
license : 'BSD-3-Clause OR LGPL-2.1-or-later',
license_files : ['LICENSE-BSD.txt', 'LICENSE-LGPL.txt'],
)
cc = meson.get_compiler('c')
configure_file(
output : 'config.h',
configuration : {
'HAVE_INTTYPES_H': cc.has_header('inttypes.h').to_int(),
},
)
config_inc = include_directories('.')
libm_dep = cc.find_library('m', required : false)
resample = library(
'resample',
'src/filterkit.c',
'src/resample.c',
'src/resamplesubs.c',
dependencies : [libm_dep],
include_directories : [config_inc],
vs_module_defs : 'src/resample.def',
version : meson.project_version(),
soversion : 1,
install : true,
)
install_headers('include/libresample.h')
pkg = import('pkgconfig')
pkg.generate(resample, name : 'libresample')
subdir('tests')