This repository has been archived on 2024-03-07. You can view files and clone it, but cannot push or open issues/pull-requests.
2023-09-27 18:18:05 +00:00
|
|
|
project('wongola',
|
|
|
|
'cpp',
|
|
|
|
version: '0.0.0',
|
|
|
|
default_options: [
|
|
|
|
'prefix=/usr',
|
|
|
|
'warning_level=3',
|
|
|
|
'cpp_std=c++17'
|
|
|
|
])
|
|
|
|
|
2023-09-29 09:01:46 +00:00
|
|
|
shared_library(
|
|
|
|
'wongola-std',
|
|
|
|
sources: [
|
|
|
|
'std/io.cpp'
|
|
|
|
],
|
|
|
|
install: true
|
|
|
|
)
|
|
|
|
|
2023-09-27 18:18:05 +00:00
|
|
|
wongola_lib = static_library(
|
|
|
|
'wongola',
|
|
|
|
sources: [
|
|
|
|
'lib/Node.cpp',
|
|
|
|
'lib/Lexer.cpp',
|
|
|
|
'lib/Parser.cpp',
|
|
|
|
'lib/Compiler.cpp',
|
|
|
|
'lib/Loc.cpp',
|
2023-09-28 19:37:10 +00:00
|
|
|
'lib/SymTable.cpp',
|
2023-09-29 09:01:46 +00:00
|
|
|
'lib/Package.cpp',
|
2023-09-27 18:18:05 +00:00
|
|
|
],
|
|
|
|
dependencies: [
|
|
|
|
dependency('LLVM')
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
wongola_dep = declare_dependency(
|
|
|
|
link_with: [wongola_lib],
|
|
|
|
include_directories: ['lib']
|
|
|
|
)
|
|
|
|
|
|
|
|
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')
|
|
|
|
])
|