[vlc-commits] src: factor some common libvlc sources
Rémi Denis-Courmont
git at videolan.org
Tue Sep 20 18:16:07 CEST 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Sep 20 18:58:24 2016 +0300| [f1e932ff490c2cf16b8ba1ed5f334f26de6437a2] | committer: Rémi Denis-Courmont
src: factor some common libvlc sources
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f1e932ff490c2cf16b8ba1ed5f334f26de6437a2
---
src/Makefile.am | 83 ++++++++++++++++++++++-----------------------------------
1 file changed, 32 insertions(+), 51 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index 4533971..6020d0c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -347,46 +347,7 @@ libvlccore_la_SOURCES = \
misc/text_style.c \
misc/subpicture.c \
misc/subpicture.h
-if HAVE_DARWIN
-libvlccore_la_SOURCES += \
- darwin/dirs.c \
- posix/filesystem.c \
- posix/plugin.c \
- darwin/thread.c \
- posix/timer.c \
- darwin/specific.c \
- posix/rand.c \
- darwin/error.c \
- darwin/netconf.c
-else
-if HAVE_ANDROID
-libvlccore_la_SOURCES += \
- linux/cpu.c \
- linux/dirs.c \
- linux/thread.c \
- android/thread.c \
- android/error.c \
- posix/filesystem.c \
- posix/plugin.c \
- posix/timer.c \
- android/specific.c \
- posix/rand.c
-else
-if HAVE_LINUX
-libvlccore_la_SOURCES += \
- linux/cpu.c \
- linux/dirs.c \
- posix/dirs.c \
- posix/error.c \
- posix/filesystem.c \
- posix/netconf.c \
- posix/plugin.c \
- linux/thread.c \
- posix/thread.c \
- posix/timer.c \
- posix/specific.c \
- posix/rand.c
-else
+
if HAVE_WIN32
libvlccore_la_SOURCES += \
win32/dirs.c \
@@ -394,37 +355,57 @@ libvlccore_la_SOURCES += \
win32/filesystem.c \
win32/netconf.c \
win32/plugin.c \
- win32/thread.c \
+ win32/rand.c \
win32/specific.c \
- win32/winsock.c \
- win32/rand.c
+ win32/thread.c \
+ win32/winsock.c
else
if HAVE_OS2
libvlccore_la_SOURCES += \
- os2/getaddrinfo.c \
os2/dirs.c \
darwin/error.c \
os2/filesystem.c \
+ os2/getaddrinfo.c \
os2/netconf.c \
os2/plugin.c \
- os2/thread.c \
os2/specific.c \
- os2/rand.c
+ os2/rand.c \
+ os2/thread.c
+else
+libvlccore_la_SOURCES += \
+ posix/filesystem.c \
+ posix/plugin.c \
+ posix/rand.c \
+ posix/timer.c
+if HAVE_ANDROID
+libvlccore_la_SOURCES += \
+ android/error.c \
+ android/specific.c \
+ android/thread.c
+else
+if HAVE_DARWIN
+libvlccore_la_SOURCES += \
+ darwin/dirs.c \
+ darwin/error.c \
+ darwin/netconf.c \
+ darwin/specific.c \
+ darwin/thread.c
else
libvlccore_la_SOURCES += \
posix/dirs.c \
posix/error.c \
- posix/filesystem.c \
posix/netconf.c \
- posix/thread.c \
- posix/timer.c \
- posix/plugin.c \
posix/specific.c \
- posix/rand.c
+ posix/thread.c
endif
endif
endif
endif
+if HAVE_LINUX
+libvlccore_la_SOURCES += \
+ linux/cpu.c \
+ linux/dirs.c \
+ linux/thread.c
endif
if BUILD_HTTPD
More information about the vlc-commits
mailing list