feat: initialize Nocal terminal calendar
This commit is contained in:
53
meson.build
Normal file
53
meson.build
Normal file
@@ -0,0 +1,53 @@
|
||||
project(
|
||||
'nocal',
|
||||
'cpp',
|
||||
version: '0.1.0',
|
||||
meson_version: '>=1.1.0',
|
||||
default_options: [
|
||||
'cpp_std=c++20',
|
||||
'warning_level=3',
|
||||
'werror=false',
|
||||
'buildtype=debugoptimized',
|
||||
],
|
||||
)
|
||||
|
||||
inc = include_directories('include')
|
||||
nocal_sources = files(
|
||||
'src/domain/date.cpp',
|
||||
'src/domain/event_query.cpp',
|
||||
'src/domain/month_layout.cpp',
|
||||
'src/storage/ics_store.cpp',
|
||||
'src/tui/Screen.cpp',
|
||||
'src/tui/EventEditor.cpp',
|
||||
'src/tui/Terminal.cpp',
|
||||
'src/tui/TuiApp.cpp',
|
||||
)
|
||||
nocal_lib = static_library('nocal-core', nocal_sources, include_directories: inc)
|
||||
|
||||
nocal_executable = executable('nocal', 'src/main.cpp', include_directories: inc,
|
||||
link_with: nocal_lib, install: true)
|
||||
|
||||
domain_tests = executable('domain-tests', 'tests/domain_tests.cpp',
|
||||
include_directories: inc, link_with: nocal_lib)
|
||||
test('domain', domain_tests)
|
||||
ics_tests = executable('ics-tests', 'tests/ics_tests.cpp',
|
||||
include_directories: inc, link_with: nocal_lib)
|
||||
test('ics-storage', ics_tests)
|
||||
tui_tests = executable('tui-tests', 'tests/tui_tests.cpp',
|
||||
include_directories: inc, link_with: nocal_lib)
|
||||
test('tui', tui_tests)
|
||||
tui_focus_tests = executable('tui-focus-tests', 'tests/tui_focus_tests.cpp',
|
||||
include_directories: inc, link_with: nocal_lib)
|
||||
test('tui-focus', tui_focus_tests)
|
||||
editor_tests = executable('editor-tests', 'tests/editor_tests.cpp',
|
||||
include_directories: inc, link_with: nocal_lib)
|
||||
test('editor', editor_tests)
|
||||
|
||||
shell = find_program('sh')
|
||||
test('cli-recovery', shell,
|
||||
args: [files('tests/cli_recovery_test.sh'), nocal_executable])
|
||||
|
||||
install_data('scripts/nocal-hyprland', install_dir: get_option('bindir'),
|
||||
install_mode: 'rwxr-xr-x')
|
||||
install_data('share/applications/dev.nomarchy.nocal.desktop',
|
||||
install_dir: get_option('datadir') / 'applications')
|
||||
Reference in New Issue
Block a user