diff options
| author | 2025-05-08 12:48:07 -0400 | |
|---|---|---|
| committer | 2025-05-08 12:48:07 -0400 | |
| commit | 5c059c0167f468ed4c98592b55a312143bd94b22 (patch) | |
| tree | 3f0e1ac455c47f95346766613bb250a7af100f68 /src/cache | |
| parent | 8404c1bad9d4ac448b4b051f29446ca2f24c4ef8 (diff) | |
| download | camu-5c059c0167f468ed4c98592b55a312143bd94b22.tar.gz camu-5c059c0167f468ed4c98592b55a312143bd94b22.tar.bz2 camu-5c059c0167f468ed4c98592b55a312143bd94b22.zip | |
Cleanup build
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/cache')
| -rw-r--r-- | src/cache/meson.build | 32 |
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) |