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

« back to all changes in this revision

Viewing changes to gfx/2d/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
 
#
2
 
# This Source Code Form is subject to the terms of the Mozilla Public
3
 
# License, v. 2.0. If a copy of the MPL was not distributed with this
4
 
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
 
 
6
 
DEPTH           = @DEPTH@
7
 
topsrcdir       = @top_srcdir@
8
 
srcdir          = @srcdir@
9
 
VPATH           = @srcdir@
10
 
 
11
 
include $(DEPTH)/config/autoconf.mk
12
 
 
13
 
MODULE          = gfx2d
14
 
LIBRARY_NAME    = gfx2d
15
 
LIBXUL_LIBRARY  = 1
16
 
EXPORT_LIBRARY  = 1
17
 
 
18
 
EXPORTS_NAMESPACES = mozilla/gfx
19
 
EXPORTS_mozilla/gfx     = \
20
 
        2D.h \
21
 
        BasePoint.h \
22
 
        BasePoint3D.h \
23
 
        BasePoint4D.h \
24
 
        BaseMargin.h \
25
 
        BaseRect.h \
26
 
        BaseSize.h \
27
 
        Blur.h \
28
 
        PathHelpers.h \
29
 
        Point.h \
30
 
        Matrix.h \
31
 
        Rect.h \
32
 
        Types.h \
33
 
        UserData.h \
34
 
        $(NULL)
35
 
 
36
 
CPPSRCS = \
37
 
        Factory.cpp \
38
 
        Matrix.cpp \
39
 
        DrawTargetCairo.cpp \
40
 
        SourceSurfaceCairo.cpp \
41
 
        PathCairo.cpp \
42
 
        Blur.cpp \
43
 
        ScaledFontBase.cpp \
44
 
        DrawTargetDual.cpp \
45
 
        ImageScaling.cpp \
46
 
        SourceSurfaceRawData.cpp \
47
 
        $(NULL)
48
 
 
49
 
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
50
 
CPPSRCS += \
51
 
           SourceSurfaceCG.cpp \
52
 
           DrawTargetCG.cpp \
53
 
           PathCG.cpp \
54
 
           $(NULL)
55
 
 
56
 
CMMSRCS = \
57
 
           QuartzSupport.mm \
58
 
           $(NULL)
59
 
 
60
 
EXPORTS_mozilla/gfx     += \
61
 
           QuartzSupport.h \
62
 
           MacIOSurface.h \
63
 
           $(NULL)
64
 
endif
65
 
 
66
 
DEFINES += -DMOZ_GFX -DUSE_CAIRO -DGFX2D_INTERNAL
67
 
 
68
 
ifdef MOZ_ENABLE_SKIA
69
 
CPPSRCS += \
70
 
        SourceSurfaceSkia.cpp \
71
 
        DrawTargetSkia.cpp \
72
 
        PathSkia.cpp \
73
 
        $(NULL)
74
 
 
75
 
DEFINES += -DUSE_SKIA
76
 
 
77
 
endif
78
 
 
79
 
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
80
 
ifdef MOZ_ENABLE_SKIA
81
 
CPPSRCS += \
82
 
        ScaledFontMac.cpp \
83
 
        $(NULL)
84
 
 
85
 
endif
86
 
endif
87
 
 
88
 
ifeq ($(MOZ_WIDGET_TOOLKIT),$(findstring $(MOZ_WIDGET_TOOLKIT),android gtk2 gonk qt))
89
 
CPPSRCS += \
90
 
        ScaledFontFreetype.cpp \
91
 
        $(NULL)
92
 
DEFINES += -DMOZ_ENABLE_FREETYPE
93
 
endif
94
 
 
95
 
ifeq (android,$(MOZ_WIDGET_TOOLKIT))
96
 
DEFINES += -DSK_BUILD_FOR_ANDROID_NDK
97
 
endif
98
 
 
99
 
DEFINES += -DSK_A32_SHIFT=24 -DSK_R32_SHIFT=16 -DSK_G32_SHIFT=8 -DSK_B32_SHIFT=0
100
 
 
101
 
ifdef MOZ_DEBUG
102
 
DEFINES += -DGFX_LOG_DEBUG -DGFX_LOG_WARNING
103
 
endif
104
 
 
105
 
# Are we targeting x86 or x64?  If so, build SSE2 files.
106
 
ifneq (,$(INTEL_ARCHITECTURE))
107
 
# VC2005 doesn't support _mm_castsi128_ps, so SSE2 is turned off
108
 
ifneq (1400,$(_MSC_VER))
109
 
CPPSRCS += ImageScalingSSE2.cpp
110
 
DEFINES += -DUSE_SSE2
111
 
endif
112
 
endif
113
 
 
114
 
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
115
 
CPPSRCS += \
116
 
        DrawTargetD2D.cpp \
117
 
        SourceSurfaceD2D.cpp \
118
 
        SourceSurfaceD2DTarget.cpp \
119
 
        PathD2D.cpp \
120
 
        ScaledFontDWrite.cpp \
121
 
        $(NULL)
122
 
DEFINES += -DWIN32 -DINITGUID
123
 
 
124
 
ifdef MOZ_ENABLE_SKIA
125
 
CPPSRCS += \
126
 
        ScaledFontWin.cpp \
127
 
        $(NULL)
128
 
endif
129
 
endif
130
 
 
131
 
include $(topsrcdir)/config/rules.mk
132
 
 
133
 
#ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
134
 
#CPPSRCS        += \
135
 
#        DrawTargetCG.cpp \
136
 
#        SourceSurfaceCG.cpp \
137
 
#       $(NULL)
138
 
#
139
 
## Always link with OpenGL/AGL
140
 
#EXTRA_DSO_LDOPTS += -framework OpenGL -framework AGL -framework QuickTime -framework AppKit -framework QuartzCore
141
 
#endif
142
 
 
143
 
# The file uses SSE2 intrinsics, so it needs special compile flags on some
144
 
# compilers.
145
 
ifneq (,$(INTEL_ARCHITECTURE))
146
 
ifdef GNU_CC
147
 
ImageScalingSSE2.$(OBJ_SUFFIX): CXXFLAGS+=-msse2
148
 
endif
149
 
 
150
 
ifdef SOLARIS_SUNPRO_CXX
151
 
ImageScalingSSE2.$(OBJ_SUFFIX): OS_CXXFLAGS += -xarch=sse2 -xO4
152
 
endif
153
 
endif
154
 
 
155
 
CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(MOZ_PIXMAN_CFLAGS)