aboutsummaryrefslogtreecommitdiff
path: root/meson.build
blob: 46c59d34ae3ad70d3a34ad3bb2b5de8f0655b1e1 (plain) (blame)
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
project(
        'evanix',
        'c',
        version : '0.1',
        license: 'GPL-3.0-only',
        default_options : [
                'c_std=c99',
                'warning_level=2',
        ]
)

add_project_arguments(
	[
                '-D_POSIX_C_SOURCE=200809L',
                '-D_GNU_SOURCE',
		'-Wvla',
	],
	language: 'c',
)

cjson_dep = dependency('libcjson')
highs_dep = dependency('highs')
sqlite_dep = dependency('sqlite3')
evanix_inc = include_directories('include')

if get_option('build-python')
        py = import('python').find_installation()
        py.extension_module(
                'evanix',
                'src/evanix-py.c',
                install: true,
        )
endif

subdir('src')
subdir('tests')