|
@@
-1,75
+1,76
|
|
1
|
|
|
1
|
|
|
2
|
amdaplugin_moc_headers = [
|
|
2
|
amdaplugin_moc_headers = [
|
|
3
|
'include/AmdaPlugin.h',
|
|
3
|
'include/AmdaPlugin.h',
|
|
4
|
'include/AmdaProvider.h'
|
|
4
|
'include/AmdaProvider.h'
|
|
5
|
]
|
|
5
|
]
|
|
6
|
|
|
6
|
|
|
7
|
amdaplugin_sources = [
|
|
7
|
amdaplugin_sources = [
|
|
8
|
'src/AmdaDefs.cpp',
|
|
8
|
'src/AmdaDefs.cpp',
|
|
9
|
'src/AmdaParser.cpp',
|
|
9
|
'src/AmdaParser.cpp',
|
|
10
|
'src/AmdaPlugin.cpp',
|
|
10
|
'src/AmdaPlugin.cpp',
|
|
11
|
'src/AmdaProvider.cpp',
|
|
11
|
'src/AmdaProvider.cpp',
|
|
12
|
'src/AmdaResultParser.cpp',
|
|
12
|
'src/AmdaResultParser.cpp',
|
|
13
|
'src/AmdaResultParserDefs.cpp',
|
|
13
|
'src/AmdaResultParserDefs.cpp',
|
|
14
|
'src/AmdaResultParserHelper.cpp'
|
|
14
|
'src/AmdaResultParserHelper.cpp',
|
|
|
|
|
15
|
'src/AmdaServer.cpp'
|
|
15
|
]
|
|
16
|
]
|
|
16
|
|
|
17
|
|
|
17
|
amdaplugin_ui_files = []
|
|
18
|
amdaplugin_ui_files = []
|
|
18
|
amdaplugin_resources_files = [
|
|
19
|
amdaplugin_resources_files = [
|
|
19
|
'resources/amdaresources.qrc'
|
|
20
|
'resources/amdaresources.qrc'
|
|
20
|
]
|
|
21
|
]
|
|
21
|
|
|
22
|
|
|
22
|
amdaplugin_inc = include_directories(['include', '../../plugin/include'])
|
|
23
|
amdaplugin_inc = include_directories(['include', '../../plugin/include'])
|
|
23
|
|
|
24
|
|
|
24
|
moc_gen = generator(moc,
|
|
25
|
moc_gen = generator(moc,
|
|
25
|
output : 'moc_@BASENAME@.cpp',
|
|
26
|
output : 'moc_@BASENAME@.cpp',
|
|
26
|
arguments : ['@INPUT@',
|
|
27
|
arguments : ['@INPUT@',
|
|
27
|
'-DPLUGIN_JSON_FILE_PATH="'+meson.source_root()+'/plugins/amda/resources/amda.json"',
|
|
28
|
'-DPLUGIN_JSON_FILE_PATH="'+meson.source_root()+'/plugins/amda/resources/amda.json"',
|
|
28
|
'-I', meson.current_source_dir()+'/include',
|
|
29
|
'-I', meson.current_source_dir()+'/include',
|
|
29
|
'-I', meson.current_source_dir()+'/../../plugin/include',
|
|
30
|
'-I', meson.current_source_dir()+'/../../plugin/include',
|
|
30
|
'-o', '@OUTPUT@'])
|
|
31
|
'-o', '@OUTPUT@'])
|
|
31
|
|
|
32
|
|
|
32
|
rcc_gen = generator(rcc,
|
|
33
|
rcc_gen = generator(rcc,
|
|
33
|
output : 'qrc_@BASENAME@.cpp',
|
|
34
|
output : 'qrc_@BASENAME@.cpp',
|
|
34
|
arguments : ['--name=@BASENAME@"',
|
|
35
|
arguments : ['--name=@BASENAME@"',
|
|
35
|
'--output',
|
|
36
|
'--output',
|
|
36
|
'@OUTPUT@',
|
|
37
|
'@OUTPUT@',
|
|
37
|
'@INPUT@'])
|
|
38
|
'@INPUT@'])
|
|
38
|
|
|
39
|
|
|
39
|
amdaplugin_moc_plugin_files = moc_gen.process(amdaplugin_moc_headers)
|
|
40
|
amdaplugin_moc_plugin_files = moc_gen.process(amdaplugin_moc_headers)
|
|
40
|
|
|
41
|
|
|
41
|
amdaplugin_rcc_plugin_files = rcc_gen.process(amdaplugin_resources_files)
|
|
42
|
amdaplugin_rcc_plugin_files = rcc_gen.process(amdaplugin_resources_files)
|
|
42
|
|
|
43
|
|
|
43
|
#amdaplugin_rcc_plugin_files = qt5.preprocess(
|
|
44
|
#amdaplugin_rcc_plugin_files = qt5.preprocess(
|
|
44
|
# qresources : amdaplugin_resources_files)
|
|
45
|
# qresources : amdaplugin_resources_files)
|
|
45
|
|
|
46
|
|
|
46
|
amdaplugin_moc_files = qt5.preprocess(
|
|
47
|
amdaplugin_moc_files = qt5.preprocess(
|
|
47
|
ui_files : amdaplugin_ui_files)
|
|
48
|
ui_files : amdaplugin_ui_files)
|
|
48
|
|
|
49
|
|
|
49
|
sciqlop_amdaplugin = library('amdaplugin',
|
|
50
|
sciqlop_amdaplugin = library('amdaplugin',
|
|
50
|
amdaplugin_sources,
|
|
51
|
amdaplugin_sources,
|
|
51
|
amdaplugin_moc_files,
|
|
52
|
amdaplugin_moc_files,
|
|
52
|
amdaplugin_rcc_plugin_files,
|
|
53
|
amdaplugin_rcc_plugin_files,
|
|
53
|
amdaplugin_moc_plugin_files,
|
|
54
|
amdaplugin_moc_plugin_files,
|
|
54
|
cpp_args : ['-DAMDA_LIB','-DQT_PLUGIN'],
|
|
55
|
cpp_args : ['-DAMDA_LIB','-DQT_PLUGIN'],
|
|
55
|
include_directories : [amdaplugin_inc],
|
|
56
|
include_directories : [amdaplugin_inc],
|
|
56
|
dependencies : [sciqlop_core, sciqlop_gui],
|
|
57
|
dependencies : [sciqlop_core, sciqlop_gui],
|
|
57
|
install : true
|
|
58
|
install : true
|
|
58
|
)
|
|
59
|
)
|
|
59
|
|
|
60
|
|
|
60
|
|
|
61
|
|
|
61
|
tests = [
|
|
62
|
tests = [
|
|
62
|
[['tests/TestAmdaParser.cpp'],'test_amda_parser','AMDA parser test'],
|
|
63
|
[['tests/TestAmdaParser.cpp'],'test_amda_parser','AMDA parser test'],
|
|
63
|
[['tests/TestAmdaResultParser.cpp'],'test_amda_result_parser','AMDA result parser test'],
|
|
64
|
[['tests/TestAmdaResultParser.cpp'],'test_amda_result_parser','AMDA result parser test'],
|
|
64
|
[['tests/TestAmdaAcquisition.cpp'],'test_amda_acquisition','AMDA Acquisition test']
|
|
65
|
[['tests/TestAmdaAcquisition.cpp'],'test_amda_acquisition','AMDA Acquisition test']
|
|
65
|
]
|
|
66
|
]
|
|
66
|
|
|
67
|
|
|
67
|
foreach unit_test : tests
|
|
68
|
foreach unit_test : tests
|
|
68
|
test_moc_files = qt5.preprocess(moc_sources : unit_test[0])
|
|
69
|
test_moc_files = qt5.preprocess(moc_sources : unit_test[0])
|
|
69
|
test_exe = executable(unit_test[1],unit_test[0] , test_moc_files,
|
|
70
|
test_exe = executable(unit_test[1],unit_test[0] , test_moc_files,
|
|
70
|
link_with : [sciqlop_amdaplugin],
|
|
71
|
link_with : [sciqlop_amdaplugin],
|
|
71
|
include_directories : [amdaplugin_inc],
|
|
72
|
include_directories : [amdaplugin_inc],
|
|
72
|
cpp_args : ['-DAMDA_TESTS_RESOURCES_DIR="'+meson.current_source_dir()+'/tests-resources"'],
|
|
73
|
cpp_args : ['-DAMDA_TESTS_RESOURCES_DIR="'+meson.current_source_dir()+'/tests-resources"'],
|
|
73
|
dependencies : [sciqlop_core, sciqlop_gui, qt5test])
|
|
74
|
dependencies : [sciqlop_core, sciqlop_gui, qt5test])
|
|
74
|
test(unit_test[2], test_exe, args: ['-teamcity', '-o', '@0@.teamcity.txt'.format(unit_test[1])], timeout: 3 * 60)
|
|
75
|
test(unit_test[2], test_exe, args: ['-teamcity', '-o', '@0@.teamcity.txt'.format(unit_test[1])], timeout: 3 * 60)
|
|
75
|
endforeach
|
|
76
|
endforeach
|