Unverified Commit ad7280fb authored by maxice8's avatar maxice8

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."
   ^~~~~
parent c978e651
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment