summaryrefslogtreecommitdiff
path: root/glib
diff options
context:
space:
mode:
authorFabrice Fontaine <fontaine.fabrice@gmail.com>2022-01-24 09:28:20 +0100
committerAlbert Astals Cid <tsdgeos@yahoo.es>2022-01-31 19:20:53 +0000
commite9d5731ba254f35e2d94b628c51e48c50a945271 (patch)
treeaa4a655e8e302bb41ac3cfa3b4f1a744c77e263b /glib
parentb3f93644de4941bdbd532a7d8f82cd652dfbeadf (diff)
glib/CMakeLists.txt: allow the user to configure INTROSPECTION_COMPILER_ARGS
Allow the user to add its own parameters such as --includedir=$(STAGING_DIR)/usr/share/gir-1.0 to INTROSPECTION_COMPILER_ARGS to avoid the following build failure when cross-compiling with buildroot: [ 98%] Generating Poppler-0.18.typelib Could not find GIR file 'GObject-2.0.gir'; check XDG_DATA_DIRS or use --includedir error parsing file /home/giuliobenetti/autobuild/run/instance-1/output-1/build/poppler-21.12.0/glib/Poppler-0.18.gir: Failed to parse included gir GObject-2.0 If the above error message is about missing .so libraries, then setting up GIR_EXTRA_LIBS_PATH in the .mk file should help. Typically like this: PKG_MAKE_ENV += GIR_EXTRA_LIBS_PATH="$(@D)/.libs" Fixes: - http://autobuild.buildroot.org/results/d2f50aa56410c2fff8a0538c57038104906e747e Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Diffstat (limited to 'glib')
-rw-r--r--glib/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/CMakeLists.txt b/glib/CMakeLists.txt
index 7510e69e..f5130e3c 100644
--- a/glib/CMakeLists.txt
+++ b/glib/CMakeLists.txt
@@ -119,7 +119,7 @@ if (HAVE_INTROSPECTION AND BUILD_SHARED_LIBS)
# General gir: Reset object-list for introspection & load tool args
set(INTROSPECTION_GIRS)
set(INTROSPECTION_SCANNER_ARGS "--add-include-path=${CMAKE_CURRENT_SOURCE_DIR}" "--warn-all")
- set(INTROSPECTION_COMPILER_ARGS "--includedir=${CMAKE_CURRENT_SOURCE_DIR}")
+ set(INTROSPECTION_COMPILER_ARGS ${INTROSPECTION_COMPILER_ARGS} "--includedir=${CMAKE_CURRENT_SOURCE_DIR}")
# Poppler: Assign package to gir & export keys
set(Poppler_0_18_gir "poppler-glib")