From 16e951c2cdfa6710f0d5cc77b513e0f2a5f1377d Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 1 Mar 2013 15:55:08 +0100 Subject: gl_common: split into platform specific files Do this instead of stuffing all x11/cocoa/win32/wayland specific code into gl_common.c. The cocoa specific parts could probably go directly into cocoa_common.m, possibly same with wayland. Also redo how the list of backends is managed. Get rid of the GLTYPE_ constants. Instead of having a big switch() on GLTYPE_, each backend entry has a function pointer to setup the MPGLContext callback (e.g. mpgl_set_backend_x11()). --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ec8ef30aa6..12154f87e9 100644 --- a/Makefile +++ b/Makefile @@ -97,9 +97,12 @@ SOURCES-$(GL) += video/out/gl_common.c video/out/gl_osd.c \ SOURCES-$(ENCODING) += video/out/vo_lavc.c audio/out/ao_lavc.c \ core/encode_lavc.c -SOURCES-$(GL_WIN32) += video/out/w32_common.c -SOURCES-$(GL_X11) += video/out/x11_common.c -SOURCES-$(GL_WAYLAND) += video/out/wayland_common.c + +SOURCES-$(GL_WIN32) += video/out/w32_common.c video/out/gl_w32.c +SOURCES-$(GL_X11) += video/out/x11_common.c video/out/gl_x11.c +SOURCES-$(GL_COCOA) += video/out/gl_cocoa.c +SOURCES-$(GL_WAYLAND) += video/out/wayland_common.c \ + video/out/gl_wayland.c SOURCES-$(JACK) += audio/out/ao_jack.c SOURCES-$(JOYSTICK) += core/input/joystick.c -- cgit v1.2.3