remarkable_tool/meson.build

47 lines
943 B
Meson

project('remarkable_tool', 'cpp',
version: '0.1.0',
meson_version: '>=0.56.0',
default_options: [
'buildtype=release',
'cpp_std=c++20',
'b_ndebug=if-release',
],
)
conf = configuration_data()
conf.set('APP_NAME', meson.project_name())
conf.set('DEF_DELE_PREFIX', '/home/root/.local/share/remarkable/xochitl/')
project_config_file = configure_file(
input: 'config.h.in',
output: 'config.h',
configuration: conf,
)
qt5 = import('qt5')
qt5_dep = dependency('qt5', modules: ['Core', 'Gui', 'Widgets'])
moc_files = qt5.preprocess(
moc_headers: [
'main_window.hpp',
'notebook_tree_model.hpp',
],
dependencies: qt5_dep
)
simdjson_dep = dependency('simdjson', version: '>=0.5.0',
fallback: ['simdjson', 'simdjson_dep'],
)
executable(meson.project_name(),
'main.cpp',
'main_window.cpp',
moc_files,
'notebook_tree.cpp',
'notebook_tree_model.cpp',
dependencies: [
simdjson_dep,
qt5_dep,
],
install: true,
)