aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
blob: 86627824bcb3fe430ded0c11e5e551eb9f845185 (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
project('librin', 'c',
	license : 'LGPL2.1',
	version : '0.0.4',
	default_options : ['c_std=gnu89', 'buildtype=release'])

inc = include_directories('include')

pkg = import('pkgconfig')

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

if ((not get_option('static')) and (not get_option('shared')))
	librin = library('rin', sources, version : meson.project_version(), include_directories : inc, install : true)
endif

if get_option('static')
	librin = static_library('rin', sources, version : meson.project_version(), include_directories : inc, install : true)
endif

if get_option('shared')
	librin = shared_library('rin', sources, version : meson.project_version(), include_directories : inc, install : true)
endif

pkg.generate(librin)

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