[gobject-introspection/wip/meson: 1/14] meson: Fix include dir for gir and typelib gen
- From: Nirbheek Chauhan <nirbheekc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/wip/meson: 1/14] meson: Fix include dir for gir and typelib gen
- Date: Thu, 30 Nov 2017 17:13:47 +0000 (UTC)
commit 28841d91a820602a3aa6865c3dd3c81926ea280b
Author: Danny 'Guru' Forghieri <daniele forghieri gmail com>
Date: Sun Oct 29 17:04:06 2017 +0100
meson: Fix include dir for gir and typelib gen
Both the source and the build dir are needed because some files are
read from the source and others are read after they are built.
Signed-off-by: Nirbheek Chauhan <nirbheek centricular com>
gir/meson.build | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gir/meson.build b/gir/meson.build
index ff81284..8b6a3d7 100644
--- a/gir/meson.build
+++ b/gir/meson.build
@@ -43,6 +43,8 @@ scanner_command = [
'--output=@OUTPUT@',
'--no-libtool',
'--reparse-validate',
+ '--add-include-path', join_paths(meson.current_build_dir()),
+ '--add-include-path', join_paths(meson.current_source_dir()),
]
# Take a glob and print to newlines
@@ -359,7 +361,10 @@ foreach gir : gir_files
custom_target('generate-typelib-@0@'.format(gir).underscorify(),
input: gir,
output: '@BASENAME@.typelib',
- command: [gircompiler, '-o', '@OUTPUT@', '@INPUT@'],
+ command: [gircompiler, '-o', '@OUTPUT@', '@INPUT@',
+ '--includedir', meson.current_build_dir(),
+ '--includedir', meson.current_source_dir(),
+ ],
install: true,
install_dir: typelibdir,
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]