meson.build
113 lines
| 4.0 KiB
| text/plain
|
TextLexer
r0 | ||||
r58 | catalogicpp_dep = dependency('catalogicpp', required : true, fallback:['catalogicpp','catalogicpp_dep']) | |||
r35 | pybind11_dep = dependency('pybind11', required : true, fallback:['pybind11','pybind11_dep']) | |||
r72 | timeseries_dep = dependency('TimeSeries', required : true, fallback:['TimeSeries','time_series_dep']) | |||
r0 | ||||
core_moc_headers = [ | ||||
r58 | './include/Common/containers.h', | |||
'./include/Common/StringUtils.h', | ||||
'./include/Common/Numeric.h', | ||||
'./include/Common/spimpl.h', | ||||
'./include/Common/DateUtils.h', | ||||
'./include/Common/MimeTypesDef.h', | ||||
'./include/Common/SignalWaiter.h', | ||||
'./include/Common/deprecate.h', | ||||
'./include/Common/debug.h', | ||||
'./include/Common/MetaTypes.h', | ||||
'./include/Common/cpp_utils.h', | ||||
'./include/Common/SortUtils.h', | ||||
'./include/Data/DateTimeRangeHelper.h', | ||||
r72 | './include/Data/ScalarTimeSerie.h', | |||
r58 | './include/Data/DateTimeRange.h', | |||
'./include/Data/DataProviderParameters.h', | ||||
r79 | './include/Data/TimeSeriesUtils.h', | |||
r72 | './include/Data/VectorTimeSerie.h', | |||
r58 | './include/Data/SqpIterator.h', | |||
'./include/Data/IDataProvider.h', | ||||
r72 | './include/Data/SpectrogramTimeSerie.h', | |||
r79 | './include/Data/MultiComponentTimeSerie.h', | |||
r58 | './include/Data/DataSeriesType.h', | |||
'./include/CoreGlobal.h', | ||||
'./include/Network/NetworkController.h', | ||||
'./include/Network/Response.h', | ||||
'./include/Network/Downloader.h', | ||||
'./include/Settings/SqpSettingsDefs.h', | ||||
'./include/Settings/ISqpSettingsBindable.h', | ||||
'./include/DataSource/DataSourceController.h', | ||||
'./include/DataSource/DataSourceItem.h', | ||||
'./include/DataSource/DataSourceItemAction.h', | ||||
'./include/DataSource/DataSourceItemMergeHelper.h', | ||||
'./include/Time/TimeController.h', | ||||
'./include/PluginManager/PluginManager.h', | ||||
'./include/Version.h', | ||||
'./include/Catalogue/CatalogueController.h', | ||||
'./include/Plugin/IPlugin.h', | ||||
'./include/Variable/VariableModel2.h', | ||||
'./include/Variable/VariableController2.h', | ||||
r72 | './include/Variable/Variable2.h', | |||
r58 | './include/Variable/VariableSynchronizationGroup2.h', | |||
'./include/Variable/private/VCTransaction.h', | ||||
r72 | './include/Visualization/VisualizationController.h'] | |||
r35 | ||||
r79 | ||||
r35 | core_moc_sources = ['src/Network/Downloader.cpp'] | |||
core_moc_files = qt5.preprocess(moc_headers : core_moc_headers, moc_sources: core_moc_sources) | ||||
r0 | ||||
r79 | core_sources = ['./src/Common/MimeTypesDef.cpp', | |||
r58 | './src/Common/SignalWaiter.cpp', | |||
'./src/Common/DateUtils.cpp', | ||||
'./src/Common/StringUtils.cpp', | ||||
'./src/Network/Downloader.cpp', | ||||
'./src/Network/NetworkController.cpp', | ||||
'./src/Settings/SqpSettingsDefs.cpp', | ||||
'./src/DataSource/DataSourceItemAction.cpp', | ||||
'./src/DataSource/DataSourceItemMergeHelper.cpp', | ||||
'./src/DataSource/DataSourceItem.cpp', | ||||
'./src/DataSource/DataSourceController.cpp', | ||||
'./src/Time/TimeController.cpp', | ||||
'./src/PluginManager/PluginManager.cpp', | ||||
'./src/Version.cpp', | ||||
'./src/Catalogue/CatalogueController.cpp', | ||||
'./src/Variable/VariableSynchronizationGroup2.cpp', | ||||
r72 | './src/Variable/Variable2.cpp', | |||
r58 | './src/Variable/VariableController2.cpp', | |||
'./src/Variable/VariableModel2.cpp', | ||||
'./src/Visualization/VisualizationController.cpp'] | ||||
r35 | ||||
r0 | ||||
core_inc = include_directories(['include', 'include/Plugin']) | ||||
sciqlop_core_lib = library('sciqlopcore', | ||||
core_sources, | ||||
core_moc_files, | ||||
cpp_args : '-DCORE_LIB', | ||||
include_directories : core_inc, | ||||
r72 | dependencies : [qt5core, qt5network, catalogicpp_dep, pybind11_dep, timeseries_dep], | |||
r0 | install : true | |||
) | ||||
sciqlop_core = declare_dependency(link_with : sciqlop_core_lib, | ||||
include_directories : core_inc, | ||||
r72 | dependencies : [qt5core, qt5network, catalogicpp_dep, pybind11_dep, timeseries_dep]) | |||
r0 | ||||
r80 | pymod = import('python') | |||
python3 = pymod.find_installation('python3') | ||||
r0 | ||||
r80 | pysciqlopcore_srcs = [ | |||
r72 | './src/pybind11_wrappers/CatalogWrappers.cpp', | |||
'./src/pybind11_wrappers/QtWrappers.cpp', | ||||
'./src/pybind11_wrappers/CoreWrappers.cpp' | ||||
] | ||||
r80 | python3.extension_module('pysciqlopcore', './src/pybind11_wrappers/CoreWrappers.cpp', | |||
r81 | dependencies: [sciqlop_core], | |||
r80 | install: true | |||
) | ||||
r0 | ||||
subdir('tests') | ||||