gui: remove Makefile recursion
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 11 Feb 2015 16:10:34 +0000 (18:10 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 12 Feb 2015 06:17:41 +0000 (08:17 +0200)
configure.ac
modules/Makefile.am
modules/gui/.gitignore [deleted file]
modules/gui/Makefile.am [new file with mode: 0644]
modules/gui/Modules.am [deleted file]
modules/gui/ios_dialog_provider/.gitignore [new file with mode: 0644]
modules/gui/macosx/.gitignore [new file with mode: 0644]
modules/gui/macosx_dialog_provider/.gitignore [new file with mode: 0644]
modules/gui/minimal_macosx/.gitignore [new file with mode: 0644]
modules/gui/skins2/.gitignore [new file with mode: 0644]

index 9e15cb9..74c6f15 100644 (file)
@@ -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 ncurses glspectrum smooth],[-lm])
+  VLC_ADD_LIBS([x264 goom swscale mpc qt4 x262 x26410b glspectrum smooth],[-lm])
   LIBM="-lm"
 ], [
   LIBM=""
@@ -3805,11 +3805,10 @@ dnl  ncurses module
 dnl
 AC_ARG_ENABLE(ncurses,
 [AS_HELP_STRING([--disable-ncurses],[ncurses text-based interface (default auto)])])
+have_ncurses="no"
 AS_IF([test "${enable_ncurses}" != "no"] ,[
   PKG_CHECK_MODULES([NCURSES], [ncursesw], [
-    VLC_ADD_PLUGIN([ncurses])
-    VLC_ADD_CFLAGS([ncurses],[${NCURSES_CFLAGS}])
-    VLC_ADD_LIBS([ncurses],[${NCURSES_LIBS} ${LIBPTHREAD}])
+    have_ncurses="yes"
     ALIASES="${ALIASES} nvlc"
   ], [
     AS_IF([test -n "${enable_ncurses}"], [
@@ -3817,6 +3816,7 @@ AS_IF([test "${enable_ncurses}" != "no"] ,[
     ])
   ])
 ])
+AM_CONDITIONAL([HAVE_NCURSES], [test "${have_ncurses}" = "yes"])
 
 dnl
 dnl  Lirc plugin
@@ -4131,7 +4131,6 @@ AC_CONFIG_FILES([
   bin/Makefile
   test/Makefile
   modules/access_output/Makefile
-  modules/gui/Makefile
   modules/gui/ios_dialog_provider/Makefile
   modules/gui/macosx/Makefile
   modules/gui/minimal_macosx/Makefile
index c21c60b..5956c78 100644 (file)
@@ -4,7 +4,6 @@ check_PROGRAMS =
 EXTRA_DIST =
 
 BASE_SUBDIRS = \
-       gui \
        visualization
 EXTRA_SUBDIRS = \
        access_output \
@@ -36,6 +35,7 @@ include audio_output/Makefile.am
 include codec/Makefile.am
 include control/Makefile.am
 include demux/Makefile.am
+include gui/Makefile.am
 include hw/vdpau/Makefile.am
 include logger/Makefile.am
 include lua/Makefile.am
diff --git a/modules/gui/.gitignore b/modules/gui/.gitignore
deleted file mode 100644 (file)
index 08a6d72..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Makefile.am
diff --git a/modules/gui/Makefile.am b/modules/gui/Makefile.am
new file mode 100644 (file)
index 0000000..6ccc850
--- /dev/null
@@ -0,0 +1,32 @@
+guidir = $(pluginsdir)/gui
+gui_LTLIBRARIES =
+
+DIST_SUBDIRS += gui/macosx gui/minimal_macosx gui/qt4 gui/skins2 gui/macosx_dialog_provider gui/ios_dialog_provider
+
+if ENABLE_MACOSX_UI
+SUBDIRS += gui/macosx
+endif
+if ENABLE_MACOSX_DIALOG_PROVIDER
+SUBDIRS += gui/macosx_dialog_provider
+endif
+if HAVE_IOS
+SUBDIRS += gui/ios_dialog_provider
+endif
+if ENABLE_MINIMAL_MACOSX
+SUBDIRS += gui/minimal_macosx
+endif
+if ENABLE_QT4
+SUBDIRS += gui/qt4
+endif
+if BUILD_SKINS
+SUBDIRS += gui/skins2
+endif
+
+libncurses_plugin_la_SOURCES = gui/ncurses.c
+libncurses_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(NCURSES_CFLAGS)
+libncurses_plugin_la_LIBADD = $(NCURSES_LIBS) $(LIBPTHREAD) $(LIBM)
+if HAVE_NCURSES
+gui_LTLIBRARIES += libncurses_plugin.la
+endif
+
+EXTRA_DIST += gui/eject.c
diff --git a/modules/gui/Modules.am b/modules/gui/Modules.am
deleted file mode 100644 (file)
index 2787352..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-DIST_SUBDIRS = macosx minimal_macosx qt4 skins2 macosx_dialog_provider ios_dialog_provider
-SUBDIRS =
-
-if ENABLE_MACOSX_UI
-SUBDIRS += macosx
-endif
-if ENABLE_MACOSX_DIALOG_PROVIDER
-SUBDIRS += macosx_dialog_provider
-endif
-if HAVE_IOS
-SUBDIRS += ios_dialog_provider
-endif
-if ENABLE_MINIMAL_MACOSX
-SUBDIRS += minimal_macosx
-endif
-if ENABLE_QT4
-SUBDIRS += qt4
-endif
-if BUILD_SKINS
-SUBDIRS += skins2
-endif
-
-SOURCES_ncurses = ncurses.c
-EXTRA_DIST += eject.c
diff --git a/modules/gui/ios_dialog_provider/.gitignore b/modules/gui/ios_dialog_provider/.gitignore
new file mode 100644 (file)
index 0000000..6ccc850
--- /dev/null
@@ -0,0 +1,32 @@
+guidir = $(pluginsdir)/gui
+gui_LTLIBRARIES =
+
+DIST_SUBDIRS += gui/macosx gui/minimal_macosx gui/qt4 gui/skins2 gui/macosx_dialog_provider gui/ios_dialog_provider
+
+if ENABLE_MACOSX_UI
+SUBDIRS += gui/macosx
+endif
+if ENABLE_MACOSX_DIALOG_PROVIDER
+SUBDIRS += gui/macosx_dialog_provider
+endif
+if HAVE_IOS
+SUBDIRS += gui/ios_dialog_provider
+endif
+if ENABLE_MINIMAL_MACOSX
+SUBDIRS += gui/minimal_macosx
+endif
+if ENABLE_QT4
+SUBDIRS += gui/qt4
+endif
+if BUILD_SKINS
+SUBDIRS += gui/skins2
+endif
+
+libncurses_plugin_la_SOURCES = gui/ncurses.c
+libncurses_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(NCURSES_CFLAGS)
+libncurses_plugin_la_LIBADD = $(NCURSES_LIBS) $(LIBPTHREAD) $(LIBM)
+if HAVE_NCURSES
+gui_LTLIBRARIES += libncurses_plugin.la
+endif
+
+EXTRA_DIST += gui/eject.c
diff --git a/modules/gui/macosx/.gitignore b/modules/gui/macosx/.gitignore
new file mode 100644 (file)
index 0000000..6ccc850
--- /dev/null
@@ -0,0 +1,32 @@
+guidir = $(pluginsdir)/gui
+gui_LTLIBRARIES =
+
+DIST_SUBDIRS += gui/macosx gui/minimal_macosx gui/qt4 gui/skins2 gui/macosx_dialog_provider gui/ios_dialog_provider
+
+if ENABLE_MACOSX_UI
+SUBDIRS += gui/macosx
+endif
+if ENABLE_MACOSX_DIALOG_PROVIDER
+SUBDIRS += gui/macosx_dialog_provider
+endif
+if HAVE_IOS
+SUBDIRS += gui/ios_dialog_provider
+endif
+if ENABLE_MINIMAL_MACOSX
+SUBDIRS += gui/minimal_macosx
+endif
+if ENABLE_QT4
+SUBDIRS += gui/qt4
+endif
+if BUILD_SKINS
+SUBDIRS += gui/skins2
+endif
+
+libncurses_plugin_la_SOURCES = gui/ncurses.c
+libncurses_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(NCURSES_CFLAGS)
+libncurses_plugin_la_LIBADD = $(NCURSES_LIBS) $(LIBPTHREAD) $(LIBM)
+if HAVE_NCURSES
+gui_LTLIBRARIES += libncurses_plugin.la
+endif
+
+EXTRA_DIST += gui/eject.c
diff --git a/modules/gui/macosx_dialog_provider/.gitignore b/modules/gui/macosx_dialog_provider/.gitignore
new file mode 100644 (file)
index 0000000..6ccc850
--- /dev/null
@@ -0,0 +1,32 @@
+guidir = $(pluginsdir)/gui
+gui_LTLIBRARIES =
+
+DIST_SUBDIRS += gui/macosx gui/minimal_macosx gui/qt4 gui/skins2 gui/macosx_dialog_provider gui/ios_dialog_provider
+
+if ENABLE_MACOSX_UI
+SUBDIRS += gui/macosx
+endif
+if ENABLE_MACOSX_DIALOG_PROVIDER
+SUBDIRS += gui/macosx_dialog_provider
+endif
+if HAVE_IOS
+SUBDIRS += gui/ios_dialog_provider
+endif
+if ENABLE_MINIMAL_MACOSX
+SUBDIRS += gui/minimal_macosx
+endif
+if ENABLE_QT4
+SUBDIRS += gui/qt4
+endif
+if BUILD_SKINS
+SUBDIRS += gui/skins2
+endif
+
+libncurses_plugin_la_SOURCES = gui/ncurses.c
+libncurses_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(NCURSES_CFLAGS)
+libncurses_plugin_la_LIBADD = $(NCURSES_LIBS) $(LIBPTHREAD) $(LIBM)
+if HAVE_NCURSES
+gui_LTLIBRARIES += libncurses_plugin.la
+endif
+
+EXTRA_DIST += gui/eject.c
diff --git a/modules/gui/minimal_macosx/.gitignore b/modules/gui/minimal_macosx/.gitignore
new file mode 100644 (file)
index 0000000..6ccc850
--- /dev/null
@@ -0,0 +1,32 @@
+guidir = $(pluginsdir)/gui
+gui_LTLIBRARIES =
+
+DIST_SUBDIRS += gui/macosx gui/minimal_macosx gui/qt4 gui/skins2 gui/macosx_dialog_provider gui/ios_dialog_provider
+
+if ENABLE_MACOSX_UI
+SUBDIRS += gui/macosx
+endif
+if ENABLE_MACOSX_DIALOG_PROVIDER
+SUBDIRS += gui/macosx_dialog_provider
+endif
+if HAVE_IOS
+SUBDIRS += gui/ios_dialog_provider
+endif
+if ENABLE_MINIMAL_MACOSX
+SUBDIRS += gui/minimal_macosx
+endif
+if ENABLE_QT4
+SUBDIRS += gui/qt4
+endif
+if BUILD_SKINS
+SUBDIRS += gui/skins2
+endif
+
+libncurses_plugin_la_SOURCES = gui/ncurses.c
+libncurses_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(NCURSES_CFLAGS)
+libncurses_plugin_la_LIBADD = $(NCURSES_LIBS) $(LIBPTHREAD) $(LIBM)
+if HAVE_NCURSES
+gui_LTLIBRARIES += libncurses_plugin.la
+endif
+
+EXTRA_DIST += gui/eject.c
diff --git a/modules/gui/skins2/.gitignore b/modules/gui/skins2/.gitignore
new file mode 100644 (file)
index 0000000..6ccc850
--- /dev/null
@@ -0,0 +1,32 @@
+guidir = $(pluginsdir)/gui
+gui_LTLIBRARIES =
+
+DIST_SUBDIRS += gui/macosx gui/minimal_macosx gui/qt4 gui/skins2 gui/macosx_dialog_provider gui/ios_dialog_provider
+
+if ENABLE_MACOSX_UI
+SUBDIRS += gui/macosx
+endif
+if ENABLE_MACOSX_DIALOG_PROVIDER
+SUBDIRS += gui/macosx_dialog_provider
+endif
+if HAVE_IOS
+SUBDIRS += gui/ios_dialog_provider
+endif
+if ENABLE_MINIMAL_MACOSX
+SUBDIRS += gui/minimal_macosx
+endif
+if ENABLE_QT4
+SUBDIRS += gui/qt4
+endif
+if BUILD_SKINS
+SUBDIRS += gui/skins2
+endif
+
+libncurses_plugin_la_SOURCES = gui/ncurses.c
+libncurses_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(NCURSES_CFLAGS)
+libncurses_plugin_la_LIBADD = $(NCURSES_LIBS) $(LIBPTHREAD) $(LIBM)
+if HAVE_NCURSES
+gui_LTLIBRARIES += libncurses_plugin.la
+endif
+
+EXTRA_DIST += gui/eject.c