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



commit cc256b8311b544d2d047ddadbba4c16035e658e0
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

 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..83fd7aa3 100644
--- a/src/goa/meson.build
+++ b/src/goa/meson.build
@@ -1,4 +1,12 @@
 goa_inc = include_directories('.')
+
+libgoa_headers = 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 += enum_headers
 
 install_headers(
-  headers,
+  libgoa_headers,
   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,
     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]