summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-01-06 23:06:15 +0000
committerAdam Jackson <ajax@nwnk.net>2006-01-06 23:06:15 +0000
commit13c9e0c094c4e34cd1e43a7cc08b2dca39a32412 (patch)
tree020691234ce7de60ba19084616ab7362d944be0a
parentfe0c838b5d8bc8d9cf5a686bb7d3e90682d2d19a (diff)
Bug #5525: Build a working Xprt. (Drew Parsons)
-rw-r--r--ChangeLog20
-rw-r--r--Xprint/Makefile.am12
-rw-r--r--Xprint/ddxInit.c5
-rw-r--r--Xprint/pcl-mono/Makefile.am5
-rw-r--r--Xprint/pcl/Makefile.am29
-rw-r--r--cfb/Makefile.am2
-rw-r--r--cfb/Makefile.am.inc13
-rw-r--r--cfb16/Makefile.am2
-rw-r--r--cfb24/Makefile.am2
-rw-r--r--cfb32/Makefile.am2
-rw-r--r--configure.ac1
-rw-r--r--mi/miinitext.c4
12 files changed, 57 insertions, 40 deletions
diff --git a/ChangeLog b/ChangeLog
index 66fcca4d7..4c2c613c6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,9 +2,23 @@
* hw/xfree86/dri/dri.c:
* hw/xfree86/dri/dristruct.h:
- Move drawable lock acquisition into DRIClipNotify from DRIValidateTree, so we only take it when
- clipping a DRI drawable instead of on every tree update. Note drawable lock acquisition per-
- screen instead of globally, and drop it in BlockHandler if necessary.
+ Move drawable lock acquisition into DRIClipNotify from DRIValidateTree,
+ so we only take it when clipping a DRI drawable instead of on every
+ tree update. Note drawable lock acquisition per-screen instead of
+ globally, and drop it in BlockHandler if necessary.
+
+ * configure.ac:
+ * Xprint/Makefile.am:
+ * Xprint/ddxInit.c:
+ * Xprint/pcl/Makefile.am:
+ * Xprint/pcl-mono/Makefile.am:
+ * cfb/Makefile.am:
+ * cfb/Makefile.am.inc:
+ * cfb16/Makefile.am:
+ * cfb24/Makefile.am:
+ * cfb32/Makefile.am:
+ * mi/miinitext.c:
+ Bug #5525: Build a working Xprt. (Drew Parsons)
2006-01-06 Adam Jackson <ajax@freedesktop.org>
diff --git a/Xprint/Makefile.am b/Xprint/Makefile.am
index 4c5e6b586..a1c636ac2 100644
--- a/Xprint/Makefile.am
+++ b/Xprint/Makefile.am
@@ -1,13 +1,17 @@
-SUBDIRS = doc pcl raster ps etc
+SUBDIRS = doc pcl pcl-mono raster ps etc
bin_PROGRAMS = Xprt
Xprt_CFLAGS = @SERVER_DEFINES@ @DIX_CFLAGS@ @XPRINT_CFLAGS@ \
- -DPRINT_ONLY_SERVER -D_XP_PRINT_SERVER_ \
- -DXPRINTDIR=\"$(prefix)/X11/xserver\"
+ -DXPRINT -DPRINT_ONLY_SERVER -D_XP_PRINT_SERVER_ \
+ -DXPRINTDIR=\"$(prefix)/X11/xserver\" \
+ -DXPRASTERDDX -DXPPCLDDX -DXPMONOPCLDDX -DXPPSDDX
Xprt_LDFLAGS = -L$(top_srcdir)
-Xprt_LDADD = @XPRINT_LIBS@ pcl/libpcl.la raster/libraster.la
+Xprt_LDADD = @XPRINT_LIBS@ ps/libps.la raster/libraster.la \
+ pcl/libpcl.la pcl-mono/libpcl.la \
+ ../mfb/libmfb.la ../mi/libmi.la \
+ ../cfb32/libcfb32.la ../cfb/libcfb.la ../Xext/libXext.la
miinitext-wrapper.c:
echo "#include \"$(top_srcdir)/mi/miinitext.c\"" >> $@
diff --git a/Xprint/ddxInit.c b/Xprint/ddxInit.c
index be16a3799..e68f26ae6 100644
--- a/Xprint/ddxInit.c
+++ b/Xprint/ddxInit.c
@@ -85,6 +85,11 @@ InitOutput(
pScreenInfo->numPixmapFormats = 0; /* get them in PrinterInitOutput */
screenInfo.numVideoScreens = 0;
+
+#ifdef PRINT_ONLY_SERVER
+ PrinterInitOutput(pScreenInfo, argc, argv);
+#endif
+
}
static void
diff --git a/Xprint/pcl-mono/Makefile.am b/Xprint/pcl-mono/Makefile.am
new file mode 100644
index 000000000..4d8dfc682
--- /dev/null
+++ b/Xprint/pcl-mono/Makefile.am
@@ -0,0 +1,5 @@
+noinst_LTLIBRARIES = libpcl.la
+
+PCL_DRIVER = -DXP_PCL_MONO
+
+include ../pcl/Makefile.am.inc
diff --git a/Xprint/pcl/Makefile.am b/Xprint/pcl/Makefile.am
index 144411c55..90133e8e2 100644
--- a/Xprint/pcl/Makefile.am
+++ b/Xprint/pcl/Makefile.am
@@ -1,31 +1,6 @@
noinst_LTLIBRARIES = libpcl.la
-INCLUDES = -I$(top_srcdir)/Xprint -I$(top_srcdir)/cfb -I$(top_srcdir)/mfb
+PCL_DRIVER = -DXP_PCL_COLOR
-AM_CFLAGS = @SERVER_DEFINES@ @DIX_CFLAGS@ @XPRINT_CFLAGS@ \
- -D_XP_PRINT_SERVER_ -DPSZ=8
+include ../pcl/Makefile.am.inc
-libpcl_la_SOURCES = \
- PclArc.c \
- PclArea.c \
- PclAttr.c \
- PclAttVal.c \
- PclColor.c \
- PclCursor.c \
- PclDef.h \
- PclFonts.c \
- PclGC.c \
- Pcl.h \
- PclInit.c \
- PclLine.c \
- Pclmap.h \
- PclMisc.c \
- PclPixel.c \
- PclPixmap.c \
- PclPolygon.c \
- PclPrint.c \
- PclSFonts.c \
- PclSFonts.h \
- PclSpans.c \
- PclText.c \
- PclWindow.c
diff --git a/cfb/Makefile.am b/cfb/Makefile.am
index 1f5687469..54064c395 100644
--- a/cfb/Makefile.am
+++ b/cfb/Makefile.am
@@ -9,7 +9,7 @@ libcfb_la_SOURCES = cfb8bit.c cfbteblt8.c cfbglrop8.c cfbpush8.c cfbrctstp8.c \
libcfb_la_LIBADD = ../mfb/libmfb.la
-AM_CFLAGS = -DPSZ=8 $(DIX_CFLAGS) @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
+AM_CFLAGS = -DPSZ=8 $(DIX_CFLAGS) $(PLATFORMDEFS) @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
INCLUDES = $(CFB_INCLUDES) -I$(top_srcdir)/hw/xfree86/os-support
diff --git a/cfb/Makefile.am.inc b/cfb/Makefile.am.inc
index f28816dd5..e1ef67227 100644
--- a/cfb/Makefile.am.inc
+++ b/cfb/Makefile.am.inc
@@ -138,3 +138,16 @@ cfbply1rctG.c:
cfbglrop8.c:
echo "#define GLYPHROP" > $@
echo "#include \"$(top_srcdir)/cfb/cfbglblt8.c\"" >> $@
+
+
+if XPRINT
+
+PLATFORMDEFS = -DXFREE86
+
+cfbmskbits.h: compiler.h
+
+compiler.h:
+ echo "#include \"$(top_srcdir)/hw/xfree86/common/compiler.h\"" >> $@
+
+endif
+
diff --git a/cfb16/Makefile.am b/cfb16/Makefile.am
index 2bda708fc..b062ddd6b 100644
--- a/cfb16/Makefile.am
+++ b/cfb16/Makefile.am
@@ -6,4 +6,4 @@ libcfb16_la_SOURCES = $(libcfb_common_sources) $(libcfb_gen_sources)
INCLUDES = $(CFB_INCLUDES) -I$(top_srcdir)/hw/xfree86/os-support
-AM_CFLAGS = -DPSZ=16 $(DIX_CFLAGS) @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
+AM_CFLAGS = -DPSZ=16 $(DIX_CFLAGS) $(PLATFORMDEFS) @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
diff --git a/cfb24/Makefile.am b/cfb24/Makefile.am
index 97b460015..9a40ac780 100644
--- a/cfb24/Makefile.am
+++ b/cfb24/Makefile.am
@@ -6,6 +6,6 @@ libcfb24_la_SOURCES = $(libcfb_common_sources) $(libcfb_gen_sources)
EXTRA_DIST = cfbrrop24.h
-AM_CFLAGS = -DPSZ=24 $(DIX_CFLAGS) @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
+AM_CFLAGS = -DPSZ=24 $(DIX_CFLAGS) $(PLATFORMDEFS) @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
INCLUDES = $(CFB_INCLUDES) -I$(top_srcdir)/hw/xfree86/os-support
diff --git a/cfb32/Makefile.am b/cfb32/Makefile.am
index 401ba2f4d..0ec8f2a7e 100644
--- a/cfb32/Makefile.am
+++ b/cfb32/Makefile.am
@@ -6,4 +6,4 @@ libcfb32_la_SOURCES = $(libcfb_common_sources) $(libcfb_gen_sources)
INCLUDES = $(CFB_INCLUDES) $(DIX_CFLAGS) -I$(top_srcdir)/hw/xfree86/os-support
-AM_CFLAGS = -DPSZ=32 @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
+AM_CFLAGS = -DPSZ=32 $(PLATFORMDEFS) @SERVER_DEFINES@ @MODULE_DEFINES@ @LOADER_DEFINES@
diff --git a/configure.ac b/configure.ac
index babba40fe..09abc1e32 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1632,6 +1632,7 @@ hw/kdrive/via/Makefile
Xprint/Makefile
Xprint/doc/Makefile
Xprint/pcl/Makefile
+Xprint/pcl-mono/Makefile
Xprint/raster/Makefile
Xprint/ps/Makefile
Xprint/etc/Makefile
diff --git a/mi/miinitext.c b/mi/miinitext.c
index 44e4508fa..bdb51f262 100644
--- a/mi/miinitext.c
+++ b/mi/miinitext.c
@@ -1,4 +1,4 @@
-/* $XdotOrg: xserver/xorg/mi/miinitext.c,v 1.27 2005/12/28 10:02:53 ajax Exp $ */
+/* $XdotOrg: xserver/xorg/mi/miinitext.c,v 1.28 2005/12/29 00:19:33 anholt Exp $ */
/* $XFree86: xc/programs/Xserver/mi/miinitext.c,v 3.67 2003/01/12 02:44:27 dawes Exp $ */
/***********************************************************
@@ -250,7 +250,7 @@ typedef void (*InitExtension)(INITARGS);
#include <X11/extensions/lbxstr.h>
#endif
#ifdef XPRINT
-#include "Print.h"
+#include <X11/extensions/Print.h>
#endif
#ifdef XAPPGROUP
#define _XAG_SERVER_