File tree Expand file tree Collapse file tree 10 files changed +80
-7
lines changed
Expand file tree Collapse file tree 10 files changed +80
-7
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,9 @@ XORGRELSTRING = XorgManVersionString
223223#ifndef BuildRender
224224#define BuildRender YES
225225#endif
226+ #ifndef BuildPresent
227+ #define BuildPresent YES
228+ #endif
226229
227230#ifndef BuildRandR
228231#define BuildRandR YES
Original file line number Diff line number Diff line change @@ -449,6 +449,11 @@ IPLAN2P8_DEFS = -DUSE_IPLAN2P8
449449# define BuildRender YES
450450#endif
451451
452+ /* Build Present extension */
453+ #ifndef BuildPresent
454+ # define BuildPresent YES
455+ #endif
456+
452457#if 0
453458#ifndef JoystickSupport
454459# define JoystickSupport NO
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ RANDRHEADERS = randr.h randrproto.h
2020#if BuildRender
2121RENDERHEADERS = render.h renderproto.h
2222#endif
23+ #if BuildPresent
24+ PRESENTHEADERS = presentproto.h presenttokens.h
25+ #endif
2326#if BuildXfixes
2427XFIXESHEADERS = xfixeswire.h xfixesproto.h
2528#endif
@@ -43,6 +46,7 @@ EXTRAHEADERS = \
4346 $(XVMCHEADERS) \
4447 $(RANDRHEADERS) \
4548 $(RENDERHEADERS) \
49+ $(PRESENTHEADERS) \
4650 $(XFIXESHEADERS) \
4751 $(COMPOSITEHEADERS) \
4852 $(DAMAGEHEADERS) \
Original file line number Diff line number Diff line change 2323#ifndef _PRESENT_PROTO_H_
2424#define _PRESENT_PROTO_H_
2525
26- #include <X11/extensions/presenttokens.h>
26+ #include <nx- X11/extensions/presenttokens.h>
2727
2828#define Window CARD32
2929#define Pixmap CARD32
Original file line number Diff line number Diff line change @@ -86,6 +86,10 @@ INSTPGMFLAGS =
8686#if BuildDBE
8787 DBEDIR = dbe
8888#endif
89+ #if BuildPresent
90+ PRESENTEXT = present/LibraryTargetName(present)
91+ PRESENTDIR = present
92+ #endif
8993#if BuildRECORD
9094 RECORDEXT = record/LibraryTargetName(record)
9195#endif
@@ -105,6 +109,10 @@ INSTPGMFLAGS =
105109 RENDERDIR = render
106110 RENDERLIB = $(RENDERDIR)/librender.a
107111#endif
112+ #if BuildPresent
113+ PRESENTDIR = present
114+ PRESENTEXT = present/LibraryTargetName(present)
115+ #endif
108116#if BuildRandR
109117 RANDRDIR = randr
110118 RANDRLIB = $(RANDRDIR)/librandr.a
@@ -124,11 +132,11 @@ INSTPGMFLAGS =
124132 CW = miext/cw/LibraryTargetName(cw)
125133#endif
126134 EXTENSIONS = $(COMPOSITELIB) $(DAMAGELIB) $(DAMAGE) $(FIXESLIB) $(CW) \
127- $(OTHEREXTS) $(GLXEXT) $(RANDRLIB) $(RENDERLIB)
135+ $(OTHEREXTS) $(GLXEXT) $(PRESENTEXT) $( RANDRLIB) $(RENDERLIB)
128136 OTHEREXTS = Xext/LibraryTargetName(ext) $(XKBEXT) $(XINPUTEXT) \
129137 $(DBEEXT) $(RECORDEXT) $(SITEEXTS)
130138 EXTDIRS = Xext $(XKBDIR) $(XIDIR) $(GLXDIR) \
131- $(DBEDIR) $(RECORDDIR) $(SITEEXTDIRS) \
139+ $(DBEDIR) $(PRESENTDIR) $( RECORDDIR) $(SITEEXTDIRS) \
132140 $(RANDRDIR) $(RENDERDIR) $(XPCONFIGDIR) \
133141 $(FIXESDIR) $(DAMAGEDIR) $(CWDIR) $(COMPOSITEDIR)
134142 OS = os/LibraryTargetName(os)
Original file line number Diff line number Diff line change 7575#define SERVER_PANORAMIX_MAJOR_VERSION 1
7676#define SERVER_PANORAMIX_MINOR_VERSION 1
7777
78- #ifndef NXAGENT_SERVER
7978/* Present */
8079#define SERVER_PRESENT_MAJOR_VERSION 1
8180#define SERVER_PRESENT_MINOR_VERSION 0
82- #endif /* !defined(NXAGENT_SERVER) */
8381
8482/* RandR */
8583#define SERVER_RANDR_MAJOR_VERSION 1
Original file line number Diff line number Diff line change @@ -238,6 +238,9 @@ extern void XFree86DRIExtensionInit(void);
238238#ifdef DPMSExtension
239239extern void DPMSExtensionInit (void );
240240#endif
241+ #ifdef PRESENT
242+ extern void present_extension_init (void );
243+ #endif
241244#ifdef DPSEXT
242245extern void DPSExtensionInit (void );
243246#endif
@@ -292,6 +295,9 @@ static ExtensionToggle ExtensionToggleList[] =
292295#ifdef DPMSExtension
293296 { "DPMS" , & noDPMSExtension },
294297#endif
298+ #ifdef PRESENT
299+ { "Present" , & noPresentExtension },
300+ #endif
295301#ifdef GLXEXT
296302 { "GLX" , & noGlxExtension },
297303#endif
Original file line number Diff line number Diff line change 1+ NULL =
2+
3+ #include <Server.tmpl>
4+
5+ SRCS = \
6+ present.c \
7+ present_event.c \
8+ present_fake.c \
9+ present_fence.c \
10+ present_notify.c \
11+ present_request.c \
12+ present_screen.c \
13+ $(NULL)
14+ OBJS = \
15+ present.o \
16+ present_event.o \
17+ present_fake.o \
18+ present_fence.o \
19+ present_notify.o \
20+ present_request.o \
21+ present_screen.o \
22+ $(NULL)
23+ INCLUDES = \
24+ -I$(SERVERSRC)/include \
25+ -I$(SERVERSRC)/randr \
26+ -I$(SERVERSRC)/render \
27+ -I$(XINCLUDESRC) \
28+ -I$(EXTINCSRC) \
29+ `pkg-config --cflags-only-I pixman-1` \
30+ $(NULL)
31+
32+ LINTLIBS = \
33+ ../dix/llib-ldix.ln \
34+ ../os/llib-los.ln \
35+ $(NULL)
36+
37+ RESENT_DEFINES = \
38+ -DPRESENT_FUTURE_VERSION=0 \
39+ $(NULL)
40+
41+ NormalLibraryObjectRule()
42+
43+ NormalLibraryTarget(present,$(OBJS))
44+
45+ LintLibraryTarget(present,$(SRCS))
46+ NormalLintTarget($(SRCS))
47+
48+
49+ DependTarget()
Original file line number Diff line number Diff line change 2323#ifndef _PRESENT_H_
2424#define _PRESENT_H_
2525
26- #include <X11/extensions/presentproto.h>
26+ #include <nx- X11/extensions/presentproto.h>
2727#include "randrstr.h"
2828#include "presentext.h"
2929
Original file line number Diff line number Diff line change 2323#ifndef _PRESENT_PRIV_H_
2424#define _PRESENT_PRIV_H_
2525
26- #include <X11/X.h>
26+ #include <nx- X11/X.h>
2727#include "scrnintstr.h"
2828#include "misc.h"
2929#include "list.h"
You can’t perform that action at this time.
0 commit comments