build: Fix idevice support always being off

This commit is contained in:
Bastien Nocera 2021-09-07 15:31:19 +02:00
parent 3079262bc3
commit 5f4d16ad4d
2 changed files with 3 additions and 1 deletions

View file

@ -79,6 +79,7 @@ if os_backend == 'linux'
plist_dep = dependency(libplist)
endif
endif
cdata.set10('HAVE_IDEVICE', true)
endif
historydir = get_option('historydir')

View file

@ -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,
)}