@@ -1,39 +1,38 | |||||
1 |
|
1 | |||
2 | app_moc_headers = [ |
|
2 | app_moc_headers = [ | |
3 | 'include/MainWindow.h' |
|
3 | 'include/MainWindow.h' | |
4 | ] |
|
4 | ] | |
5 |
|
5 | |||
6 | app_ui_files = [ |
|
6 | app_ui_files = [ | |
7 | 'ui/MainWindow.ui' |
|
7 | 'ui/MainWindow.ui' | |
8 | ] |
|
8 | ] | |
9 |
|
9 | |||
10 | app_qresources = ['resources/qlopapp.qrc'] |
|
10 | app_qresources = ['resources/qlopapp.qrc'] | |
11 |
|
11 | |||
12 | app_moc_files = qt5.preprocess(moc_headers : app_moc_headers, |
|
12 | app_moc_files = qt5.preprocess(moc_headers : app_moc_headers, | |
13 | ui_files : app_ui_files, |
|
13 | ui_files : app_ui_files, | |
14 | qresources : app_qresources) |
|
14 | qresources : app_qresources) | |
15 |
|
15 | |||
16 | app_sources = [ |
|
16 | app_sources = [ | |
17 | 'src/Main.cpp', |
|
17 | 'src/Main.cpp', | |
18 | 'src/MainWindow.cpp' |
|
18 | 'src/MainWindow.cpp' | |
19 | ] |
|
19 | ] | |
20 |
|
20 | |||
21 | app_inc = include_directories(['include']) |
|
21 | app_inc = include_directories(['include']) | |
22 |
|
22 | |||
23 | if host_machine.system()=='windows' or build_machine.system()=='windows' |
|
23 | if host_machine.system()=='windows' or build_machine.system()=='windows' | |
24 | winmod = import('windows') |
|
24 | winmod = import('windows') | |
25 | rc = winmod.compile_resources('resources/qlopapp.rc') |
|
25 | rc = winmod.compile_resources('resources/qlopapp.rc') | |
26 | else |
|
26 | else | |
27 | rc = [] |
|
27 | rc = [] | |
28 | endif |
|
28 | endif | |
29 |
|
29 | |||
30 | sciqlop_app = executable('sciqlop', |
|
30 | sciqlop_app = executable('sciqlop', | |
31 | app_sources, |
|
31 | app_sources, | |
32 | app_moc_files, |
|
32 | app_moc_files, | |
33 | rc, |
|
33 | rc, | |
34 |
|
|
34 | include_directories : [ app_inc], | |
35 |
|
|
35 | dependencies : [sciqlop_gui, sciqlop_core], | |
36 | dependencies : [qt5core, qt5printsupport, qt5gui, qt5widgets, qt5network], |
|
|||
37 | install : true |
|
36 | install : true | |
38 | ) |
|
37 | ) | |
39 |
|
38 |
@@ -1,56 +1,62 | |||||
1 |
|
1 | |||
2 | core_moc_headers = [ |
|
2 | core_moc_headers = [ | |
3 | 'include/Data/IDataProvider.h', |
|
3 | 'include/Data/IDataProvider.h', | |
4 | 'include/DataSource/DataSourceController.h', |
|
4 | 'include/DataSource/DataSourceController.h', | |
5 | 'include/DataSource/DataSourceItemAction.h', |
|
5 | 'include/DataSource/DataSourceItemAction.h', | |
6 | 'include/Network/NetworkController.h', |
|
6 | 'include/Network/NetworkController.h', | |
7 | 'include/Time/TimeController.h', |
|
7 | 'include/Time/TimeController.h', | |
8 | 'include/Variable/Variable.h', |
|
8 | 'include/Variable/Variable.h', | |
9 | 'include/Variable/VariableCacheController.h', |
|
9 | 'include/Variable/VariableCacheController.h', | |
10 | 'include/Variable/VariableController.h', |
|
10 | 'include/Variable/VariableController.h', | |
11 | 'include/Variable/VariableAcquisitionWorker.h', |
|
11 | 'include/Variable/VariableAcquisitionWorker.h', | |
12 | 'include/Variable/VariableCacheStrategy.h', |
|
12 | 'include/Variable/VariableCacheStrategy.h', | |
13 | 'include/Variable/VariableSynchronizationGroup.h', |
|
13 | 'include/Variable/VariableSynchronizationGroup.h', | |
14 | 'include/Variable/VariableModel.h', |
|
14 | 'include/Variable/VariableModel.h', | |
15 | 'include/Visualization/VisualizationController.h' |
|
15 | 'include/Visualization/VisualizationController.h' | |
16 | ] |
|
16 | ] | |
17 |
|
17 | |||
18 |
|
18 | |||
19 | core_moc_files = qt5.preprocess(moc_headers : core_moc_headers) |
|
19 | core_moc_files = qt5.preprocess(moc_headers : core_moc_headers) | |
20 |
|
20 | |||
21 | core_sources = [ |
|
21 | core_sources = [ | |
22 | 'src/Common/DateUtils.cpp', |
|
22 | 'src/Common/DateUtils.cpp', | |
23 | 'src/Data/ScalarSeries.cpp', |
|
23 | 'src/Data/ScalarSeries.cpp', | |
24 | 'src/Data/DataSeriesIterator.cpp', |
|
24 | 'src/Data/DataSeriesIterator.cpp', | |
25 | 'src/Data/ArrayDataIterator.cpp', |
|
25 | 'src/Data/ArrayDataIterator.cpp', | |
26 | 'src/Data/VectorSeries.cpp', |
|
26 | 'src/Data/VectorSeries.cpp', | |
27 | 'src/DataSource/DataSourceController.cpp', |
|
27 | 'src/DataSource/DataSourceController.cpp', | |
28 | 'src/DataSource/DataSourceItem.cpp', |
|
28 | 'src/DataSource/DataSourceItem.cpp', | |
29 | 'src/DataSource/DataSourceItemAction.cpp', |
|
29 | 'src/DataSource/DataSourceItemAction.cpp', | |
30 | 'src/Network/NetworkController.cpp', |
|
30 | 'src/Network/NetworkController.cpp', | |
31 | 'src/Plugin/PluginManager.cpp', |
|
31 | 'src/Plugin/PluginManager.cpp', | |
32 | 'src/Settings/SqpSettingsDefs.cpp', |
|
32 | 'src/Settings/SqpSettingsDefs.cpp', | |
33 | 'src/Time/TimeController.cpp', |
|
33 | 'src/Time/TimeController.cpp', | |
34 | 'src/Variable/Variable.cpp', |
|
34 | 'src/Variable/Variable.cpp', | |
35 | 'src/Variable/VariableCacheController.cpp', |
|
35 | 'src/Variable/VariableCacheController.cpp', | |
36 | 'src/Variable/VariableController.cpp', |
|
36 | 'src/Variable/VariableController.cpp', | |
37 | 'src/Variable/VariableAcquisitionWorker.cpp', |
|
37 | 'src/Variable/VariableAcquisitionWorker.cpp', | |
38 | 'src/Variable/VariableCacheStrategy.cpp', |
|
38 | 'src/Variable/VariableCacheStrategy.cpp', | |
39 | 'src/Variable/VariableSynchronizationGroup.cpp', |
|
39 | 'src/Variable/VariableSynchronizationGroup.cpp', | |
40 | 'src/Variable/VariableModel.cpp', |
|
40 | 'src/Variable/VariableModel.cpp', | |
41 | 'src/Visualization/VisualizationController.cpp' |
|
41 | 'src/Visualization/VisualizationController.cpp' | |
42 | ] |
|
42 | ] | |
43 |
|
43 | |||
44 | core_inc = include_directories(['include', '../plugin/include']) |
|
44 | core_inc = include_directories(['include', '../plugin/include']) | |
45 |
|
45 | |||
46 | sciqlop_core = library('sciqlopcore', |
|
46 | sciqlop_core_lib = library('sciqlopcore', | |
47 | core_sources, |
|
47 | core_sources, | |
48 | core_moc_files, |
|
48 | core_moc_files, | |
49 | cpp_args : '-DCORE_LIB', |
|
49 | cpp_args : '-DCORE_LIB', | |
50 | include_directories : core_inc, |
|
50 | include_directories : core_inc, | |
51 |
dependencies : [qt5core, qt5 |
|
51 | dependencies : [qt5core, qt5network], | |
52 | install : true |
|
52 | install : true | |
53 | ) |
|
53 | ) | |
54 |
|
54 | |||
|
55 | ||||
|
56 | sciqlop_core = declare_dependency(link_with : sciqlop_core_lib, | |||
|
57 | include_directories : core_inc, | |||
|
58 | dependencies : [qt5core, qt5network]) | |||
|
59 | ||||
|
60 | ||||
55 | subdir('tests') |
|
61 | subdir('tests') | |
56 |
|
62 |
@@ -1,20 +1,18 | |||||
1 |
|
1 | |||
2 |
|
2 | |||
3 | tests = [ |
|
3 | tests = [ | |
4 | [['Data/TestDataSeries.cpp'],'test_data','DataSeries test'], |
|
4 | [['Data/TestDataSeries.cpp'],'test_data','DataSeries test'], | |
5 | [['Data/TestOneDimArrayData.cpp'],'test_1d','One Dim Array test'], |
|
5 | [['Data/TestOneDimArrayData.cpp'],'test_1d','One Dim Array test'], | |
6 | [['Data/TestTwoDimArrayData.cpp'],'test_2d','Two Dim Array test'], |
|
6 | [['Data/TestTwoDimArrayData.cpp'],'test_2d','Two Dim Array test'], | |
7 | [['DataSource/TestDataSourceController.cpp'],'test_data_source','DataSourceController test'], |
|
7 | [['DataSource/TestDataSourceController.cpp'],'test_data_source','DataSourceController test'], | |
8 | [['Variable/TestVariableCacheController.cpp'],'test_variable_cache','VariableCacheController test'], |
|
8 | [['Variable/TestVariableCacheController.cpp'],'test_variable_cache','VariableCacheController test'], | |
9 | [['Variable/TestVariable.cpp'],'test_variable','Variable test'] |
|
9 | [['Variable/TestVariable.cpp'],'test_variable','Variable test'] | |
10 | ] |
|
10 | ] | |
11 |
|
11 | |||
12 | foreach unit_test : tests |
|
12 | foreach unit_test : tests | |
13 | test_moc_files = qt5.preprocess(moc_sources : unit_test[0]) |
|
13 | test_moc_files = qt5.preprocess(moc_sources : unit_test[0]) | |
14 | test_exe = executable(unit_test[1],unit_test[0] , test_moc_files, |
|
14 | test_exe = executable(unit_test[1],unit_test[0] , test_moc_files, | |
15 |
|
|
15 | dependencies : [sciqlop_core, qt5test]) | |
16 | include_directories : core_inc, |
|
|||
17 | dependencies : [qt5core, qt5widgets, qt5network,qt5test]) |
|
|||
18 | test(unit_test[2], test_exe, args: ['-teamcity', '-o', '@0@.teamcity.txt'.format(unit_test[1])]) |
|
16 | test(unit_test[2], test_exe, args: ['-teamcity', '-o', '@0@.teamcity.txt'.format(unit_test[1])]) | |
19 | endforeach |
|
17 | endforeach | |
20 |
|
18 |
@@ -1,72 +1,75 | |||||
1 |
|
1 | |||
2 | gui_moc_headers = [ |
|
2 | gui_moc_headers = [ | |
3 | 'include/DataSource/DataSourceWidget.h', |
|
3 | 'include/DataSource/DataSourceWidget.h', | |
4 | 'include/Settings/SqpSettingsDialog.h', |
|
4 | 'include/Settings/SqpSettingsDialog.h', | |
5 | 'include/Settings/SqpSettingsGeneralWidget.h', |
|
5 | 'include/Settings/SqpSettingsGeneralWidget.h', | |
6 | 'include/SidePane/SqpSidePane.h', |
|
6 | 'include/SidePane/SqpSidePane.h', | |
7 | 'include/SqpApplication.h', |
|
7 | 'include/SqpApplication.h', | |
8 | 'include/TimeWidget/TimeWidget.h', |
|
8 | 'include/TimeWidget/TimeWidget.h', | |
9 | 'include/Variable/VariableInspectorWidget.h', |
|
9 | 'include/Variable/VariableInspectorWidget.h', | |
10 | 'include/Visualization/qcustomplot.h', |
|
10 | 'include/Visualization/qcustomplot.h', | |
11 | 'include/Visualization/VisualizationGraphWidget.h', |
|
11 | 'include/Visualization/VisualizationGraphWidget.h', | |
12 | 'include/Visualization/VisualizationTabWidget.h', |
|
12 | 'include/Visualization/VisualizationTabWidget.h', | |
13 | 'include/Visualization/VisualizationWidget.h', |
|
13 | 'include/Visualization/VisualizationWidget.h', | |
14 | 'include/Visualization/VisualizationZoneWidget.h' |
|
14 | 'include/Visualization/VisualizationZoneWidget.h' | |
15 | ] |
|
15 | ] | |
16 |
|
16 | |||
17 | gui_ui_files = [ |
|
17 | gui_ui_files = [ | |
18 | 'ui/DataSource/DataSourceWidget.ui', |
|
18 | 'ui/DataSource/DataSourceWidget.ui', | |
19 | 'ui/Settings/SqpSettingsDialog.ui', |
|
19 | 'ui/Settings/SqpSettingsDialog.ui', | |
20 | 'ui/Settings/SqpSettingsGeneralWidget.ui', |
|
20 | 'ui/Settings/SqpSettingsGeneralWidget.ui', | |
21 | 'ui/SidePane/SqpSidePane.ui', |
|
21 | 'ui/SidePane/SqpSidePane.ui', | |
22 | 'ui/TimeWidget/TimeWidget.ui', |
|
22 | 'ui/TimeWidget/TimeWidget.ui', | |
23 | 'ui/Variable/VariableInspectorWidget.ui', |
|
23 | 'ui/Variable/VariableInspectorWidget.ui', | |
24 | 'ui/Variable/VariableMenuHeaderWidget.ui', |
|
24 | 'ui/Variable/VariableMenuHeaderWidget.ui', | |
25 | 'ui/Visualization/VisualizationGraphWidget.ui', |
|
25 | 'ui/Visualization/VisualizationGraphWidget.ui', | |
26 | 'ui/Visualization/VisualizationTabWidget.ui', |
|
26 | 'ui/Visualization/VisualizationTabWidget.ui', | |
27 | 'ui/Visualization/VisualizationWidget.ui', |
|
27 | 'ui/Visualization/VisualizationWidget.ui', | |
28 | 'ui/Visualization/VisualizationZoneWidget.ui' |
|
28 | 'ui/Visualization/VisualizationZoneWidget.ui' | |
29 | ] |
|
29 | ] | |
30 |
|
30 | |||
31 | gui_qresources = ['resources/sqpguiresources.qrc'] |
|
31 | gui_qresources = ['resources/sqpguiresources.qrc'] | |
32 |
|
32 | |||
33 | gui_moc_files = qt5.preprocess(moc_headers : gui_moc_headers, |
|
33 | gui_moc_files = qt5.preprocess(moc_headers : gui_moc_headers, | |
34 | ui_files : gui_ui_files, |
|
34 | ui_files : gui_ui_files, | |
35 | qresources : gui_qresources) |
|
35 | qresources : gui_qresources) | |
36 |
|
36 | |||
37 | gui_sources = [ |
|
37 | gui_sources = [ | |
38 | 'src/SqpApplication.cpp', |
|
38 | 'src/SqpApplication.cpp', | |
39 | 'src/Common/ColorUtils.cpp', |
|
39 | 'src/Common/ColorUtils.cpp', | |
40 | 'src/DataSource/DataSourceTreeWidgetItem.cpp', |
|
40 | 'src/DataSource/DataSourceTreeWidgetItem.cpp', | |
41 | 'src/DataSource/DataSourceTreeWidgetHelper.cpp', |
|
41 | 'src/DataSource/DataSourceTreeWidgetHelper.cpp', | |
42 | 'src/DataSource/DataSourceWidget.cpp', |
|
42 | 'src/DataSource/DataSourceWidget.cpp', | |
43 | 'src/Settings/SqpSettingsDialog.cpp', |
|
43 | 'src/Settings/SqpSettingsDialog.cpp', | |
44 | 'src/Settings/SqpSettingsGeneralWidget.cpp', |
|
44 | 'src/Settings/SqpSettingsGeneralWidget.cpp', | |
45 | 'src/SidePane/SqpSidePane.cpp', |
|
45 | 'src/SidePane/SqpSidePane.cpp', | |
46 | 'src/TimeWidget/TimeWidget.cpp', |
|
46 | 'src/TimeWidget/TimeWidget.cpp', | |
47 | 'src/Variable/VariableInspectorWidget.cpp', |
|
47 | 'src/Variable/VariableInspectorWidget.cpp', | |
48 | 'src/Variable/VariableMenuHeaderWidget.cpp', |
|
48 | 'src/Variable/VariableMenuHeaderWidget.cpp', | |
49 | 'src/Visualization/VisualizationGraphHelper.cpp', |
|
49 | 'src/Visualization/VisualizationGraphHelper.cpp', | |
50 | 'src/Visualization/VisualizationGraphRenderingDelegate.cpp', |
|
50 | 'src/Visualization/VisualizationGraphRenderingDelegate.cpp', | |
51 | 'src/Visualization/VisualizationGraphWidget.cpp', |
|
51 | 'src/Visualization/VisualizationGraphWidget.cpp', | |
52 | 'src/Visualization/VisualizationTabWidget.cpp', |
|
52 | 'src/Visualization/VisualizationTabWidget.cpp', | |
53 | 'src/Visualization/VisualizationWidget.cpp', |
|
53 | 'src/Visualization/VisualizationWidget.cpp', | |
54 | 'src/Visualization/VisualizationZoneWidget.cpp', |
|
54 | 'src/Visualization/VisualizationZoneWidget.cpp', | |
55 | 'src/Visualization/qcustomplot.cpp', |
|
55 | 'src/Visualization/qcustomplot.cpp', | |
56 | 'src/Visualization/operations/GenerateVariableMenuOperation.cpp', |
|
56 | 'src/Visualization/operations/GenerateVariableMenuOperation.cpp', | |
57 | 'src/Visualization/operations/MenuBuilder.cpp', |
|
57 | 'src/Visualization/operations/MenuBuilder.cpp', | |
58 | 'src/Visualization/operations/RemoveVariableOperation.cpp', |
|
58 | 'src/Visualization/operations/RemoveVariableOperation.cpp', | |
59 | 'src/Visualization/operations/RescaleAxeOperation.cpp' |
|
59 | 'src/Visualization/operations/RescaleAxeOperation.cpp' | |
60 | ] |
|
60 | ] | |
61 |
|
61 | |||
62 | gui_inc = include_directories(['include']) |
|
62 | gui_inc = include_directories(['include']) | |
63 |
|
63 | |||
64 | sciqlop_gui = library('sciqlopgui', |
|
64 | sciqlop_gui_lib = library('sciqlopgui', | |
65 | gui_sources, |
|
65 | gui_sources, | |
66 | gui_moc_files, |
|
66 | gui_moc_files, | |
67 |
|
|
67 | include_directories : [gui_inc], | |
68 | include_directories : [gui_inc, core_inc], |
|
68 | dependencies : [ qt5printsupport, qt5gui, qt5widgets, qt5svg, sciqlop_core], | |
69 | dependencies : [qt5core, qt5printsupport, qt5gui, qt5widgets, qt5network], |
|
|||
70 | install : true |
|
69 | install : true | |
71 | ) |
|
70 | ) | |
72 |
|
71 | |||
|
72 | sciqlop_gui = declare_dependency(link_with : sciqlop_gui_lib, | |||
|
73 | include_directories : gui_inc, | |||
|
74 | dependencies : [qt5printsupport, qt5gui, qt5widgets, qt5svg, sciqlop_core]) | |||
|
75 |
@@ -1,73 +1,72 | |||||
1 |
|
1 | |||
2 | amdaplugin_moc_headers = [ |
|
2 | amdaplugin_moc_headers = [ | |
3 | 'include/AmdaPlugin.h' |
|
3 | 'include/AmdaPlugin.h' | |
4 | ] |
|
4 | ] | |
5 |
|
5 | |||
6 | amdaplugin_sources = [ |
|
6 | amdaplugin_sources = [ | |
7 | 'src/AmdaDefs.cpp', |
|
7 | 'src/AmdaDefs.cpp', | |
8 | 'src/AmdaParser.cpp', |
|
8 | 'src/AmdaParser.cpp', | |
9 | 'src/AmdaPlugin.cpp', |
|
9 | 'src/AmdaPlugin.cpp', | |
10 | 'src/AmdaProvider.cpp', |
|
10 | 'src/AmdaProvider.cpp', | |
11 | 'src/AmdaResultParser.cpp' |
|
11 | 'src/AmdaResultParser.cpp' | |
12 | ] |
|
12 | ] | |
13 |
|
13 | |||
14 | amdaplugin_ui_files = [] |
|
14 | amdaplugin_ui_files = [] | |
15 | amdaplugin_resources_files = [ |
|
15 | amdaplugin_resources_files = [ | |
16 | 'resources/amdaresources.qrc' |
|
16 | 'resources/amdaresources.qrc' | |
17 | ] |
|
17 | ] | |
18 |
|
18 | |||
19 | amdaplugin_inc = include_directories(['include', '../../plugin/include']) |
|
19 | amdaplugin_inc = include_directories(['include', '../../plugin/include']) | |
20 |
|
20 | |||
21 | moc_gen = generator(moc, |
|
21 | moc_gen = generator(moc, | |
22 | output : 'moc_@BASENAME@.cpp', |
|
22 | output : 'moc_@BASENAME@.cpp', | |
23 | arguments : ['@INPUT@', |
|
23 | arguments : ['@INPUT@', | |
24 | '-DPLUGIN_JSON_FILE_PATH="'+meson.source_root()+'/plugins/amda/resources/amda.json"', |
|
24 | '-DPLUGIN_JSON_FILE_PATH="'+meson.source_root()+'/plugins/amda/resources/amda.json"', | |
25 | '-I', meson.current_source_dir()+'/include', |
|
25 | '-I', meson.current_source_dir()+'/include', | |
26 | '-I', meson.current_source_dir()+'/../../plugin/include', |
|
26 | '-I', meson.current_source_dir()+'/../../plugin/include', | |
27 | '-o', '@OUTPUT@']) |
|
27 | '-o', '@OUTPUT@']) | |
28 |
|
28 | |||
29 | rcc_gen = generator(rcc, |
|
29 | rcc_gen = generator(rcc, | |
30 | output : 'qrc_@BASENAME@.cpp', |
|
30 | output : 'qrc_@BASENAME@.cpp', | |
31 | arguments : ['--name=@BASENAME@"', |
|
31 | arguments : ['--name=@BASENAME@"', | |
32 | '--output', |
|
32 | '--output', | |
33 | '@OUTPUT@', |
|
33 | '@OUTPUT@', | |
34 | '@INPUT@']) |
|
34 | '@INPUT@']) | |
35 |
|
35 | |||
36 | amdaplugin_moc_plugin_files = moc_gen.process(amdaplugin_moc_headers) |
|
36 | amdaplugin_moc_plugin_files = moc_gen.process(amdaplugin_moc_headers) | |
37 |
|
37 | |||
38 | amdaplugin_rcc_plugin_files = rcc_gen.process(amdaplugin_resources_files) |
|
38 | amdaplugin_rcc_plugin_files = rcc_gen.process(amdaplugin_resources_files) | |
39 |
|
39 | |||
40 | #amdaplugin_rcc_plugin_files = qt5.preprocess( |
|
40 | #amdaplugin_rcc_plugin_files = qt5.preprocess( | |
41 | # qresources : amdaplugin_resources_files) |
|
41 | # qresources : amdaplugin_resources_files) | |
42 |
|
42 | |||
43 | amdaplugin_moc_files = qt5.preprocess( |
|
43 | amdaplugin_moc_files = qt5.preprocess( | |
44 | ui_files : amdaplugin_ui_files) |
|
44 | ui_files : amdaplugin_ui_files) | |
45 |
|
45 | |||
46 | sciqlop_amdaplugin = library('amdaplugin', |
|
46 | sciqlop_amdaplugin = library('amdaplugin', | |
47 | amdaplugin_sources, |
|
47 | amdaplugin_sources, | |
48 | amdaplugin_moc_files, |
|
48 | amdaplugin_moc_files, | |
49 | amdaplugin_rcc_plugin_files, |
|
49 | amdaplugin_rcc_plugin_files, | |
50 | amdaplugin_moc_plugin_files, |
|
50 | amdaplugin_moc_plugin_files, | |
51 | cpp_args : ['-DAMDA_LIB','-DQT_PLUGIN'], |
|
51 | cpp_args : ['-DAMDA_LIB','-DQT_PLUGIN'], | |
52 | link_with : [sciqlop_core, sciqlop_gui], |
|
52 | include_directories : [amdaplugin_inc], | |
53 |
|
|
53 | dependencies : [sciqlop_core, sciqlop_gui], | |
54 | dependencies : [qt5core, qt5gui, qt5widgets, qt5network], |
|
|||
55 | install : true |
|
54 | install : true | |
56 | ) |
|
55 | ) | |
57 |
|
56 | |||
58 |
|
57 | |||
59 | tests = [ |
|
58 | tests = [ | |
60 | [['tests/TestAmdaParser.cpp'],'test_amda_parser','AMDA parser test'], |
|
59 | [['tests/TestAmdaParser.cpp'],'test_amda_parser','AMDA parser test'], | |
61 | [['tests/TestAmdaResultParser.cpp'],'test_amda_result_parser','AMDA result parser test'], |
|
60 | [['tests/TestAmdaResultParser.cpp'],'test_amda_result_parser','AMDA result parser test'], | |
62 | [['tests/TestAmdaAcquisition.cpp'],'test_amda_acquisition','AMDA Acquisition test'] |
|
61 | [['tests/TestAmdaAcquisition.cpp'],'test_amda_acquisition','AMDA Acquisition test'] | |
63 | ] |
|
62 | ] | |
64 |
|
63 | |||
65 | foreach unit_test : tests |
|
64 | foreach unit_test : tests | |
66 | test_moc_files = qt5.preprocess(moc_sources : unit_test[0]) |
|
65 | test_moc_files = qt5.preprocess(moc_sources : unit_test[0]) | |
67 | test_exe = executable(unit_test[1],unit_test[0] , test_moc_files, |
|
66 | test_exe = executable(unit_test[1],unit_test[0] , test_moc_files, | |
68 |
link_with : [sciqlop_ |
|
67 | link_with : [sciqlop_amdaplugin], | |
69 |
include_directories : [ |
|
68 | include_directories : [amdaplugin_inc], | |
70 | cpp_args : ['-DAMDA_TESTS_RESOURCES_DIR="'+meson.current_source_dir()+'/tests-resources"'], |
|
69 | cpp_args : ['-DAMDA_TESTS_RESOURCES_DIR="'+meson.current_source_dir()+'/tests-resources"'], | |
71 |
dependencies : [ |
|
70 | dependencies : [sciqlop_core, sciqlop_gui, qt5test]) | |
72 | test(unit_test[2], test_exe, args: ['-teamcity', '-o', '@0@.teamcity.txt'.format(unit_test[1])], timeout: 3 * 60) |
|
71 | test(unit_test[2], test_exe, args: ['-teamcity', '-o', '@0@.teamcity.txt'.format(unit_test[1])], timeout: 3 * 60) | |
73 | endforeach |
|
72 | endforeach |
@@ -1,33 +1,32 | |||||
1 |
|
1 | |||
2 | mockplugin_moc_headers = [ |
|
2 | mockplugin_moc_headers = [ | |
3 | 'include/MockPlugin.h' |
|
3 | 'include/MockPlugin.h' | |
4 | ] |
|
4 | ] | |
5 |
|
5 | |||
6 | mockplugin_sources = [ |
|
6 | mockplugin_sources = [ | |
7 | 'src/CosinusProvider.cpp', |
|
7 | 'src/CosinusProvider.cpp', | |
8 | 'src/MockPlugin.cpp' |
|
8 | 'src/MockPlugin.cpp' | |
9 | ] |
|
9 | ] | |
10 |
|
10 | |||
11 | mockplugin_inc = include_directories(['include', '../../plugin/include']) |
|
11 | mockplugin_inc = include_directories(['include', '../../plugin/include']) | |
12 |
|
12 | |||
13 |
|
13 | |||
14 | gen = generator(moc, |
|
14 | gen = generator(moc, | |
15 | output : 'moc_@BASENAME@.cpp', |
|
15 | output : 'moc_@BASENAME@.cpp', | |
16 | arguments : ['@INPUT@', |
|
16 | arguments : ['@INPUT@', | |
17 | '-DPLUGIN_JSON_FILE_PATH="'+meson.source_root()+'/plugins/mockplugin/resources/mockplugin.json"', |
|
17 | '-DPLUGIN_JSON_FILE_PATH="'+meson.source_root()+'/plugins/mockplugin/resources/mockplugin.json"', | |
18 | '-I', meson.current_source_dir()+'/include', |
|
18 | '-I', meson.current_source_dir()+'/include', | |
19 | '-I', meson.current_source_dir()+'/../../plugin/include', |
|
19 | '-I', meson.current_source_dir()+'/../../plugin/include', | |
20 | '-o', '@OUTPUT@']) |
|
20 | '-o', '@OUTPUT@']) | |
21 |
|
21 | |||
22 | mockplugin_moc_files = gen.process(mockplugin_moc_headers) |
|
22 | mockplugin_moc_files = gen.process(mockplugin_moc_headers) | |
23 |
|
23 | |||
24 | sciqlop_mockplugin = library('mockplugin', |
|
24 | sciqlop_mockplugin = library('mockplugin', | |
25 | mockplugin_sources, |
|
25 | mockplugin_sources, | |
26 | mockplugin_moc_files, |
|
26 | mockplugin_moc_files, | |
27 | cpp_args : '-DMOCKPLUGIN_LIB', |
|
27 | cpp_args : '-DMOCKPLUGIN_LIB', | |
28 |
|
|
28 | include_directories : [mockplugin_inc], | |
29 |
|
|
29 | dependencies : [sciqlop_core, sciqlop_gui], | |
30 | dependencies : [qt5core, qt5gui, qt5widgets, qt5network], |
|
|||
31 | install : true |
|
30 | install : true | |
32 | ) |
|
31 | ) | |
33 |
|
32 |
General Comments 0
You need to be logged in to leave comments.
Login now