summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaxice8 <thinkabit.ukim@gmail.com>2019-02-04 17:58:09 -0200
committerRichard Hughes <richard@hughsie.com>2019-02-04 20:34:54 +0000
commit40899d80ddc0ec5c7dccbd7e19222ace97607368 (patch)
tree0d93ae3ccdd636859f27d9c965e002e5768ad9f6
parent3be18130b3546af817e3d958bad68969c3a01886 (diff)
downloadcolord-40899d80ddc0ec5c7dccbd7e19222ace97607368.tar.gz
lib/color{d,hug}/meson.build: pass -DCD_COMPILATION to gir compiler
Allows compilation when cross building, as Void Linux is doing so. Other packages that also do it: libgusb -> -DGUSB_COMPILATION atk -> -DATK_COMPILATION appstream-glib -> -DAS_COMPILATION
-rw-r--r--lib/colord/meson.build1
-rw-r--r--lib/colorhug/meson.build3
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/colord/meson.build b/lib/colord/meson.build
index a46ca18..61f0518 100644
--- a/lib/colord/meson.build
+++ b/lib/colord/meson.build
@@ -186,6 +186,7 @@ libcolord_girtarget = gnome.generate_gir(colord,
export_packages : 'colord',
extra_args : [
'--c-include=colord.h',
+ '-DCD_COMPILATION',
],
link_with : colordprivate,
dependencies : [
diff --git a/lib/colorhug/meson.build b/lib/colorhug/meson.build
index e555673..ba59f7d 100644
--- a/lib/colorhug/meson.build
+++ b/lib/colorhug/meson.build
@@ -101,6 +101,9 @@ libcolorhug_gir = gnome.generate_gir(colorhug,
'GUsb-1.0',
libcolord_gir,
],
+ extra_args : [
+ '-DCD_COMPILATION',
+ ],
install : true
)