[vlc-commits] visualization: remove Makefile recursion
Rémi Denis-Courmont
git at videolan.org
Thu Feb 12 07:17:49 CET 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Feb 11 18:21:23 2015 +0200| [92185f0ba8b03303b2fe4b13771d11cda60aa5df] | committer: Rémi Denis-Courmont
visualization: remove Makefile recursion
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=92185f0ba8b03303b2fe4b13771d11cda60aa5df
---
configure.ac | 16 +-------------
modules/Makefile.am | 7 +++----
modules/visualization/.gitignore | 1 -
modules/visualization/Makefile.am | 42 +++++++++++++++++++++++++++++++++++++
modules/visualization/Modules.am | 21 -------------------
5 files changed, 46 insertions(+), 41 deletions(-)
diff --git a/configure.ac b/configure.ac
index 74c6f15..0b03e9f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -699,7 +699,7 @@ AC_CHECK_FUNC(getopt_long,, [
AC_SUBST(GNUGETOPT_LIBS)
AC_CHECK_LIB(m,cos,[
- VLC_ADD_LIBS([x264 goom swscale mpc qt4 x262 x26410b glspectrum smooth],[-lm])
+ VLC_ADD_LIBS([x264 swscale mpc qt4 x262 x26410b glspectrum smooth],[-lm])
LIBM="-lm"
], [
LIBM=""
@@ -3868,8 +3868,6 @@ AS_IF([test "${enable_vsxu}" != "no"],
PKG_CHECK_MODULES(VSXU, libvsxu,
[
VLC_ADD_PLUGIN([vsxu])
- VLC_ADD_CXXFLAGS([vsxu],[$VSXU_CFLAGS])
- VLC_ADD_LIBS([vsxu],[$VSXU_LIBS])
],[
AC_MSG_WARN([${VSXU_PKG_ERRORS}.])
])
@@ -3887,17 +3885,6 @@ AS_IF([test "${enable_atmo}" != no], [
])
])
-dnl
-dnl glSpectrum
-dnl
-AC_ARG_ENABLE(glspectrum,
- [ --enable-glspectrum 3D OpenGL spectrum visualization (default auto)])
-if test "${enable_glspectrum}" != "no" && test "${have_gl}" = "yes"
-then
- VLC_ADD_PLUGIN([glspectrum])
- VLC_ADD_LIBS([glspectrum],[$GL_LIBS])
-fi
-
EXTEND_HELP_STRING([Service Discovery plugins:])
dnl
dnl Bonjour services discovery
@@ -4138,7 +4125,6 @@ AC_CONFIG_FILES([
modules/gui/qt4/Makefile
modules/gui/skins2/Makefile
modules/stream_out/Makefile
- modules/visualization/Makefile
modules/hw/mmal/Makefile
])
diff --git a/modules/Makefile.am b/modules/Makefile.am
index 5956c78..aaa357e 100644
--- a/modules/Makefile.am
+++ b/modules/Makefile.am
@@ -3,15 +3,13 @@ noinst_HEADERS =
check_PROGRAMS =
EXTRA_DIST =
-BASE_SUBDIRS = \
- visualization
EXTRA_SUBDIRS = \
access_output \
stream_out \
hw/mmal
-SUBDIRS = . $(BASE_SUBDIRS)
-DIST_SUBDIRS = . $(BASE_SUBDIRS) $(EXTRA_SUBDIRS)
+SUBDIRS = .
+DIST_SUBDIRS = . $(EXTRA_SUBDIRS)
if ENABLE_SOUT
SUBDIRS += access_output stream_out
endif
@@ -50,6 +48,7 @@ include video_chroma/Makefile.am
include video_filter/Makefile.am
include video_splitter/Makefile.am
include video_output/Makefile.am
+include visualization/Makefile.am
if ENABLE_SOUT
include mux/Makefile.am
endif
diff --git a/modules/visualization/.gitignore b/modules/visualization/.gitignore
deleted file mode 100644
index 08a6d72..0000000
--- a/modules/visualization/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-Makefile.am
diff --git a/modules/visualization/Makefile.am b/modules/visualization/Makefile.am
new file mode 100644
index 0000000..10619e0
--- /dev/null
+++ b/modules/visualization/Makefile.am
@@ -0,0 +1,42 @@
+visudir = $(pluginsdir)/visualization
+visu_LTLIBRARIES =
+
+libglspectrum_plugin_la_SOURCES = \
+ visualization/glspectrum.c \
+ visualization/visual/fft.c visualization/visual/fft.h \
+ visualization/visual/window.c visualization/visual/window.h \
+ visualization/visual/window_presets.h
+libglspectrum_plugin_la_LIBADD = $(GL_LIBS) $(LIBM)
+if HAVE_GL
+visu_LTLIBRARIES += libglspectrum_plugin.la
+endif
+
+libgoom_plugin_la_SOURCES = visualization/goom.c
+libgoom_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(GOOM_CFLAGS)
+libgoom_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(visudir)'
+libgoom_plugin_la_LIBADD = $(GOOM_LIBS) $(LIBM)
+EXTRA_LTLIBRARIES += libgoom_plugin.la
+visu_LTLIBRARIES += $(LTLIBgoom)
+
+libprojectm_plugin_la_SOURCES = visualization/projectm.cpp
+libprojectm_plugin_la_CXXFLAGS = $(AM_CXXFLAGS) $(PROJECTM_CFLAGS)
+libprojectm_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(visudir)'
+libprojectm_plugin_la_LIBADD = $(PROJECTM_LIBS) $(LIBPTHREAD)
+EXTRA_LTLIBRARIES += libprojectm_plugin.la
+visu_LTLIBRARIES += $(LTLIBprojectm)
+
+libvisual_plugin_la_SOURCES = \
+ visualization/visual/visual.c visualization/visual/visual.h \
+ visualization/visual/effects.c \
+ visualization/visual/fft.c visualization/visual/fft.h \
+ visualization/visual/window.c visualization/visual/window.h \
+ visualization/visual/window_presets.h
+libvisual_plugin_la_LIBADD = $(LIBM)
+visu_LTLIBRARIES += libvisual_plugin.la
+
+libvsxu_plugin_la_SOURCES = visualization/vsxu.cpp visualization/cyclic_buffer.h
+libvsxu_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(VSXU_CFLAGS)
+libvsxu_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(visudir)'
+libvsxu_plugin_la_LIBADD = $(VSXU_LIBS) $(LIBM)
+EXTRA_LTLIBRARIES += libvsxu_plugin.la
+visu_LTLIBRARIES += $(LTLIBvsxu)
diff --git a/modules/visualization/Modules.am b/modules/visualization/Modules.am
deleted file mode 100644
index ecea82f..0000000
--- a/modules/visualization/Modules.am
+++ /dev/null
@@ -1,21 +0,0 @@
-SOURCES_goom = goom.c
-
-libprojectm_plugin_la_SOURCES = projectm.cpp
-libprojectm_plugin_la_CXXFLAGS = $(AM_CXXFLAGS) $(PROJECTM_CFLAGS)
-libprojectm_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(visualizationdir)'
-libprojectm_plugin_la_LIBADD = $(PROJECTM_LIBS) $(LIBPTHREAD)
-EXTRA_LTLIBRARIES += libprojectm_plugin.la
-visualization_LTLIBRARIES += $(LTLIBprojectm)
-
-libvisual_plugin_la_SOURCES = \
- visual/visual.c visual/visual.h \
- visual/effects.c \
- visual/fft.c visual/fft.h \
- visual/window.c visual/window.h visual/window_presets.h
-libvisual_plugin_la_LIBADD = $(LIBM)
-visualization_LTLIBRARIES += libvisual_plugin.la
-
-SOURCES_vsxu = vsxu.cpp cyclic_buffer.h
-
-SOURCES_glspectrum = glspectrum.c visual/fft.c visual/fft.h \
- visual/window.c visual/window.h visual/window_presets.h
More information about the vlc-commits
mailing list