aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
blob: 681b010bdb924ceebf7d65041ed3dc7948f3ce15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
project('librin', 'c',
	license : 'LGPL2.1',
	version : '0.0.5',
	default_options : ['c_std=c11', 'buildtype=release'])

inc = include_directories('include')

pkg = import('pkgconfig')

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

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

librin = library('rin', sources, version : meson.project_version(), include_directories : inc, pic : get_option('enable-pic'), install : true)

pkg.generate(librin)

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