[libgit2-glib] meson: Fix properties orders



commit 59450fffbc1542bbee914b38edfe092beff62e1a
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Mon Nov 12 15:44:48 2018 +0100

    meson: Fix properties orders
    
    Properties have been reordered in both `tests` and `examples` to be
    consistent with the order in other built objects.

 examples/meson.build |  2 +-
 tests/meson.build    | 26 ++++++++++++--------------
 2 files changed, 13 insertions(+), 15 deletions(-)
---
diff --git a/examples/meson.build b/examples/meson.build
index fc1024d..5cb2cbc 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -11,7 +11,7 @@ foreach example: examples
   executable(
     example,
     example + '.c',
-    dependencies: libgit2_glib_dep,
     include_directories: top_inc,
+    dependencies: libgit2_glib_dep,
   )
 endforeach
diff --git a/tests/meson.build b/tests/meson.build
index 38f3fb1..a318c90 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -1,16 +1,14 @@
-unit_tests = ['repository']
+unit_test = 'repository'
 
-foreach unit: unit_tests
-  exe = executable(
-    unit,
-    unit + '.c',
-    dependencies: libgit2_glib_dep,
-    include_directories: top_inc,
-  )
+exe = executable(
+  unit_test,
+  unit_test + '.c',
+  include_directories: top_inc,
+  dependencies: libgit2_glib_dep,
+)
 
-  test(
-    unit,
-    exe,
-    args: ['--tap', '-k'],
-  )
-endforeach
+test(
+  unit_test,
+  exe,
+  args: ['--tap', '-k'],
+)


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