aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
blob: 9c0e16d42b80756bc0e2263294ea68b8a18a4f87 (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
project('librin', 'c',
	license : 'LGPL2.1',
	default_options : 'c_std=gnu11')

inc = include_directories('include')

if get_option('gpio')
	thread_dep = dependency('threads')
else
	thread_dep = []
endif

deps = thread_dep

subdir('include')
subdir('src')

if ((not get_option('static')) and (not get_option('shared')))
	library('rin', sources, version : '0.0.0', include_directories : inc, install : true, dependencies : deps)
endif

if get_option('static')
	static_library('rin', sources, version : '0.0.0', include_directories : inc, install : true, dependencies : deps)
endif

if get_option('shared')
	shared_library('rin', sources, version : '0.0.0', include_directories : inc, install : true, dependencies : deps)
endif


if get_option('tests')
	subdir('test')
endif