build: gir - set nsversion from api_version var
authorJohn Marshall <jtm.home@gmail.com>
Wed, 24 Jun 2020 19:14:34 +0000 (20:14 +0100)
committerJohn Marshall <jtm.home@gmail.com>
Thu, 25 Jun 2020 07:07:00 +0000 (08:07 +0100)
babl/meson.build

index c72fd80eeeaebef93e518f95b9d72f3fa4359f60..1467901285a148cc3808de5e7993cb0f6e5f9590 100644 (file)
@@ -155,16 +155,15 @@ babl = library(
 if build_gir
   # identity filter, so GIR doesn't choke on the Babl type
   # (since it has the same name as the Babl namespace)
-  identfilter_py = join_paths(meson.current_source_dir(), 'identfilter.py')
-
   babl_gir = gnome.generate_gir(babl,
     sources: babl_headers,
     extra_args: [
-      '--identifier-filter-cmd=@0@ @1@'.format(python.path(), identfilter_py),
+      '--identifier-filter-cmd=@0@ @1@'.format(python.path(), 
+        meson.current_source_dir() / 'identfilter.py'),
       '-DBABL_IS_BEING_COMPILED',
     ],
     namespace: 'Babl',
-    nsversion: '0.1',
+    nsversion: api_version,
     header: 'babl.h',
     install: true,
   )