[PATCH spice-common] fixup! test-overflow: Remove dependency from libspice-common-{server, client}

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Eduardo Lima (Etrunko) <etrunko@xxxxxxxxxx>
---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]