[vlc-commits] control: remove Makefile recursion

Rémi Denis-Courmont git at videolan.org
Tue Feb 10 22:32:28 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Feb 10 18:15:33 2015 +0200| [5260788250a255ada046423cf3fc21e4cbac2bfb] | committer: Rémi Denis-Courmont

control: remove Makefile recursion

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5260788250a255ada046423cf3fc21e4cbac2bfb
---

 configure.ac                                |    1 -
 modules/Makefile.am                         |    2 +-
 modules/control/.gitignore                  |    1 -
 modules/control/{Modules.am => Makefile.am} |   42 ++++++++++++++-------------
 modules/video_filter/Modules.am             |    2 +-
 5 files changed, 24 insertions(+), 24 deletions(-)

diff --git a/configure.ac b/configure.ac
index e0d0cc0..7d662be 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4136,7 +4136,6 @@ AC_CONFIG_FILES([
   bin/Makefile
   test/Makefile
   modules/access_output/Makefile
-  modules/control/Makefile
   modules/gui/Makefile
   modules/gui/ios_dialog_provider/Makefile
   modules/gui/macosx/Makefile
diff --git a/modules/Makefile.am b/modules/Makefile.am
index 704582a..16a81be 100644
--- a/modules/Makefile.am
+++ b/modules/Makefile.am
@@ -4,7 +4,6 @@ check_PROGRAMS =
 EXTRA_DIST =
 
 BASE_SUBDIRS = \
-	control \
 	gui \
 	video_filter \
 	visualization
@@ -37,6 +36,7 @@ include audio_filter/Makefile.am
 include audio_mixer/Makefile.am
 include audio_output/Makefile.am
 include codec/Makefile.am
+include control/Makefile.am
 include demux/Makefile.am
 include hw/vdpau/Makefile.am
 include logger/Makefile.am
diff --git a/modules/control/.gitignore b/modules/control/.gitignore
deleted file mode 100644
index 08a6d72..0000000
--- a/modules/control/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-Makefile.am
diff --git a/modules/control/Modules.am b/modules/control/Makefile.am
similarity index 55%
rename from modules/control/Modules.am
rename to modules/control/Makefile.am
index 1b1f0d9..f4d0d6a 100644
--- a/modules/control/Modules.am
+++ b/modules/control/Makefile.am
@@ -1,34 +1,36 @@
-libdummy_plugin_la_SOURCES = dummy.c
-libgestures_plugin_la_SOURCES = gestures.c
-libhotkeys_plugin_la_SOURCES = hotkeys.c
+controldir = $(pluginsdir)/control
+
+libdummy_plugin_la_SOURCES = control/dummy.c
+libgestures_plugin_la_SOURCES = control/gestures.c
+libhotkeys_plugin_la_SOURCES = control/hotkeys.c
 libhotkeys_plugin_la_LIBADD = $(LIBM)
-libnetsync_plugin_la_SOURCES = netsync.c
+libnetsync_plugin_la_SOURCES = control/netsync.c
 libnetsync_plugin_la_LIBADD = $(SOCKET_LIBS)
-liboldrc_plugin_la_SOURCES = rc.c
+liboldrc_plugin_la_SOURCES = control/rc.c
 liboldrc_plugin_la_LIBADD = $(SOCKET_LIBS) $(LIBM)
 
-control_LTLIBRARIES += \
+control_LTLIBRARIES = \
 	libdummy_plugin.la \
 	libgestures_plugin.la \
 	libhotkeys_plugin.la \
 	libnetsync_plugin.la \
 	liboldrc_plugin.la
 
-liblirc_plugin_la_SOURCES = lirc.c
+liblirc_plugin_la_SOURCES = control/lirc.c
 liblirc_plugin_la_LIBADD = -llirc_client
 if HAVE_LIRC
 control_LTLIBRARIES += liblirc_plugin.la
 endif
 
-libvlc_motion_la_SOURCES = motionlib.c motionlib.h
+libvlc_motion_la_SOURCES = control/motionlib.c control/motionlib.h
 if HAVE_DARWIN
-libvlc_motion_la_SOURCES += unimotion.c unimotion.h
+libvlc_motion_la_SOURCES += control/unimotion.c control/unimotion.h
 libvlc_motion_la_CFLAGS = $(AM_CFLAGS) -fconstant-cfstrings
 endif
 libvlc_motion_la_LDFLAGS = -static
-noinst_LTLIBRARIES = libvlc_motion.la
+noinst_LTLIBRARIES += libvlc_motion.la
 
-libmotion_plugin_la_SOURCES = motion.c
+libmotion_plugin_la_SOURCES = control/motion.c
 libmotion_plugin_la_LIBADD = libvlc_motion.la
 libmotion_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(controldir)'
 if HAVE_DARWIN
@@ -39,18 +41,18 @@ control_LTLIBRARIES += libmotion_plugin.la
 endif
 
 libdbus_plugin_la_SOURCES = \
-	dbus/dbus_introspect.h dbus/dbus_common.h \
-	dbus/dbus_root.c dbus/dbus_root.h \
-	dbus/dbus_player.c dbus/dbus_player.h \
-	dbus/dbus_tracklist.c dbus/dbus_tracklist.h \
-	dbus/dbus.c
+	control/dbus/dbus_introspect.h control/dbus/dbus_common.h \
+	control/dbus/dbus_root.c control/dbus/dbus_root.h \
+	control/dbus/dbus_player.c control/dbus/dbus_player.h \
+	control/dbus/dbus_tracklist.c control/dbus/dbus_tracklist.h \
+	control/dbus/dbus.c
 libdbus_plugin_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
 libdbus_plugin_la_LIBADD = $(DBUS_LIBS) $(LIBM)
 if HAVE_DBUS
 control_LTLIBRARIES += libdbus_plugin.la
 endif
 
-libxcb_hotkeys_plugin_la_SOURCES = globalhotkeys/xcb.c
+libxcb_hotkeys_plugin_la_SOURCES = control/globalhotkeys/xcb.c
 libxcb_hotkeys_plugin_la_CFLAGS = $(AM_CFLAGS) \
 	$(XCB_KEYSYMS_CFLAGS) $(XCB_CFLAGS)
 libxcb_hotkeys_plugin_la_LIBADD = $(XCB_KEYSYMS_LIBS) $(XCB_LIBS)
@@ -58,9 +60,9 @@ if HAVE_XCB_KEYSYMS
 control_LTLIBRARIES += libxcb_hotkeys_plugin.la
 endif
 
-libntservice_plugin_la_SOURCES = ntservice.c
-libwin_hotkeys_plugin_la_SOURCES = globalhotkeys/win32.c
-libwin_msg_plugin_la_SOURCES = win_msg.c
+libntservice_plugin_la_SOURCES = control/ntservice.c
+libwin_hotkeys_plugin_la_SOURCES = control/globalhotkeys/win32.c
+libwin_msg_plugin_la_SOURCES = control/win_msg.c
 if HAVE_WIN32
 control_LTLIBRARIES += libntservice_plugin.la
 if !HAVE_WINSTORE
diff --git a/modules/video_filter/Modules.am b/modules/video_filter/Modules.am
index b823e9d..c93a33d 100644
--- a/modules/video_filter/Modules.am
+++ b/modules/video_filter/Modules.am
@@ -69,7 +69,7 @@ SOURCES_opencv_wrapper = opencv_wrapper.c
 SOURCES_opencv_example = opencv_example.cpp filter_event_info.h
 
 librotate_plugin_la_SOURCES = rotate.c
-librotate_plugin_la_LIBADD = ../control/libvlc_motion.la $(LIBM)
+librotate_plugin_la_LIBADD = ../libvlc_motion.la $(LIBM)
 librotate_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(video_filterdir)'
 if HAVE_DARWIN
 librotate_plugin_la_LDFLAGS += -Wl,-framework,IOKit,-framework,CoreFoundation



More information about the vlc-commits mailing list