~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/gfx/src/xlib/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
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/
 
6
#
 
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.
 
11
#
 
12
# The Original Code is mozilla.org code.
 
13
#
 
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
 
17
# Rights Reserved.
 
18
#
 
19
# Contributor(s): 
 
20
#   Roland Mainz <roland.mainz@informatik.med.uni-giessen.de>
 
21
#
 
22
 
 
23
DEPTH           = ../../..
 
24
topsrcdir       = @top_srcdir@
 
25
srcdir          = @srcdir@
 
26
VPATH           = @srcdir@
 
27
 
 
28
include $(DEPTH)/config/autoconf.mk
 
29
 
 
30
MODULE          = gfx
 
31
EXPORTS         = nsGCCache.h
 
32
LIBRARY_NAME    = gfx_xlib
 
33
EXPORT_LIBRARY = 1
 
34
IS_COMPONENT    = 1
 
35
MODULE_NAME     = nsGfxXlibModule
 
36
GRE_MODULE      = 1
 
37
 
 
38
REQUIRES        = xpcom \
 
39
                  string \
 
40
                  xlibrgb \
 
41
                  widget \
 
42
                  js \
 
43
                  necko \
 
44
                  pref \
 
45
                  util \
 
46
                  view \
 
47
                  uconv \
 
48
                  locale \
 
49
                  unicharutil \
 
50
                  imglib2 \
 
51
                  mozcomps \
 
52
                  intl \
 
53
                  $(NULL)
 
54
 
 
55
# Sun's Complex Text Layout support
 
56
ifdef SUNCTL
 
57
REQUIRES        += ctl
 
58
endif
 
59
 
 
60
ifdef MOZ_ENABLE_XPRINT
 
61
REQUIRES        += xprintutil
 
62
endif
 
63
 
 
64
# Code shared between GTK+, Xlib and Xprint gfx modules
 
65
# (empty for now - but this will be filled soon...)
 
66
X11SHARED_LCPPSRCS = \
 
67
                $(NULL)
 
68
 
 
69
CPPSRCS         = \
 
70
                $(X11SHARED_LCPPSRCS) \
 
71
                nsDeviceContextSpecFactoryX.cpp \
 
72
                nsDeviceContextSpecXlib.cpp \
 
73
                nsDeviceContextXlib.cpp \
 
74
                nsDrawingSurfaceXlib.cpp \
 
75
                nsFontMetricsXlib.cpp \
 
76
                nsGfxFactoryXlib.cpp \
 
77
                nsImageXlib.cpp \
 
78
                nsRegionXlib.cpp \
 
79
                nsRenderingContextXlib.cpp \
 
80
                nsScreenXlib.cpp \
 
81
                nsScreenManagerXlib.cpp \
 
82
                nsPrintOptionsXlib.cpp \
 
83
                nsGCCache.cpp \
 
84
                $(NULL)
 
85
 
 
86
ifdef HAVE_XIE
 
87
CSRCS           += XIE.c
 
88
endif
 
89
 
 
90
GARBAGE         += $(X11SHARED_LCPPSRCS) $(wildcard *.$(OBJ_SUFFIX))
 
91
 
 
92
include $(topsrcdir)/config/rules.mk
 
93
 
 
94
EXTRA_DSO_LDOPTS += -L$(DIST)/bin -lxlibrgb $(MOZ_XLIB_LDFLAGS)
 
95
CXXFLAGS        += $(MOZ_XLIB_CFLAGS)
 
96
 
 
97
ifdef HAVE_XIE
 
98
DEFINES         += -DHAVE_XIE
 
99
GFX_XIE_LIBS    += $(MOZ_XIE_LIBS)
 
100
endif
 
101
 
 
102
EXTRA_DSO_LDOPTS += \
 
103
                $(LIBS_DIR)     \
 
104
                $(NSPR_LIBS)    \
 
105
                -lxpcom         \
 
106
                -lgkgfx         \
 
107
                -lgfxshared_s   \
 
108
                $(GFX_XIE_LIBS) \
 
109
                $(MOZ_UNICHARUTIL_LIBS) \
 
110
                $(NULL)
 
111
 
 
112
DEFINES         += -DUSE_MOZILLA_TYPES
 
113
 
 
114
ifdef MOZ_ENABLE_POSTSCRIPT
 
115
DEFINES         += -DUSE_POSTSCRIPT
 
116
endif
 
117
 
 
118
ifdef MOZ_ENABLE_XPRINT
 
119
DEFINES         += -DUSE_XPRINT
 
120
EXTRA_DSO_LDOPTS += \
 
121
                -lxprintutil \
 
122
                $(MOZ_XPRINT_LDFLAGS)
 
123
endif
 
124
 
 
125
LOCAL_INCLUDES  += \
 
126
                -I../.. \
 
127
                -I$(srcdir)/. \
 
128
                -I$(srcdir)/.. \
 
129
                -I$(srcdir)/../shared \
 
130
                -I$(srcdir)/../x11shared \
 
131
                $(NULL)
 
132
 
 
133
ifdef MOZ_ENABLE_XPRINT
 
134
#export:: $(addprefix $(srcdir)/../x11shared/,$(X11SHARED_LCPPSRCS))
 
135
#       $(INSTALL) $^ .
 
136
else
 
137
# disabled until X11SHARED_LCPPSRCS becomes non-empty
 
138
# export:: $(addprefix $(srcdir)/../x11shared/,$(X11SHARED_LCPPSRCS))
 
139
#       $(INSTALL) $^ .
 
140
endif
 
141