[vlc-commits] vt_utils: refactor into convenience library

Alexandre Janniaux git at videolan.org
Wed Jul 22 15:28:05 CEST 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Mon Jul  6 19:09:31 2020 +0200| [26d44e9589aafedd1d79d89e5681bac538bc9847] | committer: Alexandre Janniaux

vt_utils: refactor into convenience library

Avoid recompiling the vtutil code multiple time.

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

 modules/codec/Makefile.am | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/modules/codec/Makefile.am b/modules/codec/Makefile.am
index dc0bda07dc..0aede61133 100644
--- a/modules/codec/Makefile.am
+++ b/modules/codec/Makefile.am
@@ -337,8 +337,7 @@ liboggspots_plugin_la_LIBADD = $(OGGSPOTS_LIBS)
 EXTRA_LTLIBRARIES += liboggspots_plugin.la
 codec_LTLIBRARIES += $(LTLIBoggspots)
 
-libvideotoolbox_plugin_la_SOURCES = \
-	codec/vt_utils.c codec/vt_utils.h codec/videotoolbox.c
+libvideotoolbox_plugin_la_SOURCES = codec/videotoolbox.c
 libvideotoolbox_plugin_la_CFLAGS = $(AM_CFLAGS)
 if HAVE_IOS
 libvideotoolbox_plugin_la_CFLAGS += -miphoneos-version-min=9.0
@@ -346,7 +345,7 @@ endif
 if HAVE_TVOS
 libvideotoolbox_plugin_la_CFLAGS += -mtvos-version-min=10.2
 endif
-libvideotoolbox_plugin_la_LIBADD = libchroma_copy.la libvlc_hxxxhelper.la
+libvideotoolbox_plugin_la_LIBADD = libchroma_copy.la libvlc_hxxxhelper.la libvlc_vtutils.la
 libvideotoolbox_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)' -Wl,-framework,CoreFoundation -Wl,-framework,VideoToolbox -Wl,-framework,CoreMedia -Wl,-framework,CoreVideo
 EXTRA_LTLIBRARIES += libvideotoolbox_plugin.la
 codec_LTLIBRARIES += $(LTLIBvideotoolbox)
@@ -618,3 +617,7 @@ libhxxxhelper_testdec_plugin_la_SOURCES = codec/hxxx_helper_testdec.c
 libhxxxhelper_testdec_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
 libhxxxhelper_testdec_plugin_la_LIBADD = libvlc_hxxxhelper.la
 noinst_LTLIBRARIES += libhxxxhelper_testdec_plugin.la
+
+libvlc_vtutils_la_SOURCES = codec/vt_utils.c codec/vt_utils.h
+libvlc_vtutils_la_LDFLAGS = -static -no-undefined
+EXTRA_LTLIBRARIES += libvlc_vtutils.la



More information about the vlc-commits mailing list