meson.build
66 lines
| 1.8 KiB
| text/plain
|
TextLexer
/ app / meson.build
r620 | ||||
app_moc_headers = [ | ||||
r1463 | 'include/MainWindow.h', | |||
r1462 | 'include/toolbar.h' | |||
r620 | ] | |||
app_ui_files = [ | ||||
'ui/MainWindow.ui' | ||||
] | ||||
app_qresources = ['resources/qlopapp.qrc'] | ||||
app_moc_files = qt5.preprocess(moc_headers : app_moc_headers, | ||||
ui_files : app_ui_files, | ||||
qresources : app_qresources) | ||||
app_sources = [ | ||||
'src/Main.cpp', | ||||
r1463 | 'src/MainWindow.cpp', | |||
r1462 | 'src/toolbar.cpp' | |||
r620 | ] | |||
app_inc = include_directories(['include']) | ||||
if host_machine.system()=='windows' or build_machine.system()=='windows' | ||||
winmod = import('windows') | ||||
rc = winmod.compile_resources('resources/qlopapp.rc') | ||||
else | ||||
rc = [] | ||||
endif | ||||
r1395 | app_libs = [] | |||
r1397 | cpp_args = [] | |||
r1395 | if 'static' == get_option('default_library') | |||
r1443 | app_libs = [sciqlop_python_providers] | |||
r1397 | cpp_args += ['-DQT_STATICPLUGIN'] | |||
r1395 | endif | |||
r620 | sciqlop_app = executable('sciqlop', | |||
app_sources, | ||||
app_moc_files, | ||||
rc, | ||||
r662 | include_directories : [ app_inc], | |||
r1395 | link_with: app_libs, | |||
r1397 | cpp_args: cpp_args, | |||
r662 | dependencies : [sciqlop_gui, sciqlop_core], | |||
r620 | install : true | |||
) | ||||
r1480 | ||||
sciqlop_app_lib = library('sciqlop', | ||||
app_sources, | ||||
app_moc_files, | ||||
rc, | ||||
include_directories : [ app_inc], | ||||
link_with: app_libs, | ||||
cpp_args: cpp_args, | ||||
dependencies : [sciqlop_gui, sciqlop_core], | ||||
install : true | ||||
) | ||||
sciqlop_app_dep = declare_dependency(link_with : sciqlop_app_lib, | ||||
include_directories : app_inc, | ||||
dependencies : [sciqlop_gui, sciqlop_core]) | ||||
subdir('PySide2-bindings') | ||||