44 lines
1.1 KiB
Meson
44 lines
1.1 KiB
Meson
project('zarn',
|
|
'cpp',
|
|
version: '0.0.0',
|
|
default_options: [
|
|
'prefix=/usr',
|
|
'warning_level=3',
|
|
'cpp_std=c++17'
|
|
])
|
|
|
|
extra_libdir = get_option('prefix') / get_option('libdir') / 'zarn'
|
|
|
|
zarn_lib = shared_library('zarn',
|
|
sources: [
|
|
'src/Module.cpp',
|
|
'src/Loc.cpp',
|
|
'src/Node.cpp',
|
|
'src/Logger.cpp',
|
|
'src/Lexer.cpp',
|
|
'src/Parser.cpp'
|
|
],
|
|
install: true)
|
|
|
|
zarn_dep = declare_dependency(link_with: zarn_lib)
|
|
|
|
executable('zarn',
|
|
sources: [
|
|
'src/main.cpp'
|
|
],
|
|
dependencies: [
|
|
zarn_dep
|
|
],
|
|
install: true)
|
|
|
|
executable('zarn-tests',
|
|
sources: [
|
|
'tests/main.cpp',
|
|
'tests/Lexer.cpp',
|
|
'tests/Parser.cpp',
|
|
],
|
|
dependencies: [
|
|
zarn_dep,
|
|
dependency('catch2')
|
|
])
|