[vlc-commits] opengl: move opengl-specific to its own makefile

Alexandre Janniaux git at videolan.org
Thu Jul 2 11:18:42 CEST 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Mon Jun 29 13:17:29 2020 +0200| [1c77cce2fcdcf15913466c5a1262d3092aa16c92] | committer: Alexandre Janniaux

opengl: move opengl-specific to its own makefile

It moves the opengl-related compilation part into a Makefile in the
opengl directory, but doesn't move platform-specific handling.

No other changes.

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

 modules/video_output/Makefile.am        | 42 +------------------------------
 modules/video_output/opengl/Makefile.am | 44 +++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+), 41 deletions(-)

diff --git a/modules/video_output/Makefile.am b/modules/video_output/Makefile.am
index 4b2151679c..f7f3196a98 100644
--- a/modules/video_output/Makefile.am
+++ b/modules/video_output/Makefile.am
@@ -3,29 +3,7 @@ vout_LTLIBRARIES =
 
 EXTRA_DIST += video_output/README
 
-OPENGL_COMMONSOURCES = video_output/opengl/vout_helper.c \
-	video_output/opengl/gl_api.c \
-	video_output/opengl/gl_api.h \
-	video_output/opengl/gl_common.h \
-	video_output/opengl/gl_util.c \
-	video_output/opengl/gl_util.h \
-	video_output/opengl/interop.h \
-	video_output/opengl/vout_helper.h \
-	video_output/opengl/internal.h \
-	video_output/opengl/interop.c video_output/opengl/interop_sw.c \
-	video_output/opengl/renderer.c \
-	video_output/opengl/renderer.h \
-	video_output/opengl/sampler.c \
-	video_output/opengl/sampler.h \
-	video_output/opengl/sampler_priv.h \
-	video_output/opengl/sub_renderer.c \
-	video_output/opengl/sub_renderer.h
-if HAVE_LIBPLACEBO
-OPENGL_COMMONSOURCES += video_output/placebo_utils.c video_output/placebo_utils.h
-endif
-
-OPENGL_COMMONCFLAGS = $(LIBPLACEBO_CFLAGS)
-OPENGL_COMMONLIBS = $(LIBPLACEBO_LIBS)
+include video_output/opengl/Makefile.am
 
 if HAVE_DECKLINK
 libdecklinkoutput_plugin_la_SOURCES = video_output/decklink.cpp \
@@ -81,23 +59,6 @@ if HAVE_TVOS
 vout_LTLIBRARIES += libvout_ios_plugin.la libglinterop_cvpx_plugin.la
 endif
 
-### OpenGL ###
-libgles2_plugin_la_SOURCES = $(OPENGL_COMMONSOURCES) video_output/opengl/display.c
-libgles2_plugin_la_CFLAGS = $(AM_CFLAGS) $(GLES2_CFLAGS) -DUSE_OPENGL_ES2 $(OPENGL_COMMONCFLAGS)
-libgles2_plugin_la_LIBADD = $(GLES2_LIBS) $(LIBM) $(OPENGL_COMMONLIBS)
-libgles2_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
-
-EXTRA_LTLIBRARIES += libgles2_plugin.la
-vout_LTLIBRARIES += $(LTLIBgles2)
-
-libgl_plugin_la_SOURCES = $(OPENGL_COMMONSOURCES) video_output/opengl/display.c
-libgl_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS) $(OPENGL_COMMONCFLAGS)
-libgl_plugin_la_LIBADD = $(LIBM) $(OPENGL_COMMONLIBS)
-if HAVE_WIN32
-libgl_plugin_la_CFLAGS += -DHAVE_GL_CORE_SYMBOLS
-libgl_plugin_la_LIBADD += $(GL_LIBS)
-endif
-
 libglinterop_vaapi_plugin_la_SOURCES = video_output/opengl/interop_vaapi.c \
 	video_output/opengl/interop.h \
 	hw/vaapi/vlc_vaapi.c hw/vaapi/vlc_vaapi.h
@@ -110,7 +71,6 @@ libglinterop_vdpau_plugin_la_CFLAGS = $(AM_CFLAGS) $(VDPAU_CFLAGS)
 libglinterop_vdpau_plugin_la_LIBADD = $(LIBDL) libvlc_vdpau.la $(X_LIBS) $(X_PRE_LIBS) -lX11
 
 if HAVE_GL
-vout_LTLIBRARIES += libgl_plugin.la
 if HAVE_EGL
 if HAVE_VAAPI
 vout_LTLIBRARIES += libglinterop_vaapi_plugin.la
diff --git a/modules/video_output/opengl/Makefile.am b/modules/video_output/opengl/Makefile.am
new file mode 100644
index 0000000000..c06195bbca
--- /dev/null
+++ b/modules/video_output/opengl/Makefile.am
@@ -0,0 +1,44 @@
+OPENGL_COMMONSOURCES = video_output/opengl/vout_helper.c \
+       video_output/opengl/gl_api.c \
+       video_output/opengl/gl_api.h \
+       video_output/opengl/gl_common.h \
+       video_output/opengl/gl_util.c \
+       video_output/opengl/gl_util.h \
+       video_output/opengl/interop.h \
+       video_output/opengl/vout_helper.h \
+       video_output/opengl/internal.h \
+       video_output/opengl/interop.c video_output/opengl/interop_sw.c \
+       video_output/opengl/renderer.c \
+       video_output/opengl/renderer.h \
+       video_output/opengl/sampler.c \
+       video_output/opengl/sampler.h \
+       video_output/opengl/sampler_priv.h \
+       video_output/opengl/sub_renderer.c \
+       video_output/opengl/sub_renderer.h
+if HAVE_LIBPLACEBO
+OPENGL_COMMONSOURCES += video_output/placebo_utils.c video_output/placebo_utils.h
+endif
+
+OPENGL_COMMONCFLAGS = $(LIBPLACEBO_CFLAGS)
+OPENGL_COMMONLIBS = $(LIBPLACEBO_LIBS)
+
+### OpenGL ###
+libgles2_plugin_la_SOURCES = $(OPENGL_COMMONSOURCES) video_output/opengl/display.c
+libgles2_plugin_la_CFLAGS = $(AM_CFLAGS) $(GLES2_CFLAGS) -DUSE_OPENGL_ES2 $(OPENGL_COMMONCFLAGS)
+libgles2_plugin_la_LIBADD = $(GLES2_LIBS) $(LIBM) $(OPENGL_COMMONLIBS)
+libgles2_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
+
+EXTRA_LTLIBRARIES += libgles2_plugin.la
+vout_LTLIBRARIES += $(LTLIBgles2)
+
+libgl_plugin_la_SOURCES = $(OPENGL_COMMONSOURCES) video_output/opengl/display.c
+libgl_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS) $(OPENGL_COMMONCFLAGS)
+libgl_plugin_la_LIBADD = $(LIBM) $(OPENGL_COMMONLIBS)
+if HAVE_WIN32
+libgl_plugin_la_CFLAGS += -DHAVE_GL_CORE_SYMBOLS
+libgl_plugin_la_LIBADD += $(GL_LIBS)
+endif
+
+if HAVE_GL
+vout_LTLIBRARIES += libgl_plugin.la
+endif # HAVE_GL



More information about the vlc-commits mailing list