Skip to content

Commit bca1bc2

Browse files
author
Rémi Denis-Courmont
committed
motionlib: build only once (refs #9367)
1 parent f2db317 commit bca1bc2

File tree

3 files changed

+13
-23
lines changed

3 files changed

+13
-23
lines changed

configure.ac

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ case "${host_os}" in
156156
VLC_ADD_LIBS([motion rotate], [-Wl,-framework,IOKit,-framework,CoreFoundation])
157157
VLC_ADD_LIBS([libvlc vlc],[-Wl,-undefined,dynamic_lookup,-framework,AppKit])
158158
VLC_ADD_LIBS([avcodec access_avio swscale postproc i420_rgb_mmx x262 x264 x26410b],[-Wl,-read_only_relocs,suppress])
159-
VLC_ADD_CFLAGS([motion rotate],[-fconstant-cfstrings])
160159
VLC_ADD_LIBS([libvlccore],[-Wl,-framework,CoreFoundation,-framework,SystemConfiguration])
161160

162161
dnl Allow binaries created on Lion to run on earlier releases
@@ -653,7 +652,7 @@ AC_CHECK_FUNC(getopt_long,, [
653652
AC_SUBST(GNUGETOPT_LIBS)
654653

655654
AC_CHECK_LIB(m,cos,[
656-
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])
655+
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])
657656
LIBM="-lm"
658657
], [
659658
LIBM=""

modules/control/Modules.am

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ SOURCES_ntservice = ntservice.c
55
SOURCES_hotkeys = hotkeys.c
66
SOURCES_lirc = lirc.c
77
SOURCES_oldrc = rc.c
8+
9+
libvlc_motion_la_SOURCES = motionlib.c motionlib.h
810
if HAVE_DARWIN
9-
motion_extra = unimotion.c unimotion.h
10-
else
11-
motion_extra = $(NULL)
11+
libvlc_motion_la_SOURCES += unimotion.c unimotion.h
12+
libvlc_motion_la_CFLAGS = $(AM_CFLAGS) -fconstant-cfstrings
1213
endif
13-
SOURCES_motion = \
14-
motion.c \
15-
motionlib.c \
16-
motionlib.h \
17-
$(motion_extra) \
18-
$(NULL)
14+
libvlc_motion_la_LDFLAGS = -static
15+
noinst_LTLIBRARIES = libvlc_motion.la
16+
17+
libmotion_plugin_la_SOURCES = motion.c
18+
libmotion_plugin_la_LIBADD = libvlc_motion.la
1919

2020
control_LTLIBRARIES += \
2121
libdummy_plugin.la \

modules/video_filter/Modules.am

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,9 @@ SOURCES_ball = ball.c
7272
SOURCES_opencv_wrapper = opencv_wrapper.c
7373
SOURCES_opencv_example = opencv_example.cpp filter_event_info.h
7474

75-
if HAVE_DARWIN
76-
motion_extra = ../control/unimotion.c ../control/unimotion.h
77-
else
78-
motion_extra = $(NULL)
79-
endif
80-
SOURCES_rotate = \
81-
rotate.c \
82-
../control/motionlib.c \
83-
../control/motionlib.h \
84-
$(motion_extra) \
85-
$(NULL)
75+
librotate_plugin_la_SOURCES = rotate.c
76+
librotate_plugin_la_LIBADD = ../control/libvlc_motion.la $(LIBM)
77+
video_filter_LTLIBRARIES += librotate_plugin.la
8678

8779
SOURCES_colorthres = colorthres.c
8880
SOURCES_extract = extract.c
@@ -157,7 +149,6 @@ video_filter_LTLIBRARIES += \
157149
libposterize_plugin.la \
158150
libpsychedelic_plugin.la \
159151
libripple_plugin.la \
160-
librotate_plugin.la \
161152
librss_plugin.la \
162153
libscale_plugin.la \
163154
libscene_plugin.la \

0 commit comments

Comments
 (0)