Skip to content

Commit

Permalink
motionlib: build only once (refs #9367)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Denis-Courmont committed Sep 16, 2013
1 parent f2db317 commit bca1bc2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 23 deletions.
3 changes: 1 addition & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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=""
Expand Down
18 changes: 9 additions & 9 deletions modules/control/Modules.am
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
15 changes: 3 additions & 12 deletions modules/video_filter/Modules.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit bca1bc2

Please sign in to comment.