Move XFree86-VidMode from extmod to built-in
As with DGA, move VidMode from being part of extmod to a built-in part of the server, if compiled as such. This is initialised from xf86ExtensionInit rather than miinitext because it's wholly dependent on the Xorg DDX. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
60f53e3012
commit
6e74fdda42
|
@ -47,7 +47,7 @@ libcommon_la_SOURCES = xf86Configure.c xf86Bus.c xf86Config.c \
|
||||||
xf86VidMode.c xf86fbman.c xf86cmap.c \
|
xf86VidMode.c xf86fbman.c xf86cmap.c \
|
||||||
xf86Helper.c xf86PM.c xf86Xinput.c xisb.c \
|
xf86Helper.c xf86PM.c xf86Xinput.c xisb.c \
|
||||||
xf86Mode.c xorgHelper.c xf86Extensions.h \
|
xf86Mode.c xorgHelper.c xf86Extensions.h \
|
||||||
xf86Extensions.c \
|
xf86Extensions.c xf86vmode.c \
|
||||||
$(XVSOURCES) $(BUSSOURCES) $(RANDRSOURCES)
|
$(XVSOURCES) $(BUSSOURCES) $(RANDRSOURCES)
|
||||||
nodist_libcommon_la_SOURCES = xf86DefModeSet.c xf86Build.h
|
nodist_libcommon_la_SOURCES = xf86DefModeSet.c xf86Build.h
|
||||||
libcommon_la_LIBADD = $(top_builddir)/config/libconfig.la
|
libcommon_la_LIBADD = $(top_builddir)/config/libconfig.la
|
||||||
|
|
|
@ -45,10 +45,24 @@
|
||||||
#include <X11/extensions/xf86dgaproto.h>
|
#include <X11/extensions/xf86dgaproto.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef XF86VIDMODE
|
||||||
|
#include <X11/extensions/xf86vmproto.h>
|
||||||
|
#include "vidmodeproc.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* DDX-specific extensions.
|
* DDX-specific extensions.
|
||||||
*/
|
*/
|
||||||
static ExtensionModule extensionModules[] = {
|
static ExtensionModule extensionModules[] = {
|
||||||
|
#ifdef XF86VIDMODE
|
||||||
|
{
|
||||||
|
XFree86VidModeExtensionInit,
|
||||||
|
XF86VIDMODENAME,
|
||||||
|
&noXFree86VidModeExtension,
|
||||||
|
NULL,
|
||||||
|
NULL
|
||||||
|
},
|
||||||
|
#endif
|
||||||
#ifdef XFreeXDGA
|
#ifdef XFreeXDGA
|
||||||
{
|
{
|
||||||
XFree86DGAExtensionInit,
|
XFree86DGAExtensionInit,
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
extsmoduledir = $(moduledir)/extensions
|
extsmoduledir = $(moduledir)/extensions
|
||||||
extsmodule_LTLIBRARIES = libextmod.la
|
extsmodule_LTLIBRARIES = libextmod.la
|
||||||
|
|
||||||
if XF86VIDMODE
|
|
||||||
XF86VMODE_SRCS = xf86vmode.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
AM_CFLAGS = @DIX_CFLAGS@ @XORG_CFLAGS@
|
AM_CFLAGS = @DIX_CFLAGS@ @XORG_CFLAGS@
|
||||||
INCLUDES = @XORG_INCS@ \
|
INCLUDES = @XORG_INCS@ \
|
||||||
-I$(top_srcdir)/dbe \
|
-I$(top_srcdir)/dbe \
|
||||||
|
@ -12,6 +8,5 @@ INCLUDES = @XORG_INCS@ \
|
||||||
-I$(top_srcdir)/miext/shadow
|
-I$(top_srcdir)/miext/shadow
|
||||||
|
|
||||||
libextmod_la_LDFLAGS = -module -avoid-version $(LD_NO_UNDEFINED_FLAG)
|
libextmod_la_LDFLAGS = -module -avoid-version $(LD_NO_UNDEFINED_FLAG)
|
||||||
libextmod_la_SOURCES = modinit.c \
|
libextmod_la_SOURCES = modinit.c
|
||||||
$(XF86VMODE_SRCS)
|
|
||||||
libextmod_la_LIBADD = $(top_builddir)/Xext/libXextmodule.la
|
libextmod_la_LIBADD = $(top_builddir)/Xext/libXextmodule.la
|
||||||
|
|
|
@ -39,14 +39,6 @@ static MODULESETUPPROTO(extmodSetup);
|
||||||
* Array describing extensions to be initialized
|
* Array describing extensions to be initialized
|
||||||
*/
|
*/
|
||||||
static ExtensionModule extensionModules[] = {
|
static ExtensionModule extensionModules[] = {
|
||||||
#ifdef XF86VIDMODE
|
|
||||||
{
|
|
||||||
XFree86VidModeExtensionInit,
|
|
||||||
XF86VIDMODENAME,
|
|
||||||
&noXFree86VidModeExtension,
|
|
||||||
NULL,
|
|
||||||
NULL},
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static XF86ModuleVersionInfo VersRec = {
|
static XF86ModuleVersionInfo VersRec = {
|
||||||
|
|
|
@ -133,12 +133,9 @@ cat > sdksyms.c << EOF
|
||||||
# include "xf86xvmc.h"
|
# include "xf86xvmc.h"
|
||||||
# include "xf86xvpriv.h"
|
# include "xf86xvpriv.h"
|
||||||
#endif
|
#endif
|
||||||
/* XF86VidMode code is in libextmod module */
|
|
||||||
/*
|
|
||||||
#if XF86VIDMODE
|
#if XF86VIDMODE
|
||||||
# include "vidmodeproc.h"
|
# include "vidmodeproc.h"
|
||||||
#endif
|
#endif
|
||||||
*/
|
|
||||||
#include "xorgVersion.h"
|
#include "xorgVersion.h"
|
||||||
#if defined(__sparc__) || defined(__sparc)
|
#if defined(__sparc__) || defined(__sparc)
|
||||||
# include "xf86sbusBus.h"
|
# include "xf86sbusBus.h"
|
||||||
|
|
Loading…
Reference in New Issue