[gnome-settings-daemon] power build: fix cross build
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power build: fix cross build
- Date: Wed, 14 Nov 2018 13:14:48 +0000 (UTC)
commit f3eb300f5a563f620e9328c9aab7d097ee1261eb
Author: Rasmus Thomsen <cogitri exherbo org>
Date: Fri Sep 21 19:40:09 2018 +0200
power build: fix cross build
plugins/power/meson.build | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/plugins/power/meson.build b/plugins/power/meson.build
index 0158a466..7b0e0ade 100644
--- a/plugins/power/meson.build
+++ b/plugins/power/meson.build
@@ -18,6 +18,13 @@ deps = plugins_deps + [
dependency('xext')
]
+# required for gsd-power-enums-update, which we have
+# to compile natively
+native_deps = [
+ dependency('glib-2.0', native: true),
+ dependency('gio-2.0', native:true)
+]
+
if enable_gudev
deps += gudev_dep
endif
@@ -55,8 +62,9 @@ gsd_power_enums_update = executable(
'gsd-power-enums-update',
sources,
include_directories: top_inc,
- dependencies: deps,
- c_args: cflags
+ dependencies: native_deps,
+ c_args: cflags,
+ native: true
)
if enable_gudev
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]