[Spice-devel] [PATCH spice-common] fixup! test-overflow: Remove dependency from libspice-common-{server, client}
Eduardo Lima (Etrunko)
etrunko at redhat.com
Mon Jul 9 22:19:14 UTC 2018
Signed-off-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
---
tests/meson.build | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/tests/meson.build b/tests/meson.build
index 38a4bea..f1fe154 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -17,8 +17,7 @@ endforeach
#
test_proto = files('test-marshallers.proto')
-test_marshallers_sources = ['test-marshallers.c', 'test-marshallers.h']
-test_overflow_sources = ['test-overflow.c']
+generated_test_sources = []
targets = [
['test_marshallers', test_proto, 'generated_test_marshallers.c', ['--generate-marshallers', '--server', '--include', 'test-marshallers.h', '@INPUT@', '@OUTPUT@']],
@@ -29,17 +28,16 @@ targets = [
foreach t : targets
cmd = [python, spice_codegen] + t[3]
- target = custom_target(t[0], input: t[1], output : t[2], command: cmd, depend_files : spice_codegen_files)
- test_marshallers_sources += target
- test_overflow_sources += target
+ generated_test_sources += custom_target(t[0], input: t[1], output : t[2], command: cmd, depend_files : spice_codegen_files)
endforeach
test('test_marshallers',
- executable('test_marshallers', test_marshallers_sources,
+ executable('test_marshallers', ['test-marshallers.c', 'test-marshallers.h', generated_test_sources],
dependencies : spice_common_dep,
install : false))
+
test('test_overflow',
- executable('test_overflow', test_overflow_sources,
+ executable('test_overflow', ['test-overflow.c', generated_test_sources],
dependencies : spice_common_dep,
install : false))
--
2.14.4
More information about the Spice-devel
mailing list