summaryrefslogtreecommitdiff
path: root/src/cache
diff options
context:
space:
mode:
Diffstat (limited to 'src/cache')
-rw-r--r--src/cache/meson.build32
1 files changed, 18 insertions, 14 deletions
diff --git a/src/cache/meson.build b/src/cache/meson.build
index 9c9af7b..1a198eb 100644
--- a/src/cache/meson.build
+++ b/src/cache/meson.build
@@ -19,23 +19,27 @@ if naunet_has_curl
endif
cache_have_cdio = false
-libcdio_paranoia = dependency('libcdio_paranoia', required: false, allow_fallback: true)
-libcdio_cdda = dependency('libcdio_cdda', required: false, allow_fallback: true)
-if libcdio_paranoia.found() and libcdio_cdda.found()
- cache_src += ['handlers/cdio.c']
- cache_deps += [libcdio_paranoia, libcdio_cdda]
- cache_args += ['-DCACHE_HAVE_CDIO']
- cache_have_cdio = true
+if is_linux
+ libcdio_paranoia = dependency('libcdio_paranoia', required: false, allow_fallback: true)
+ libcdio_cdda = dependency('libcdio_cdda', required: false, allow_fallback: true)
+ if libcdio_paranoia.found() and libcdio_cdda.found()
+ cache_src += ['handlers/cdio.c']
+ cache_deps += [libcdio_paranoia, libcdio_cdda]
+ cache_args += ['-DCACHE_HAVE_CDIO']
+ cache_have_cdio = true
+ endif
endif
cache_have_libdvd = false
-libdvdcss = dependency('libdvdcss', required: false, allow_fallback: true)
-libdvdread = dependency('dvdread', required: false, allow_fallback: true)
-libdvdnav = dependency('dvdnav', required: false, allow_fallback: true)
-if libdvdcss.found() and libdvdread.found() and libdvdnav.found()
- cache_deps += [libdvdcss, libdvdread, libdvdnav]
- cache_args += ['-DCACHE_HAVE_LIBDVD']
- cache_have_libdvd = true
+if is_linux
+ libdvdcss = dependency('libdvdcss', required: false, allow_fallback: true)
+ libdvdread = dependency('dvdread', required: false, allow_fallback: true)
+ libdvdnav = dependency('dvdnav', required: false, allow_fallback: true)
+ if libdvdcss.found() and libdvdread.found() and libdvdnav.found()
+ cache_deps += [libdvdcss, libdvdread, libdvdnav]
+ cache_args += ['-DCACHE_HAVE_LIBDVD']
+ cache_have_libdvd = true
+ endif
endif
cache = declare_dependency(sources: cache_src, dependencies: cache_deps, compile_args: cache_args)