2021-03-26 20:05:11 +00:00
|
|
|
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',
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2021-03-26 20:22:47 +00:00
|
|
|
conf = configuration_data()
|
|
|
|
conf.set('APP_NAME', meson.project_name())
|
|
|
|
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',
|
|
|
|
dependencies: qt5_dep
|
|
|
|
)
|
|
|
|
|
2021-03-26 20:05:11 +00:00
|
|
|
simdjson_dep = dependency('simdjson', version: '>=0.5.0',
|
|
|
|
fallback: ['simdjson', 'simdjson_dep'],
|
|
|
|
)
|
|
|
|
|
|
|
|
executable(meson.project_name(),
|
|
|
|
'main.cpp',
|
2021-03-26 20:22:47 +00:00
|
|
|
'main_window.cpp',
|
|
|
|
moc_files,
|
|
|
|
dependencies: [
|
|
|
|
simdjson_dep,
|
|
|
|
qt5_dep,
|
|
|
|
],
|
2021-03-26 20:05:11 +00:00
|
|
|
install: true,
|
|
|
|
)
|