pywiq/meson.build

68 lines
1.7 KiB
Meson
Raw Normal View History

2023-10-07 12:11:43 +00:00
project('pywiq',
'cpp',
version: '0.0.0',
default_options: [
'prefix=/usr',
'warning_level=3',
'cpp_std=c++17',
])
pwq_lib = static_library('pywiq',
sources: [
# Terminal
# --------
'src/Term.cpp',
# Control
# -------
'src/KeyMod.cpp',
'src/Mode.cpp',
'src/Action.cpp',
'src/Binding.cpp',
'src/Executor.cpp',
'src/Pywiq.cpp',
'src/Controller.cpp',
# View
# ----
# Command
# -------
# Scripting
# ---------
# Actions
# -------
'src/actions/Quit.cpp',
2023-10-07 12:11:43 +00:00
],
dependencies: [
dependency('ncursesw')
2023-10-07 12:11:43 +00:00
])
pwq_dep = declare_dependency(
link_with: pwq_lib,
include_directories: ['src']
)
executable('pwq',
sources: [
'src/main.cpp',
],
dependencies: [
pwq_dep
],
install: true)
executable('pwq-tests',
sources: [
'tests/main.cpp',
'tests/KeyMod.cpp',
'tests/Executor.cpp',
2023-10-07 12:11:43 +00:00
],
dependencies: [
pwq_dep,
dependency('catch2')
])