Commit 14153558 authored by Thomas Guillem's avatar Thomas Guillem Committed by Hugo Beauzée-Luyssen

fs: Android doesn't have DeviceLister

Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent ca1bfa69
......@@ -174,10 +174,12 @@ libmedialibrary_la_SOURCES += \
src/filesystem/unix/Device.cpp \
$(NULL)
if HAVE_LINUX
if !HAVE_ANDROID
libmedialibrary_la_SOURCES += \
src/filesystem/unix/DeviceLister.cpp \
$(NULL)
endif
endif
if HAVE_DARWIN
libmedialibrary_macos_la_OBJCXXFLAGS = $(libmedialibrary_la_CPPFLAGS)
libmedialibrary_macos_la_SOURCES = \
......
......@@ -34,7 +34,7 @@
medialibrary::DeviceListerPtr medialibrary::factory::createDeviceLister()
{
#if defined(__linux__) || defined(_WIN32)
#if (defined(__linux__) && !defined(__ANDROID__)) || defined(_WIN32)
return std::make_shared<fs::DeviceLister>();
#endif
return nullptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment