~bl4ckb0ne/boson

boson/meson.build -rw-r--r-- 714 bytes
9b178621Simon Zeni setup: print token with loc on BOSON_STAGE lex 9 months ago
                                                                                
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
39
40
41
42
43
44
45
project(
	'boson',
	'c',
	version: '0.0.1',
	license: 'GPL3',
	meson_version: '>=0.48.0',
	default_options: [
		'c_std=c11',
		'warning_level=3',
		'werror=true',
		'buildtype=debugoptimized',
	],
)

#-DVERSION='"$(VERSION)"'
add_project_arguments(
	'-DVERSION="@0@"'.format(meson.project_version()),
	'-Wno-unused-parameter',
	language: 'c',
)

src = files(
	'src/getopt_long.c',
	'src/hash_table.c',
	'src/util.c',
	'src/log.c',
	'src/ninja.c',
	'src/options.c',
	'src/object.c',
	'src/builtin.c',
	'src/interpreter.c',
	'src/ast.c',
	'src/lexer.c',
	'src/parser.c',
	'src/setup.c',
	'src/main.c',
)

include_dir = include_directories('include')

executable(
	'boson',
	src,
	include_directories: include_dir,
)