[gnome-online-accounts/wip/rishi/meson-polish: 4/15] build: Use a separate variable for the built headers
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/wip/rishi/meson-polish: 4/15] build: Use a separate variable for the built headers
- Date: Sat, 4 Jan 2020 22:28:57 +0000 (UTC)
commit b18b21346b9ebc3849e9c868d0ebb27e7d680e24
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Dec 18 17:01:26 2019 +0100
build: Use a separate variable for the built headers
https://gitlab.gnome.org/GNOME/gnome-online-accounts/merge_requests/41
src/goa/meson.build | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/src/goa/meson.build b/src/goa/meson.build
index 87fae82c..f3d340f7 100644
--- a/src/goa/meson.build
+++ b/src/goa/meson.build
@@ -1,4 +1,5 @@
goa_inc = include_directories('.')
+libgoa_headers_built = []
enum_headers = files('goaenums.h')
@@ -29,6 +30,8 @@ goaconfig_h = configure_file(
install_dir: join_paths(goa_pkglibdir, 'include')
)
+libgoa_headers_built += goaconfig_h
+
dbus = 'goa-generated'
dbus_sources = gnome.gdbus_codegen(
@@ -43,6 +46,8 @@ dbus_sources = gnome.gdbus_codegen(
install_dir: join_paths(goa_pkgincludedir, goa_name)
)
+libgoa_headers_built += dbus_sources[1]
+
enum = 'goaenumtypes'
enum_sources = gnome.mkenums(
@@ -54,6 +59,8 @@ enum_sources = gnome.mkenums(
install_dir: join_paths(goa_pkgincludedir, goa_name)
)
+libgoa_headers_built += enum_sources[1]
+
sources = [goaconfig_h] + dbus_sources + enum_sources + files(
'goaclient.c',
'goaerror.c',
@@ -81,7 +88,7 @@ libgoa = shared_library(
)
libgoa_dep = declare_dependency(
- sources: [goaconfig_h, dbus_sources[1], enum_sources[1]],
+ sources: libgoa_headers_built,
include_directories: goa_inc,
dependencies: deps,
link_with: libgoa
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]