##// END OF EJS Templates
Adds "number of operations" and "number of variables" properties for the tests
Adds "number of operations" and "number of variables" properties for the tests

File last commit:

r1169:49d15be9d590
r1170:3da18e6983d5
Show More
meson.build
83 lines | 3.0 KiB | text/plain | TextLexer
Added Meson support....
r620
amdaplugin_moc_headers = [
Add missing include in meson.build
r766 'include/AmdaPlugin.h',
'include/AmdaProvider.h'
Added Meson support....
r620 ]
amdaplugin_sources = [
'src/AmdaDefs.cpp',
'src/AmdaParser.cpp',
'src/AmdaPlugin.cpp',
'src/AmdaProvider.cpp',
Alexandre Leroux
Meson fix
r956 'src/AmdaResultParser.cpp',
'src/AmdaResultParserDefs.cpp',
Alexandre Leroux
Creates AMDAServer class...
r1111 'src/AmdaResultParserHelper.cpp',
'src/AmdaServer.cpp'
Added Meson support....
r620 ]
amdaplugin_ui_files = []
amdaplugin_resources_files = [
'resources/amdaresources.qrc'
]
amdaplugin_inc = include_directories(['include', '../../plugin/include'])
Added workaround for meson's rcc call with plugins....
r651 moc_gen = generator(moc,
Added Meson support....
r620 output : 'moc_@BASENAME@.cpp',
arguments : ['@INPUT@',
Alexandre Leroux
(Minor) Fixes vera warnings for AMDA plugin
r1119 '-DSCIQLOP_PLUGIN_JSON_FILE_PATH="'+meson.source_root()+'/plugins/amda/resources/amda.json"',
Added Meson support....
r620 '-I', meson.current_source_dir()+'/include',
'-I', meson.current_source_dir()+'/../../plugin/include',
'-o', '@OUTPUT@'])
Added workaround for meson's rcc call with plugins....
r651 rcc_gen = generator(rcc,
output : 'qrc_@BASENAME@.cpp',
arguments : ['--name=@BASENAME@"',
'--output',
'@OUTPUT@',
'@INPUT@'])
amdaplugin_moc_plugin_files = moc_gen.process(amdaplugin_moc_headers)
amdaplugin_rcc_plugin_files = rcc_gen.process(amdaplugin_resources_files)
Added Meson support....
r620
Some minor improvements on plugin loading:...
r652 #amdaplugin_rcc_plugin_files = qt5.preprocess(
# qresources : amdaplugin_resources_files)
Added Meson support....
r620 amdaplugin_moc_files = qt5.preprocess(
Added workaround for meson's rcc call with plugins....
r651 ui_files : amdaplugin_ui_files)
Added Meson support....
r620
sciqlop_amdaplugin = library('amdaplugin',
amdaplugin_sources,
amdaplugin_moc_files,
Added workaround for meson's rcc call with plugins....
r651 amdaplugin_rcc_plugin_files,
Added Meson support....
r620 amdaplugin_moc_plugin_files,
Some minor improvements on plugin loading:...
r652 cpp_args : ['-DAMDA_LIB','-DQT_PLUGIN'],
Some Meson improvements, now declare dependency for each lib...
r662 include_directories : [amdaplugin_inc],
dependencies : [sciqlop_core, sciqlop_gui],
Added Meson support....
r620 install : true
)
tests = [
Set tests output format to teamcity with meson....
r633 [['tests/TestAmdaParser.cpp'],'test_amda_parser','AMDA parser test'],
[['tests/TestAmdaResultParser.cpp'],'test_amda_result_parser','AMDA result parser test'],
Alexandre Leroux
Inits test structure
r1168 [['tests/TestAmdaAcquisition.cpp'],'test_amda_acquisition','AMDA Acquisition test'],
[['tests/TestAmdaFuzzing.cpp'],'test_amda_fuzzing','AMDA fuzzing test']
Added Meson support....
r620 ]
Alexandre Leroux
Adds variable controller and properties to test structure...
r1169 tests_sources = [
'tests/FuzzingDefs.h',
'tests/FuzzingDefs.cpp',
]
Added Meson support....
r620 foreach unit_test : tests
test_moc_files = qt5.preprocess(moc_sources : unit_test[0])
test_exe = executable(unit_test[1],unit_test[0] , test_moc_files,
Some Meson improvements, now declare dependency for each lib...
r662 link_with : [sciqlop_amdaplugin],
include_directories : [amdaplugin_inc],
Added Meson support....
r620 cpp_args : ['-DAMDA_TESTS_RESOURCES_DIR="'+meson.current_source_dir()+'/tests-resources"'],
Alexandre Leroux
Adds variable controller and properties to test structure...
r1169 sources : [tests_sources],
Some Meson improvements, now declare dependency for each lib...
r662 dependencies : [sciqlop_core, sciqlop_gui, qt5test])
Set tests output format to teamcity with meson....
r633 test(unit_test[2], test_exe, args: ['-teamcity', '-o', '@0@.teamcity.txt'.format(unit_test[1])], timeout: 3 * 60)
Added Meson support....
r620 endforeach