This repository has been archived on 2024-03-07. You can view files and clone it, but cannot push or open issues/pull-requests.
wongola/meson.build

62 lines
1.1 KiB
Meson

project('wongola',
'cpp',
version: '0.0.0',
default_options: [
'prefix=/usr',
'warning_level=3',
'cpp_std=c++17'
])
wongola_lib = static_library(
'wongola',
sources: [
'lib/Node.cpp',
'lib/Lexer.cpp',
'lib/Parser.cpp',
'lib/Compiler.cpp',
'lib/Loc.cpp',
'lib/SymTable.cpp',
'lib/Mod.cpp',
],
dependencies: [
dependency('LLVM')
]
)
wongola_dep = declare_dependency(
link_with: [wongola_lib],
include_directories: ['lib']
)
shared_library(
'wongola-std',
sources: [
'std/io.cpp'
],
dependencies: [
wongola_dep
],
install: true
)
executable('wongoc',
sources: [
'src/main.cpp',
],
dependencies: [
wongola_dep
],
install: true)
executable('wongotest',
sources: [
'tests/main.cpp',
'tests/Lexer.cpp',
'tests/Parser.cpp',
],
dependencies: [
wongola_dep,
dependency('catch2')
])