[gnome-online-accounts/wip/rishi/meson-polish: 3/7] build: Use a separate variable for the built headers



commit fdec8b40d90fca3326d06e211d685a07e6ee671e
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Dec 20 17:35:40 2019 +0100

    build: Use a separate variable for the built headers
    
    https://gitlab.gnome.org/GNOME/gnome-online-accounts/merge_requests/41

 src/goabackend/meson.build | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/goabackend/meson.build b/src/goabackend/meson.build
index 3ba7d378..9e10bd2c 100644
--- a/src/goabackend/meson.build
+++ b/src/goabackend/meson.build
@@ -1,4 +1,5 @@
 goabackend_inc = include_directories('.')
+libgoa_backend_headers_built = []
 
 enum_headers = files('goabackendenums.h')
 
@@ -23,6 +24,8 @@ enum_sources = gnome.mkenums(
   install_dir: join_paths(goa_pkgincludedir, 'goabackend')
 )
 
+libgoa_backend_headers_built += enum_sources[1]
+
 sources = enum_sources + files(
   'goaoauth2provider.c',
   'goaoauthprovider.c',
@@ -120,7 +123,7 @@ libgoa_backend = shared_library(
 )
 
 libgoa_backend_dep = declare_dependency(
-  sources: enum_sources[1],
+  sources: libgoa_backend_headers_built,
   include_directories: goabackend_inc,
   dependencies: [gtk_dep, libgoa_dep],
   link_with: libgoa_backend
@@ -149,7 +152,7 @@ deps = [
 
 libgoa_web_extension = shared_module(
   'goawebextension',
-  sources + [goaconfig_h, enum_sources[1]],
+  sources + [goaconfig_h, libgoa_backend_headers_built],
   include_directories: common_incs + [goa_inc],
   dependencies: deps,
   c_args: cflags,


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