1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
tests_c_args = [
'-DG_LOG_DOMAIN="GtkSourceView"',
'-DTOP_SRCDIR="@0@"'.format(srcdir),
]
tests_sources = {
'completion': ['test-completion.c'],
'int2str': ['test-int2str.c'],
'search': ['test-search.c'],
'search-performances': ['test-search-performances.c'],
'space-drawing': ['test-space-drawing.c'],
'undo-manager-performances': ['test-undo-manager-performances.c'],
'widget': ['test-widget.c'],
}
tests_resources = {
'completion': 'test-completion.gresource.xml',
'search': 'test-search.gresource.xml',
'widget': 'test-widget.gresource.xml',
}
foreach test_name, test_sources: tests_sources
if tests_resources.has_key(test_name)
test_sources += gnome.compile_resources(
'test-@0@-resources'.format(test_name),
tests_resources.get(test_name),
)
endif
# MSVC builds: We need items from the main GtkSourceView .lib as
# well as the static core lib
executable('test-@0@'.format(test_name), test_sources,
c_args: tests_c_args,
dependencies: cc.get_id() == 'msvc' ? [gtksource_dep, core_dep] : [gtksource_dep],
)
endforeach
|