forked from analogdevicesinc/libad9361-iio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
70 lines (61 loc) · 1.47 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
project(
'ad9361',
'c',
version: '0.3',
default_options: [
'c_std=c99',
'warning_level=3',
],
)
add_project_arguments(
[
'-D_GNU_SOURCE=1',
'-D_POSIX_C_SOURCE=200809L',
'-DLIBAD9361_EXPORTS=1',
],
language: 'c',
)
cc = meson.get_compiler('c')
libiio_dep = dependency('libiio')
m_dep = cc.find_library('m', required: false)
inc = include_directories('.')
ad9361_lib = library(
'ad9361',
[
'ad9361.h',
'ad9361_multichip_sync.c',
'ad9361_baseband_auto_rate.c',
'ad9361_design_taps.c',
'ad9361_calculate_rf_clock_chain.c',
'ad9361_fmcomms5_phase_sync.c',
'filterdesigner/internal_design_filter_cg.c',
'filterdesigner/internal_design_filter_cg_emxutil.c',
'filterdesigner/rtGetInf.c',
'filterdesigner/rtGetNaN.c',
'filterdesigner/rt_nonfinite.c',
],
include_directories: inc,
dependencies: [libiio_dep, m_dep],
install: true,
)
doxygen = find_program('doxygen', required: false)
cdata = configuration_data()
cdata.set('CMAKE_SOURCE_DIR', meson.current_source_dir())
ver = meson.project_version().split('.')
cdata.set('LIBAD9361_VERSION_MAJOR', ver[0])
cdata.set('LIBAD9361_VERSION_MINOR', ver[1])
doxyfile = configure_file(
input: 'Doxyfile.in',
output: 'Doxyfile',
configuration: cdata,
install: false,
)
custom_target(
'libad9361-docs',
input: doxyfile,
output: 'html',
command: [doxygen, doxyfile],
install: true,
install_dir: get_option('datadir') / 'doc' / 'libad9361',
)
subdir('test')