aboutsummaryrefslogtreecommitdiff
path: root/meson.build
blob: 9a0931579f62ade1379411a852ebf1961e738361 (plain)
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
project('netatom.lv2', 'c', default_options : [
	'buildtype=release',
	'warning_level=3',
	'werror=true',
	'b_lto=false',
	'c_std=c11'])

version = run_command('cat', 'VERSION').stdout().strip()

add_project_arguments('-D_GNU_SOURCE', language : 'c')

conf_data = configuration_data()
cc = meson.get_compiler('c')

lv2_dep = dependency('lv2')
sratom_dep = dependency('sratom-0',
	static : meson.is_cross_build() and false) #FIXME
deps = [lv2_dep, sratom_dep]

if host_machine.system() == 'windows'
	deps += cc.find_library('ws2_32')
endif

c_args = []

if cc.has_argument('-Wno-error=format=')
	c_args += '-Wno-error=format='
endif

netatom_test = executable('netatom_test',
	join_paths('test', 'netatom_test.c'),
	c_args : c_args,
	dependencies : deps,
	install : false)

test('Test', netatom_test,
	args : ['1000'],
	timeout : 240)