[gnome-online-accounts/wip/rishi/meson-polish: 6/15] build: Namespace the variable for the libgoa-1.0.so headers



commit 900b512f52a9706ce800a3b4a32eb8e636f85194
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Dec 19 16:58:31 2019 +0100

    build: Namespace the variable for the libgoa-1.0.so headers
    
    https://gitlab.gnome.org/GNOME/gnome-online-accounts/merge_requests/41

 src/goa/meson.build | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/src/goa/meson.build b/src/goa/meson.build
index 3eb5a85f..7d6e8559 100644
--- a/src/goa/meson.build
+++ b/src/goa/meson.build
@@ -1,4 +1,12 @@
 goa_inc = include_directories('.')
+
+libgoa_headers_static = files(
+  'goaclient.h',
+  'goaerror.h',
+  'goa.h',
+  'goaversion.h'
+)
+
 libgoa_headers_built = []
 
 libgoa_sources = files(
@@ -9,15 +17,10 @@ libgoa_sources = files(
 
 enum_headers = files('goaenums.h')
 
-headers = enum_headers + files(
-  'goaclient.h',
-  'goaerror.h',
-  'goa.h',
-  'goaversion.h'
-)
+libgoa_headers_static += enum_headers
 
 install_headers(
-  headers,
+  libgoa_headers_static,
   install_dir: join_paths(goa_pkgincludedir, goa_name)
 )
 
@@ -112,7 +115,7 @@ pkg.generate(
 if enable_introspection
   libgoa_gir = gnome.generate_gir(
     libgoa,
-    sources: libgoa_sources + headers,
+    sources: libgoa_sources + libgoa_headers_static,
     includes: 'Gio-2.0',
     nsversion: goa_api_version,
     namespace: goa_ns,


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