2005-11-29 17:39:33 +01:00
|
|
|
# libXext.la: includes all extensions and should be linked into Xvfb,
|
|
|
|
# Xnest, Xdmx and Xprt
|
|
|
|
# libXextbuiltin.la: includes those extensions that are built directly into
|
|
|
|
# Xorg by default
|
|
|
|
# libXextmodule.la: includes those extensions that are built into a module
|
|
|
|
# that Xorg loads
|
2006-02-16 08:17:31 +01:00
|
|
|
if XORG
|
2005-11-29 17:39:33 +01:00
|
|
|
noinst_LTLIBRARIES = libXext.la libXextbuiltin.la libXextmodule.la
|
2006-02-16 08:17:31 +01:00
|
|
|
else
|
|
|
|
noinst_LTLIBRARIES = libXext.la
|
|
|
|
endif
|
2005-07-01 22:29:53 +02:00
|
|
|
|
2006-02-16 06:46:08 +01:00
|
|
|
INCLUDES = -I$(top_srcdir)/hw/xfree86/dixmods/extmod
|
2005-09-25 19:48:09 +02:00
|
|
|
|
2006-07-19 00:16:12 +02:00
|
|
|
AM_CFLAGS = $(DIX_CFLAGS)
|
2005-09-25 19:48:09 +02:00
|
|
|
|
2006-01-18 07:56:52 +01:00
|
|
|
if XORG
|
2010-06-26 02:59:14 +02:00
|
|
|
sdk_HEADERS = xvdix.h xvmcext.h geext.h geint.h shmint.h syncsdk.h
|
2006-01-18 07:56:52 +01:00
|
|
|
endif
|
2005-07-01 22:29:53 +02:00
|
|
|
|
2005-12-12 04:06:18 +01:00
|
|
|
# Sources always included in libXextbuiltin.la & libXext.la
|
|
|
|
BUILTIN_SRCS = \
|
2008-07-24 15:07:42 +02:00
|
|
|
bigreq.c \
|
2008-07-24 21:28:07 +02:00
|
|
|
geext.c \
|
2005-12-12 04:06:18 +01:00
|
|
|
shape.c \
|
|
|
|
sleepuntil.c \
|
|
|
|
sleepuntil.h \
|
2008-07-24 21:28:07 +02:00
|
|
|
sync.c \
|
2010-06-26 02:59:14 +02:00
|
|
|
syncsdk.h \
|
2008-12-10 19:32:04 +01:00
|
|
|
syncsrv.h \
|
2008-07-24 21:09:05 +02:00
|
|
|
xcmisc.c \
|
2008-07-24 21:28:07 +02:00
|
|
|
xtest.c
|
2005-12-12 04:06:18 +01:00
|
|
|
|
2008-07-24 21:28:07 +02:00
|
|
|
# Sources always included in libXextmodule.la & libXext.la. That's right, zero.
|
|
|
|
MODULE_SRCS =
|
2010-03-08 22:33:37 +01:00
|
|
|
MODULE_LIBS =
|
2005-12-12 04:06:18 +01:00
|
|
|
|
|
|
|
# Optional sources included if extension enabled by configure.ac rules
|
|
|
|
|
|
|
|
# MIT Shared Memory extension
|
2006-03-21 23:54:38 +01:00
|
|
|
MITSHM_SRCS = shm.c shmint.h
|
2005-12-12 04:06:18 +01:00
|
|
|
if MITSHM
|
|
|
|
BUILTIN_SRCS += $(MITSHM_SRCS)
|
2005-07-01 22:29:53 +02:00
|
|
|
endif
|
|
|
|
|
2005-12-12 04:06:18 +01:00
|
|
|
# XVideo extension
|
2005-10-17 09:18:59 +02:00
|
|
|
XV_SRCS = xvmain.c xvdisp.c xvmc.c xvdix.h xvmcext.h xvdisp.h
|
2005-12-12 04:06:18 +01:00
|
|
|
if XV
|
|
|
|
MODULE_SRCS += $(XV_SRCS)
|
2005-07-01 22:29:53 +02:00
|
|
|
endif
|
|
|
|
|
2005-12-12 04:06:18 +01:00
|
|
|
# XResource extension: lets clients get data about per-client resource usage
|
2005-07-01 22:29:53 +02:00
|
|
|
RES_SRCS = xres.c
|
2005-12-12 04:06:18 +01:00
|
|
|
if RES
|
|
|
|
MODULE_SRCS += $(RES_SRCS)
|
2005-07-01 22:29:53 +02:00
|
|
|
endif
|
|
|
|
|
2005-12-12 04:06:18 +01:00
|
|
|
# MIT ScreenSaver extension
|
2005-07-01 22:29:53 +02:00
|
|
|
SCREENSAVER_SRCS = saver.c
|
2005-12-12 04:06:18 +01:00
|
|
|
if SCREENSAVER
|
2006-04-05 23:08:45 +02:00
|
|
|
MODULE_SRCS += $(SCREENSAVER_SRCS)
|
2005-07-01 22:29:53 +02:00
|
|
|
endif
|
|
|
|
|
2005-12-12 04:06:18 +01:00
|
|
|
# Xinerama extension: making multiple video devices act as one virtual screen
|
|
|
|
XINERAMA_SRCS = panoramiX.c panoramiX.h panoramiXh.h panoramiXsrv.h panoramiXprocs.c panoramiXSwap.c
|
|
|
|
if XINERAMA
|
|
|
|
BUILTIN_SRCS += $(XINERAMA_SRCS)
|
Rework symbol visibility for easier maintenance
Save in a few special cases, _X_EXPORT should not be used in C source
files. Instead, it should be used in headers, and the proper C source
include that header. Some special cases are symbols that need to be
shared between modules, but not expected to be used by external drivers,
and symbols that are accessible via LoaderSymbol/dlopen.
This patch also adds conditionally some new sdk header files, depending
on extensions enabled. These files were added to match pattern for
other extensions/modules, that is, have the headers "deciding" symbol
visibility in the sdk. These headers are:
o Xext/panoramiXsrv.h, Xext/panoramiX.h
o fbpict.h (unconditionally)
o vidmodeproc.h
o mioverlay.h (unconditionally, used only by xaa)
o xfixes.h (unconditionally, symbols required by dri2)
LoaderSymbol and similar functions now don't have different prototypes,
in loaderProcs.h and xf86Module.h, so that both headers can be included,
without the need of defining IN_LOADER.
xf86NewInputDevice() device prototype readded to xf86Xinput.h, but
not exported (and with a comment about it).
2008-12-03 08:43:34 +01:00
|
|
|
if XORG
|
|
|
|
sdk_HEADERS += panoramiXsrv.h panoramiX.h
|
|
|
|
endif
|
2005-12-12 04:06:18 +01:00
|
|
|
endif
|
|
|
|
|
2006-06-21 04:01:34 +02:00
|
|
|
# X-ACE extension: provides hooks for building security policy extensions
|
|
|
|
# like XC-Security, X-SELinux & XTSol
|
|
|
|
XACE_SRCS = xace.c xace.h xacestr.h
|
|
|
|
if XACE
|
|
|
|
BUILTIN_SRCS += $(XACE_SRCS)
|
2008-12-18 18:35:57 +01:00
|
|
|
if XORG
|
|
|
|
sdk_HEADERS += xace.h xacestr.h
|
|
|
|
endif
|
2006-06-21 04:01:34 +02:00
|
|
|
endif
|
|
|
|
|
2006-09-08 21:31:18 +02:00
|
|
|
# SELinux extension: provides SELinux policy support for X objects
|
|
|
|
# requires X-ACE extension
|
2009-09-01 00:46:23 +02:00
|
|
|
XSELINUX_SRCS = xselinux_ext.c xselinux_hooks.c xselinux_label.c xselinux.h xselinuxint.h
|
2006-09-08 21:31:18 +02:00
|
|
|
if XSELINUX
|
2008-01-26 01:22:19 +01:00
|
|
|
MODULE_SRCS += $(XSELINUX_SRCS)
|
2010-03-08 22:33:37 +01:00
|
|
|
MODULE_LIBS += $(SELINUX_LIBS)
|
2006-09-08 21:31:18 +02:00
|
|
|
endif
|
|
|
|
|
2005-12-12 04:06:18 +01:00
|
|
|
# Security extension: multi-level security to protect clients from each other
|
2006-07-30 10:17:02 +02:00
|
|
|
XCSECURITY_SRCS = security.c securitysrv.h
|
2005-12-12 04:06:18 +01:00
|
|
|
if XCSECURITY
|
|
|
|
BUILTIN_SRCS += $(XCSECURITY_SRCS)
|
2005-07-01 22:29:53 +02:00
|
|
|
endif
|
|
|
|
|
2006-08-29 23:07:15 +02:00
|
|
|
XCALIBRATE_SRCS = xcalibrate.c
|
|
|
|
if XCALIBRATE
|
|
|
|
BUILTIN_SRCS += $(XCALIBRATE_SRCS)
|
2007-09-04 22:39:14 +02:00
|
|
|
# XCalibrate needs tslib
|
2006-08-29 23:07:15 +02:00
|
|
|
endif
|
|
|
|
|
2006-02-16 08:17:31 +01:00
|
|
|
# XF86 Big Font extension
|
2010-03-22 06:44:28 +01:00
|
|
|
BIGFONT_SRCS = xf86bigfont.c xf86bigfontsrv.h
|
2006-02-16 08:17:31 +01:00
|
|
|
if XF86BIGFONT
|
2006-02-16 22:45:12 +01:00
|
|
|
BUILTIN_SRCS += $(BIGFONT_SRCS)
|
2006-02-16 08:17:31 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
# DPMS extension
|
|
|
|
DPMS_SRCS = dpms.c dpmsproc.h
|
|
|
|
if DPMSExtension
|
|
|
|
MODULE_SRCS += $(DPMS_SRCS)
|
|
|
|
endif
|
|
|
|
|
2005-12-12 04:06:18 +01:00
|
|
|
# Now take all of the above, mix well, bake for 10 minutes and get libXext*.la
|
|
|
|
|
|
|
|
libXext_la_SOURCES = $(BUILTIN_SRCS) $(MODULE_SRCS)
|
2010-03-08 22:33:37 +01:00
|
|
|
libXext_la_LIBADD = $(MODULE_LIBS)
|
2005-12-12 04:06:18 +01:00
|
|
|
|
2006-02-16 08:17:31 +01:00
|
|
|
if XORG
|
2005-12-12 04:06:18 +01:00
|
|
|
libXextbuiltin_la_SOURCES = $(BUILTIN_SRCS)
|
|
|
|
|
|
|
|
libXextmodule_la_SOURCES = $(MODULE_SRCS)
|
2010-03-08 22:33:37 +01:00
|
|
|
libXextmodule_la_LIBADD = $(MODULE_LIBS)
|
2006-02-16 08:17:31 +01:00
|
|
|
endif
|
2005-12-12 04:06:18 +01:00
|
|
|
|
2005-07-01 22:29:53 +02:00
|
|
|
EXTRA_DIST = \
|
2005-12-12 04:06:18 +01:00
|
|
|
$(MITSHM_SRCS) \
|
|
|
|
$(XV_SRCS) \
|
|
|
|
$(RES_SRCS) \
|
|
|
|
$(SCREENSAVER_SRCS) \
|
2006-06-21 04:01:34 +02:00
|
|
|
$(XACE_SRCS) \
|
2005-12-12 04:06:18 +01:00
|
|
|
$(XCSECURITY_SRCS) \
|
2009-09-01 00:46:23 +02:00
|
|
|
$(XSELINUX_SRCS) \
|
2006-08-29 23:07:15 +02:00
|
|
|
$(XCALIBRATE_SRCS) \
|
2005-12-13 18:34:06 +01:00
|
|
|
$(XINERAMA_SRCS) \
|
2006-02-16 08:17:31 +01:00
|
|
|
$(BIGFONT_SRCS) \
|
2007-04-30 05:27:42 +02:00
|
|
|
$(DPMS_SRCS) \
|
|
|
|
$(GE_SRCS)
|
2005-11-29 17:39:33 +01:00
|
|
|
|