[dia: 62/105] #19: Add `ninja sizeof` run target for "test-sizeof.c" helper.



commit 1ca8e639c07f76c44b45929d47f6c9c9d9c84699
Author: Eduard Nicodei <eddnicodei gmail com>
Date:   Fri Jan 4 19:05:38 2019 +0000

    #19: Add `ninja sizeof` run target for "test-sizeof.c" helper.

 tests/meson.build | 12 ++++++++++++
 1 file changed, 12 insertions(+)
---
diff --git a/tests/meson.build b/tests/meson.build
index a7caa136..776c779c 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -28,6 +28,18 @@ tsvg = executable(
     link_args: dia_link_args,
     include_directories: [configuration_inc, libdia_inc],
 )
+sizeof = executable(
+    'sizeof',
+    'test-sizeof.c',
+    dependencies: [libgtk_dep, libxml_dep, libm_dep],
+    link_with: [libdia],
+    link_args: dia_link_args,
+    include_directories: [configuration_inc, libdia_inc],
+)
+
+# Not really a test, but just a helper program.
+run_target('sizeof', command: [sizeof])
+
 if host_machine.system() != 'windows'
   test('boundingbox', bb)
   test('objects', objs, args: [join_paths(meson.build_root(), 'objects')])


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