-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
51 lines (43 loc) · 1017 Bytes
/
meson.build
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
46
47
48
49
50
51
project('libatombios', 'cpp',
default_options: [
'cpp_std=c++23'
]
)
libatombios_sources = [
'src/atom.cpp',
'src/bytecode.cpp',
'src/command.cpp',
'src/dumpToConsoles.cpp',
'src/iio.cpp',
'src/mem.cpp'
]
atombios_sources = [
'src-test/main.cpp'
]
inc = include_directories('inc')
build_atombios_tool = get_option('build_tools')
# Dependencies
frigg = dependency('frigg',
default_options : [ 'frigg_no_install=true' ],
fallback: ['frigg', 'frigg_dep'],
)
cli11 = dependency('CLI11')
libatombios = static_library('atombios',
libatombios_sources,
include_directories : inc,
install : true,
pic : get_option('pic'),
dependencies : [ frigg ],
cpp_args : ['-ffreestanding'],
)
libatombios_dep = declare_dependency(
include_directories : inc,
link_with : libatombios
)
if build_atombios_tool
executable('atombios',
atombios_sources,
dependencies : [ libatombios_dep, cli11 ],
install : true
)
endif