[template-glib: 1/2] build: pass -DTMPL_GLIB_COMPILATION to gir compiler
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [template-glib: 1/2] build: pass -DTMPL_GLIB_COMPILATION to gir compiler
- Date: Thu, 7 Feb 2019 02:09:51 +0000 (UTC)
commit ad7280fb3b982fda285b9e9989bebe72f0f0a60b
Author: maxice8 <thinkabit ukim gmail com>
Date: Thu Feb 7 00:02:43 2019 -0200
build: pass -DTMPL_GLIB_COMPILATION to gir compiler
Fixes Cross compilation of gir.
ror "Only <tmpl-glib.h> can be included directly."
^~~~~
In file included from /builddir/template-glib-3.30.0/build/g-ir-cpp-1z28z8y8.c:7:
/builddir/template-glib-3.30.0/src/tmpl-error.h:20:3: error: #error "Only <tmpl-glib.h> can be included
directly."
# error "Only <tmpl-glib.h> can be included directly."
^~~~~
In file included from /builddir/template-glib-3.30.0/src/tmpl-error.h:28,
from /builddir/template-glib-3.30.0/build/g-ir-cpp-1z28z8y8.c:7:
/builddir/template-glib-3.30.0/src/tmpl-version-macros.h:23:3: error: #error "Only <tmpl-glib.h> can be
included directly."
# error "Only <tmpl-glib.h> can be included directly."
^~~~~
In file included from /builddir/template-glib-3.30.0/build/g-ir-cpp-1z28z8y8.c:8:
/builddir/template-glib-3.30.0/src/tmpl-expr-types.h:20:3: error: #error "Only <tmpl-glib.h> can be
included directly."
# error "Only <tmpl-glib.h> can be included directly."
^~~~~
In file included from /builddir/template-glib-3.30.0/build/g-ir-cpp-1z28z8y8.c:9:
/builddir/template-glib-3.30.0/src/tmpl-expr.h:20:3: error: #error "Only <tmpl-glib.h> can be included
directly."
# error "Only <tmpl-glib.h> can be included directly."
^~~~~
In file included from /builddir/template-glib-3.30.0/src/tmpl-expr.h:28,
from /builddir/template-glib-3.30.0/build/g-ir-cpp-1z28z8y8.c:9:
/builddir/template-glib-3.30.0/src/tmpl-expr-types.h:20:3: error: #error "Only <tmpl-glib.h> can be
included directly."
# error "Only <tmpl-glib.h> can be included directly."
^~~~~
In file included from /builddir/template-glib-3.30.0/build/g-ir-cpp-1z28z8y8.c:11:
/builddir/template-glib-3.30.0/src/tmpl-scope.h:20:3: error: #error "Only <tmpl-glib.h> can be included
directly."
# error "Only <tmpl-glib.h> can be included directly."
^~~~~
In file included from /builddir/template-glib-3.30.0/build/g-ir-cpp-1z28z8y8.c:12:
/builddir/template-glib-3.30.0/src/tmpl-symbol.h:20:3: error: #error "Only <tmpl-glib.h> can be included
directly."
# error "Only <tmpl-glib.h> can be included directly."
^~~~~
In file included from /builddir/template-glib-3.30.0/build/g-ir-cpp-1z28z8y8.c:13:
/builddir/template-glib-3.30.0/src/tmpl-template-locator.h:20:3: error: #error "Only <tmpl-glib.h> can be
included directly."
# error "Only <tmpl-glib.h> can be included directly."
^~~~~
In file included from /builddir/template-glib-3.30.0/build/g-ir-cpp-1z28z8y8.c:14:
/builddir/template-glib-3.30.0/src/tmpl-template.h:20:3: error: #error "Only <tmpl-glib.h> can be
included directly."
# error "Only <tmpl-glib.h> can be included directly."
^~~~~
src/meson.build | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/meson.build b/src/meson.build
index 08d325b..5adef72 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -174,7 +174,10 @@ if get_option('with_introspection')
install: true,
install_dir_gir: girdir,
install_dir_typelib: typelibdir,
- extra_args: [ '--c-include=tmpl-glib.h' ],
+ extra_args: [
+ '--c-include=tmpl-glib.h',
+ '-DTMPL_GLIB_COMPILATION',
+ ],
)
if get_option('with_vapi')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]