]> git.sesse.net Git - vlc/commitdiff
motionlib: build only once (refs #9367)
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 15 Sep 2013 20:55:55 +0000 (23:55 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 16 Sep 2013 15:54:36 +0000 (18:54 +0300)
configure.ac
modules/control/Modules.am
modules/video_filter/Modules.am

index 44700e9854d0684198e5b484dd92985a2bc88659..e04d42fd6613211c0407c13557ba11b668ed9231 100644 (file)
@@ -156,7 +156,6 @@ case "${host_os}" in
     VLC_ADD_LIBS([motion rotate], [-Wl,-framework,IOKit,-framework,CoreFoundation])
     VLC_ADD_LIBS([libvlc vlc],[-Wl,-undefined,dynamic_lookup,-framework,AppKit])
     VLC_ADD_LIBS([avcodec access_avio swscale postproc i420_rgb_mmx x262 x264 x26410b],[-Wl,-read_only_relocs,suppress])
-    VLC_ADD_CFLAGS([motion rotate],[-fconstant-cfstrings])
     VLC_ADD_LIBS([libvlccore],[-Wl,-framework,CoreFoundation,-framework,SystemConfiguration])
 
     dnl Allow binaries created on Lion to run on earlier releases
@@ -653,7 +652,7 @@ AC_CHECK_FUNC(getopt_long,, [
 AC_SUBST(GNUGETOPT_LIBS)
 
 AC_CHECK_LIB(m,cos,[
-  VLC_ADD_LIBS([adjust wave ripple psychedelic gradient a52tofloat32 dtstofloat32 x264 goom rotate noise grain scene lua chorus_flanger freetype swscale postproc equalizer spatializer param_eq samplerate freetype mpc qt4 compressor headphone_channel_mixer normvol audiobargraph_a audiobargraph_v mono colorthres extract ball hotkeys mosaic gaussianblur x262 x26410b hqdn3d anaglyph oldrc ncurses oldmovie glspectrum],[-lm])
+  VLC_ADD_LIBS([adjust wave ripple psychedelic gradient a52tofloat32 dtstofloat32 x264 goom noise grain scene lua chorus_flanger freetype swscale postproc equalizer spatializer param_eq samplerate freetype mpc qt4 compressor headphone_channel_mixer normvol audiobargraph_a audiobargraph_v mono colorthres extract ball hotkeys mosaic gaussianblur x262 x26410b hqdn3d anaglyph oldrc ncurses oldmovie glspectrum],[-lm])
   LIBM="-lm"
 ], [
   LIBM=""
index a13fdc2d7693f6dc4846abab1eb85888e54ddff7..d4ef548ac26bafc14eeff70354977a0461400877 100644 (file)
@@ -5,17 +5,17 @@ SOURCES_ntservice = ntservice.c
 SOURCES_hotkeys = hotkeys.c
 SOURCES_lirc = lirc.c
 SOURCES_oldrc = rc.c
+
+libvlc_motion_la_SOURCES = motionlib.c motionlib.h
 if HAVE_DARWIN
-motion_extra = unimotion.c unimotion.h
-else
-motion_extra = $(NULL)
+libvlc_motion_la_SOURCES += unimotion.c unimotion.h
+libvlc_motion_la_CFLAGS = $(AM_CFLAGS) -fconstant-cfstrings
 endif
-SOURCES_motion = \
-        motion.c \
-        motionlib.c \
-        motionlib.h \
-        $(motion_extra) \
-        $(NULL)
+libvlc_motion_la_LDFLAGS = -static
+noinst_LTLIBRARIES = libvlc_motion.la
+
+libmotion_plugin_la_SOURCES = motion.c
+libmotion_plugin_la_LIBADD = libvlc_motion.la
 
 control_LTLIBRARIES += \
        libdummy_plugin.la \
index d7746d52a34c80961a7f1c9ed38dc8af7bf6ad99..fa3d24499bf6db0513c93370aeed0dca3d195053 100644 (file)
@@ -72,17 +72,9 @@ SOURCES_ball = ball.c
 SOURCES_opencv_wrapper = opencv_wrapper.c
 SOURCES_opencv_example = opencv_example.cpp filter_event_info.h
 
-if HAVE_DARWIN
-motion_extra = ../control/unimotion.c ../control/unimotion.h
-else
-motion_extra = $(NULL)
-endif
-SOURCES_rotate = \
-       rotate.c \
-       ../control/motionlib.c \
-       ../control/motionlib.h \
-       $(motion_extra) \
-       $(NULL)
+librotate_plugin_la_SOURCES = rotate.c
+librotate_plugin_la_LIBADD = ../control/libvlc_motion.la $(LIBM)
+video_filter_LTLIBRARIES += librotate_plugin.la
 
 SOURCES_colorthres = colorthres.c
 SOURCES_extract = extract.c
@@ -157,7 +149,6 @@ video_filter_LTLIBRARIES += \
        libposterize_plugin.la \
        libpsychedelic_plugin.la \
        libripple_plugin.la \
-       librotate_plugin.la \
        librss_plugin.la \
        libscale_plugin.la \
        libscene_plugin.la \