[gobject-introspection/meson-test-bar-v2] tests: try building Bar-1.0 again



commit 95aa2eaf344775cd73102fad0c4544d3b282dfe6
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Wed Jan 2 21:45:45 2019 +0100

    tests: try building Bar-1.0 again
    
    This time pass the libgirepository build dir

 tests/scanner/meson.build | 37 ++++++++++++++++++++++++++++++++++++-
 1 file changed, 36 insertions(+), 1 deletion(-)
---
diff --git a/tests/scanner/meson.build b/tests/scanner/meson.build
index 08e2f116..d5415f78 100644
--- a/tests/scanner/meson.build
+++ b/tests/scanner/meson.build
@@ -142,7 +142,42 @@ if glib_dep.type_name() == 'pkgconfig'
     command: gircompiler_command,
   )
 
-  # FIXME: Bar-1.0.gir
+  bar_gir = custom_target('gir-bar',
+    input: ['barapp.c', 'barapp.h'],
+    output: 'Bar-1.0.gir',
+    depends: [barapp_lib] + typelibs,
+    command: [
+      python,
+      girscanner,
+      '--output=@OUTPUT@',
+      '--no-libtool',
+      '--reparse-validate',
+      '--add-include-path', join_paths(meson.source_root(), 'gir'),
+      '--add-include-path', join_paths(meson.build_root(), 'gir'),
+      '--warn-all',
+      '--warn-error',
+      '--namespace=Bar',
+      '--nsversion=1.0',
+      '--include=GObject-2.0',
+      '--pkg=gobject-2.0',
+      '--library=barapp-1.0',
+      '--accept-unprefixed',
+      '-L', meson.current_build_dir(),
+      '-L', join_paths(meson.build_root(), 'girepository'),
+      '-I', meson.current_source_dir(),
+      '-I', join_paths(meson.current_source_dir(), '..'),
+      '@INPUT@',
+    ]
+  )
+  test_girs += bar_gir
+
+  test_typelibs += custom_target(
+    'generate-typelib-bar',
+    input: bar_gir,
+    output: '@BASENAME@.typelib',
+    depends: [gobject_gir],
+    command: gircompiler_command,
+  )
 
   sletter_gir = custom_target('gir-sletter',
     input: ['sletter.c', 'sletter.h'],


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