2
# The contents of this file are subject to the Netscape Public
3
# License Version 1.1 (the "License"); you may not use this file
4
# except in compliance with the License. You may obtain a copy of
5
# the License at http://www.mozilla.org/NPL/
7
# Software distributed under the License is distributed on an "AS
8
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
# implied. See the License for the specific language governing
10
# rights and limitations under the License.
12
# The Original Code is mozilla.org code.
14
# The Initial Developer of the Original Code is Netscape
15
# Communications Corporation. Portions created by Netscape are
16
# Copyright (C) 1998 Netscape Communications Corporation. All
20
# Roland Mainz <roland.mainz@informatik.med.uni-giessen.de>
24
topsrcdir = @top_srcdir@
28
include $(DEPTH)/config/autoconf.mk
32
LIBRARY_NAME = gfx_xlib
35
MODULE_NAME = nsGfxXlibModule
55
# Sun's Complex Text Layout support
60
ifdef MOZ_ENABLE_XPRINT
61
REQUIRES += xprintutil
64
# Code shared between GTK+, Xlib and Xprint gfx modules
65
# (empty for now - but this will be filled soon...)
66
X11SHARED_LCPPSRCS = \
70
$(X11SHARED_LCPPSRCS) \
71
nsDeviceContextSpecFactoryX.cpp \
72
nsDeviceContextSpecXlib.cpp \
73
nsDeviceContextXlib.cpp \
74
nsDrawingSurfaceXlib.cpp \
75
nsFontMetricsXlib.cpp \
76
nsGfxFactoryXlib.cpp \
79
nsRenderingContextXlib.cpp \
81
nsScreenManagerXlib.cpp \
82
nsPrintOptionsXlib.cpp \
90
GARBAGE += $(X11SHARED_LCPPSRCS) $(wildcard *.$(OBJ_SUFFIX))
92
include $(topsrcdir)/config/rules.mk
94
EXTRA_DSO_LDOPTS += -L$(DIST)/bin -lxlibrgb $(MOZ_XLIB_LDFLAGS)
95
CXXFLAGS += $(MOZ_XLIB_CFLAGS)
99
GFX_XIE_LIBS += $(MOZ_XIE_LIBS)
102
EXTRA_DSO_LDOPTS += \
109
$(MOZ_UNICHARUTIL_LIBS) \
112
DEFINES += -DUSE_MOZILLA_TYPES
114
ifdef MOZ_ENABLE_POSTSCRIPT
115
DEFINES += -DUSE_POSTSCRIPT
118
ifdef MOZ_ENABLE_XPRINT
119
DEFINES += -DUSE_XPRINT
120
EXTRA_DSO_LDOPTS += \
122
$(MOZ_XPRINT_LDFLAGS)
129
-I$(srcdir)/../shared \
130
-I$(srcdir)/../x11shared \
133
ifdef MOZ_ENABLE_XPRINT
134
#export:: $(addprefix $(srcdir)/../x11shared/,$(X11SHARED_LCPPSRCS))
137
# disabled until X11SHARED_LCPPSRCS becomes non-empty
138
# export:: $(addprefix $(srcdir)/../x11shared/,$(X11SHARED_LCPPSRCS))