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: [
|
2023-10-07 20:21:43 +00:00
|
|
|
# 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: [
|
2023-10-07 20:21:43 +00:00
|
|
|
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',
|
2023-10-07 20:21:43 +00:00
|
|
|
'tests/KeyMod.cpp',
|
|
|
|
'tests/Executor.cpp',
|
2023-10-07 12:11:43 +00:00
|
|
|
],
|
|
|
|
dependencies: [
|
|
|
|
pwq_dep,
|
|
|
|
dependency('catch2')
|
|
|
|
])
|