summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2021-09-07 15:31:19 +0200
committerBastien Nocera <hadess@hadess.net>2021-09-07 17:20:48 +0200
commit5f4d16ad4d525431092dc47492ff3ee982b4d518 (patch)
tree340549846c9a08608c61be1764383bbdfdb3c943
parent3079262bc3531a7acb8cabc6a7fb233620ef50f4 (diff)
build: Fix idevice support always being off
-rw-r--r--meson.build1
-rw-r--r--src/linux/meson.build3
2 files changed, 3 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 122de7c..2f578b5 100644
--- a/meson.build
+++ b/meson.build
@@ -79,6 +79,7 @@ if os_backend == 'linux'
plist_dep = dependency(libplist)
endif
endif
+ cdata.set10('HAVE_IDEVICE', true)
endif
historydir = get_option('historydir')
diff --git a/src/linux/meson.build b/src/linux/meson.build
index 60478a9..f50be42 100644
--- a/src/linux/meson.build
+++ b/src/linux/meson.build
@@ -21,8 +21,9 @@ upshared += { 'linux': static_library('upshared',
'up-backend.c',
'up-backend-linux-private.h',
'up-native.c',
+ idevice_sources
],
c_args: [ '-DG_LOG_DOMAIN="UPower-Linux"' ],
- dependencies: [ gudev_dep, upowerd_deps ],
+ dependencies: [ gudev_dep, upowerd_deps, idevice_dep ],
build_by_default: false,
)}