~ubuntu-branches/ubuntu/quantal/enigmail/quantal-security

« back to all changes in this revision

Viewing changes to gfx/thebes/Makefile.in

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2013-09-13 16:02:15 UTC
  • mfrom: (0.12.16)
  • Revision ID: package-import@ubuntu.com-20130913160215-u3g8nmwa0pdwagwc
Tags: 2:1.5.2-0ubuntu0.12.10.1
* New upstream release v1.5.2 for Thunderbird 24

* Build enigmail using a stripped down Thunderbird 17 build system, as it's
  now quite difficult to build the way we were doing previously, with the
  latest Firefox build system
* Add debian/patches/no_libxpcom.patch - Don't link against libxpcom, as it
  doesn't exist anymore (but exists in the build system)
* Add debian/patches/use_sdk.patch - Use the SDK version of xpt.py and
  friends
* Drop debian/patches/ipc-pipe_rename.diff (not needed anymore)
* Drop debian/patches/makefile_depth.diff (not needed anymore)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# This Source Code Form is subject to the terms of the Mozilla Public
2
 
# License, v. 2.0. If a copy of the MPL was not distributed with this
3
 
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
 
 
5
 
DEPTH           = @DEPTH@
6
 
topsrcdir       = @top_srcdir@
7
 
srcdir          = @srcdir@
8
 
VPATH           = @srcdir@
9
 
 
10
 
include $(DEPTH)/config/autoconf.mk
11
 
 
12
 
MODULE          = thebes
13
 
LIBRARY_NAME    = thebes
14
 
LIBXUL_LIBRARY  = 1
15
 
EXPORT_LIBRARY  = 1
16
 
 
17
 
EXPORTS = \
18
 
        gfx2DGlue.h \
19
 
        gfx3DMatrix.h \
20
 
        gfxASurface.h \
21
 
        gfxAlphaRecovery.h \
22
 
        gfxBlur.h \
23
 
        gfxCachedTempSurface.h \
24
 
        gfxColor.h \
25
 
        gfxContext.h \
26
 
        gfxDrawable.h \
27
 
        gfxFailure.h \
28
 
        gfxFont.h \
29
 
        gfxFontConstants.h \
30
 
        gfxFontFeatures.h \
31
 
        gfxFontUtils.h \
32
 
        gfxFontTest.h \
33
 
        gfxImageSurface.h \
34
 
        gfxLineSegment.h \
35
 
        gfxMatrix.h \
36
 
        gfxPath.h \
37
 
        gfxPattern.h \
38
 
        gfxPlatform.h \
39
 
        gfxPoint.h \
40
 
        gfxPoint3D.h \
41
 
        gfxPointH3D.h \
42
 
        gfxQuad.h \
43
 
        gfxQuaternion.h \
44
 
        gfxRect.h \
45
 
        gfxSkipChars.h \
46
 
        gfxTeeSurface.h \
47
 
        gfxTypes.h \
48
 
        gfxUtils.h \
49
 
        gfxUserFontSet.h \
50
 
        nsSurfaceTexture.h \
51
 
        gfxSharedImageSurface.h \
52
 
        gfxReusableSurfaceWrapper.h \
53
 
        $(NULL)
54
 
 
55
 
ifeq ($(MOZ_WIDGET_TOOLKIT),android)
56
 
EXPORTS += \
57
 
        gfxAndroidPlatform.h \
58
 
        gfxFT2Fonts.h \
59
 
        gfxFT2FontBase.h \
60
 
        $(NULL)
61
 
endif
62
 
 
63
 
ifeq ($(MOZ_WIDGET_TOOLKIT),gonk)
64
 
EXPORTS += \
65
 
        gfxAndroidPlatform.h \
66
 
        gfxFT2Fonts.h \
67
 
        gfxFT2FontBase.h \
68
 
        $(NULL)
69
 
endif
70
 
 
71
 
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
72
 
EXPORTS += \
73
 
        gfxPlatformMac.h \
74
 
        gfxQuartzSurface.h \
75
 
        gfxQuartzImageSurface.h \
76
 
        gfxQuartzNativeDrawing.h \
77
 
        $(NULL)
78
 
endif
79
 
 
80
 
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
81
 
EXPORTS += \
82
 
        gfxFT2FontBase.h \
83
 
        gfxGdkNativeRenderer.h \
84
 
        gfxPDFSurface.h \
85
 
        gfxPSSurface.h \
86
 
        gfxPlatformGtk.h \
87
 
        $(NULL)
88
 
 
89
 
ifdef MOZ_X11
90
 
EXPORTS += \
91
 
        gfxXlibSurface.h \
92
 
        gfxXlibNativeRenderer.h \
93
 
        $(NULL)
94
 
endif
95
 
 
96
 
ifdef MOZ_PANGO
97
 
EXPORTS += gfxPangoFonts.h
98
 
else
99
 
EXPORTS += gfxFT2Fonts.h
100
 
endif
101
 
 
102
 
endif
103
 
 
104
 
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
105
 
EXPORTS += \
106
 
        gfxOS2Fonts.h \
107
 
        gfxOS2Platform.h \
108
 
        gfxOS2Surface.h \
109
 
        gfxPDFSurface.h \
110
 
        $(NULL)
111
 
endif
112
 
 
113
 
ifeq ($(MOZ_WIDGET_TOOLKIT),qt)
114
 
EXPORTS += \
115
 
        gfxFT2FontBase.h \
116
 
        gfxQPainterSurface.h \
117
 
        gfxQtNativeRenderer.h \
118
 
        gfxQtPlatform.h \
119
 
        gfxPDFSurface.h \
120
 
        $(NULL)
121
 
 
122
 
ifdef MOZ_X11
123
 
EXPORTS += \
124
 
        gfxXlibSurface.h \
125
 
        $(NULL)
126
 
endif
127
 
 
128
 
ifdef MOZ_PANGO
129
 
EXPORTS += gfxPangoFonts.h
130
 
else
131
 
EXPORTS += gfxFT2Fonts.h
132
 
endif
133
 
endif
134
 
 
135
 
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
136
 
EXPORTS += \
137
 
        gfxPDFSurface.h \
138
 
        gfxWindowsPlatform.h \
139
 
        gfxWindowsSurface.h \
140
 
        gfxWindowsNativeDrawing.h \
141
 
        gfxDWriteFonts.h \
142
 
        gfxD2DSurface.h \
143
 
        gfxGDIFont.h \
144
 
        gfxGDIFontList.h \
145
 
        gfxPlatformFontList.h \
146
 
        $(NULL)
147
 
endif
148
 
 
149
 
CPPSRCS = \
150
 
        gfx3DMatrix.cpp \
151
 
        gfxASurface.cpp \
152
 
        gfxAlphaRecovery.cpp \
153
 
        gfxBlur.cpp \
154
 
        gfxCachedTempSurface.cpp \
155
 
        gfxContext.cpp \
156
 
        gfxDrawable.cpp \
157
 
        gfxImageSurface.cpp \
158
 
        gfxFont.cpp \
159
 
        gfxFontMissingGlyphs.cpp \
160
 
        gfxFontTest.cpp \
161
 
        gfxFontUtils.cpp \
162
 
        gfxMatrix.cpp \
163
 
        gfxPath.cpp \
164
 
        gfxPattern.cpp \
165
 
        gfxPlatform.cpp \
166
 
        gfxPlatformFontList.cpp \
167
 
        gfxRect.cpp \
168
 
        gfxSkipChars.cpp \
169
 
        gfxTeeSurface.cpp \
170
 
        gfxUserFontSet.cpp \
171
 
        gfxUtils.cpp \
172
 
        gfxScriptItemizer.cpp \
173
 
        gfxHarfBuzzShaper.cpp \
174
 
        gfxSharedImageSurface.cpp \
175
 
        gfxReusableSurfaceWrapper.cpp \
176
 
        nsSurfaceTexture.cpp \
177
 
        $(NULL)
178
 
 
179
 
ifeq ($(MOZ_WIDGET_TOOLKIT),$(findstring $(MOZ_WIDGET_TOOLKIT),android gtk2 gonk qt))
180
 
DEFINES += -DMOZ_ENABLE_FREETYPE
181
 
endif
182
 
 
183
 
ifdef MOZ_GRAPHITE
184
 
DEFINES += -DGRAPHITE2_STATIC
185
 
CPPSRCS += \
186
 
        gfxGraphiteShaper.cpp \
187
 
        $(NULL)
188
 
endif
189
 
 
190
 
# Are we targeting x86 or x64?  If so, build gfxAlphaRecoverySSE2.cpp.
191
 
ifneq (,$(INTEL_ARCHITECTURE))
192
 
CPPSRCS += gfxAlphaRecoverySSE2.cpp
193
 
endif
194
 
 
195
 
SHARED_LIBRARY_LIBS += \
196
 
        ../layers/$(LIB_PREFIX)layers.$(LIB_SUFFIX) \
197
 
        $(NULL)
198
 
 
199
 
 
200
 
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
201
 
 
202
 
CPPSRCS +=      gfxWindowsPlatform.cpp \
203
 
                gfxWindowsSurface.cpp \
204
 
                gfxWindowsNativeDrawing.cpp \
205
 
                nsUnicodeRange.cpp \
206
 
                $(NULL)
207
 
 
208
 
ifdef MOZ_ENABLE_DWRITE_FONT
209
 
CPPSRCS += gfxDWriteFonts.cpp \
210
 
           gfxDWriteShaper.cpp \
211
 
           gfxDWriteTextAnalysis.cpp \
212
 
           gfxDWriteCommon.cpp \
213
 
           gfxD2DSurface.cpp \
214
 
           gfxDWriteFontList.cpp \
215
 
           $(NULL)
216
 
endif
217
 
 
218
 
CPPSRCS += gfxGDIFont.cpp \
219
 
           gfxGDIFontList.cpp \
220
 
           gfxGDIShaper.cpp \
221
 
           gfxUniscribeShaper.cpp \
222
 
           $(NULL)
223
 
 
224
 
CPPSRCS +=      gfxPDFSurface.cpp
225
 
 
226
 
ifdef MOZ_ENABLE_D3D9_LAYER
227
 
DEFINES +=      -DMOZ_ENABLE_D3D9_LAYER
228
 
endif
229
 
 
230
 
ifdef MOZ_ENABLE_D3D10_LAYER
231
 
DEFINES +=      -DMOZ_ENABLE_D3D10_LAYER
232
 
endif
233
 
 
234
 
ACDEFINES +=    -UWIN32_LEAN_AND_MEAN
235
 
endif
236
 
 
237
 
ifeq ($(MOZ_WIDGET_TOOLKIT),android)
238
 
EXPORTS += \
239
 
        gfxPDFSurface.h \
240
 
        $(NULL)
241
 
CPPSRCS += \
242
 
        gfxAndroidPlatform.cpp \
243
 
        gfxFT2Fonts.cpp \
244
 
        gfxFT2FontBase.cpp \
245
 
        gfxFT2Utils.cpp \
246
 
        gfxFT2FontList.cpp \
247
 
        gfxPDFSurface.cpp \
248
 
        nsUnicodeRange.cpp \
249
 
        $(NULL)
250
 
# This is set for "normal Android", that is, when Gecko is running on
251
 
# top of the android java runtime.
252
 
DEFINES +=      -DMOZ_USING_ANDROID_JAVA_WIDGETS
253
 
endif
254
 
 
255
 
ifeq ($(MOZ_WIDGET_TOOLKIT),gonk)
256
 
EXPORTS += \
257
 
        gfxPDFSurface.h \
258
 
        $(NULL)
259
 
CPPSRCS += \
260
 
        gfxAndroidPlatform.cpp \
261
 
        gfxFT2Fonts.cpp \
262
 
        gfxFT2FontBase.cpp \
263
 
        gfxFT2Utils.cpp \
264
 
        gfxFT2FontList.cpp \
265
 
        gfxPDFSurface.cpp \
266
 
        nsUnicodeRange.cpp \
267
 
        $(NULL)
268
 
endif
269
 
 
270
 
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
271
 
CPPSRCS +=      gfxOS2Fonts.cpp \
272
 
                gfxOS2Platform.cpp \
273
 
                gfxOS2Surface.cpp \
274
 
                nsUnicodeRange.cpp \
275
 
                gfxFontconfigUtils.cpp \
276
 
                $(NULL)
277
 
CPPSRCS +=      gfxPDFSurface.cpp
278
 
endif
279
 
 
280
 
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
281
 
 
282
 
ifdef MOZ_PANGO
283
 
CPPSRCS += gfxPangoFonts.cpp
284
 
else
285
 
CPPSRCS += gfxFT2Fonts.cpp
286
 
endif
287
 
 
288
 
ifdef MOZ_X11
289
 
CPPSRCS += gfxXlibSurface.cpp gfxXlibNativeRenderer.cpp
290
 
endif
291
 
 
292
 
CPPSRCS +=  gfxPlatformGtk.cpp gfxGdkNativeRenderer.cpp
293
 
CPPSRCS +=      gfxPDFSurface.cpp gfxPSSurface.cpp
294
 
CPPSRCS +=      gfxFontconfigUtils.cpp
295
 
CPPSRCS +=      gfxFT2FontBase.cpp
296
 
CPPSRCS +=      gfxFT2Utils.cpp
297
 
CPPSRCS +=      nsUnicodeRange.cpp
298
 
 
299
 
endif
300
 
 
301
 
ifeq ($(MOZ_WIDGET_TOOLKIT),qt)
302
 
CPPSRCS += gfxQtPlatform.cpp gfxQPainterSurface.cpp
303
 
ifdef MOZ_X11
304
 
CPPSRCS += gfxXlibSurface.cpp gfxQtNativeRenderer.cpp
305
 
endif
306
 
ifdef MOZ_PANGO
307
 
CPPSRCS += gfxPangoFonts.cpp
308
 
else
309
 
CPPSRCS += gfxFT2Fonts.cpp
310
 
endif
311
 
CPPSRCS +=      gfxFT2FontBase.cpp
312
 
CPPSRCS +=      gfxFT2Utils.cpp
313
 
CPPSRCS +=      gfxFontconfigUtils.cpp
314
 
CPPSRCS +=      nsUnicodeRange.cpp
315
 
CPPSRCS +=      gfxPDFSurface.cpp
316
 
endif
317
 
 
318
 
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
319
 
CPPSRCS += \
320
 
        gfxQuartzSurface.cpp \
321
 
        gfxQuartzImageSurface.cpp \
322
 
        gfxPlatformMac.cpp \
323
 
        gfxMacFont.cpp \
324
 
        gfxCoreTextShaper.cpp \
325
 
        $(NULL)
326
 
#CPPSRCS +=     gfxPDFSurface.cpp
327
 
CPPSRCS +=      nsUnicodeRange.cpp
328
 
CPPSRCS +=      gfxQuartzNativeDrawing.cpp
329
 
 
330
 
CMMSRCS = \
331
 
        gfxMacPlatformFontList.mm \
332
 
        $(NULL)
333
 
 
334
 
endif
335
 
 
336
 
CSRCS += woff.c
337
 
 
338
 
DEFINES += -DIMPL_THEBES -DWOFF_MOZILLA_CLIENT -DHB_DONT_DEFINE_STDINT
339
 
DEFINES += -DMOZ_OTS_REPORT_ERRORS
340
 
 
341
 
ifeq (WINNT,$(OS_TARGET))
342
 
DEFINES += -DOTS_DLL
343
 
endif
344
 
 
345
 
include $(topsrcdir)/config/rules.mk
346
 
include $(topsrcdir)/ipc/chromium/chromium-config.mk
347
 
 
348
 
DEFINES := $(filter-out -DUNICODE,$(DEFINES))
349
 
 
350
 
CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(MOZ_PIXMAN_CFLAGS) $(TK_CFLAGS)
351
 
CFLAGS += $(MOZ_CAIRO_CFLAGS) $(MOZ_PIXMAN_CFLAGS) $(TK_CFLAGS)
352
 
 
353
 
ifeq ($(MOZ_WIDGET_TOOLKIT),android)
354
 
CXXFLAGS += $(CAIRO_FT_CFLAGS)
355
 
endif
356
 
 
357
 
ifeq ($(MOZ_WIDGET_TOOLKIT),gonk)
358
 
CXXFLAGS += $(CAIRO_FT_CFLAGS)
359
 
endif
360
 
 
361
 
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
362
 
CXXFLAGS += $(MOZ_PANGO_CFLAGS)
363
 
endif
364
 
 
365
 
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
366
 
CXXFLAGS += $(CAIRO_FT_CFLAGS)
367
 
endif
368
 
 
369
 
ifeq ($(MOZ_WIDGET_TOOLKIT),qt)
370
 
CXXFLAGS += $(CAIRO_FT_CFLAGS) $(MOZ_PANGO_CFLAGS)
371
 
endif
372
 
 
373
 
# The file uses SSE2 intrinsics, so it needs special compile flags on some
374
 
# compilers.
375
 
ifneq (,$(INTEL_ARCHITECTURE))
376
 
ifdef GNU_CC
377
 
gfxAlphaRecoverySSE2.$(OBJ_SUFFIX): CXXFLAGS+=-msse2
378
 
endif
379
 
 
380
 
ifdef SOLARIS_SUNPRO_CXX
381
 
gfxAlphaRecoverySSE2.$(OBJ_SUFFIX): OS_CXXFLAGS += -xarch=sse2 -xO4
382
 
endif
383
 
endif