3 topsrcdir
= @top_srcdir@
7 include $(DEPTH
)/config
/autoconf.mk
19 gfxCachedTempSurface.h \
38 gfxTextRunWordCache.h \
39 gfxUnicodeProperties.h \
46 GLContextProviderImpl.h \
47 nsCoreAnimationSupport.h \
53 gfxSharedImageSurface.h \
57 ifeq ($(MOZ_WIDGET_TOOLKIT
),android
)
59 gfxAndroidPlatform.h \
65 ifeq ($(MOZ_WIDGET_TOOLKIT
),beos
)
75 ifeq ($(MOZ_WIDGET_TOOLKIT
),cocoa
)
79 gfxQuartzImageSurface.h \
80 gfxQuartzPDFSurface.h \
81 gfxQuartzNativeDrawing.h \
85 ifeq ($(MOZ_WIDGET_TOOLKIT
),gtk2
)
88 gfxGdkNativeRenderer.h \
97 gfxXlibNativeRenderer.h \
103 EXPORTS
+= gfxPangoFonts.h
105 EXPORTS
+= gfxFT2Fonts.h
109 EXPORTS
+= gfxDirectFBSurface.h
113 ifeq ($(MOZ_WIDGET_TOOLKIT
),os2
)
122 ifeq ($(MOZ_WIDGET_TOOLKIT
),qt
)
125 gfxQPainterSurface.h \
126 gfxQtNativeRenderer.h \
139 EXPORTS
+= gfxPangoFonts.h
141 EXPORTS
+= gfxFT2Fonts.h
145 ifeq ($(MOZ_WIDGET_TOOLKIT
),windows
)
148 gfxWindowsPlatform.h \
149 gfxWindowsSurface.h \
150 gfxWindowsNativeDrawing.h \
169 gfxAlphaRecovery.
cpp \
171 gfxCachedTempSurface.
cpp \
174 gfxImageSurface.
cpp \
176 gfxFontMissingGlyphs.
cpp \
184 gfxPlatformFontList.
cpp \
188 gfxTextRunCache.
cpp \
189 gfxTextRunWordCache.
cpp \
192 gfxUnicodeProperties.
cpp \
193 gfxScriptItemizer.
cpp \
194 gfxHarfBuzzShaper.
cpp \
196 GLContextProviderOSMesa.
cpp \
199 # Are we targeting x86 or x64? If so, build gfxAlphaRecoverySSE2.cpp.
200 # The file uses SSE2 intrinsics, so it needs special compile flags on some
202 ifneq (,$(INTEL_ARCHITECTURE
))
203 CPPSRCS
+= gfxAlphaRecoverySSE2.
cpp
206 gfxAlphaRecoverySSE2.
$(OBJ_SUFFIX
): CXXFLAGS
+=-msse2
209 ifdef SOLARIS_SUNPRO_CXX
210 gfxAlphaRecoverySSE2.
$(OBJ_SUFFIX
): OS_CXXFLAGS
+= -xarch
=sse2
-xO4
217 gfxSharedImageSurface.
cpp \
221 SHARED_LIBRARY_LIBS
+= \
222 ..
/layers
/$(LIB_PREFIX
)layers.
$(LIB_SUFFIX
) \
226 ifndef MOZ_ENABLE_LIBXUL
227 EXTRA_DSO_LIBS
= gkgfx ycbcr
228 ifeq (,$(filter-out WINNT WINCE OS2
,$(OS_ARCH
)))
229 CPPSRCS
+= gfxDllDeps.
cpp
233 EXTRA_DSO_LDOPTS
+= \
237 $(MOZ_UNICHARUTIL_LIBS
) \
242 $(MOZ_HARFBUZZ_LIBS
) \
246 ifeq ($(MOZ_WIDGET_TOOLKIT
),windows
)
247 CPPSRCS
+= gfxWindowsPlatform.
cpp \
248 gfxWindowsSurface.
cpp \
249 gfxWindowsNativeDrawing.
cpp \
254 CPPSRCS
+= gfxFT2Fonts.
cpp \
260 EXTRA_DSO_LDOPTS
+= $(FT2_LIBS
)
262 OS_LIBS
+= $(call EXPAND_LIBNAME
,ddraw
)
264 ifdef MOZ_ENABLE_DWRITE_FONT
265 CPPSRCS
+= gfxDWriteFonts.
cpp \
266 gfxDWriteShaper.
cpp \
267 gfxDWriteTextAnalysis.
cpp \
268 gfxDWriteCommon.
cpp \
270 gfxDWriteFontList.
cpp \
273 CPPSRCS
+= gfxGDIFont.
cpp \
276 gfxUniscribeShaper.
cpp \
278 _OS_LIBS
= usp10 msimg32 ole32 version advapi32
281 CPPSRCS
+= gfxPDFSurface.
cpp
286 OS_LIBS
+= $(call EXPAND_LIBNAME
,$(_OS_LIBS
))
288 ifdef MOZ_ENABLE_D3D9_LAYER
289 DEFINES
+= -DMOZ_ENABLE_D3D9_LAYER
292 ifdef MOZ_ENABLE_D3D10_LAYER
293 DEFINES
+= -DMOZ_ENABLE_D3D10_LAYER
296 ACDEFINES
+= -UWIN32_LEAN_AND_MEAN
299 ifeq ($(MOZ_WIDGET_TOOLKIT
),android
)
304 gfxAndroidPlatform.
cpp \
314 ifeq ($(MOZ_WIDGET_TOOLKIT
),os2
)
315 CPPSRCS
+= gfxOS2Fonts.
cpp \
319 gfxFontconfigUtils.
cpp \
321 CPPSRCS
+= gfxPDFSurface.
cpp
324 ifeq ($(MOZ_WIDGET_TOOLKIT
),gtk2
)
327 CPPSRCS
+= gfxPangoFonts.
cpp
329 CPPSRCS
+= gfxFT2Fonts.
cpp
333 CPPSRCS
+= gfxXlibSurface.
cpp gfxXlibNativeRenderer.
cpp
336 CPPSRCS
+= gfxPlatformGtk.
cpp gfxGdkNativeRenderer.
cpp
337 CPPSRCS
+= gfxPDFSurface.
cpp gfxPSSurface.
cpp
338 CPPSRCS
+= gfxFontconfigUtils.
cpp
339 CPPSRCS
+= gfxFT2FontBase.
cpp
340 CPPSRCS
+= gfxFT2Utils.
cpp
341 CPPSRCS
+= nsUnicodeRange.
cpp
344 CSRCS
= cairo-gdk-utils.c
347 EXTRA_DSO_LDOPTS
+= $(MOZ_PANGO_LIBS
) $(ZLIB_LIBS
) $(XLDFLAGS
) $(XLIBS
) $(XEXT_LIBS
)
351 CPPSRCS
+= gfxDirectFBSurface.
cpp
354 ifeq ($(MOZ_WIDGET_TOOLKIT
),qt
)
355 CPPSRCS
+= gfxQtPlatform.
cpp gfxQPainterSurface.
cpp
356 CPPSRCS
+= gfxXlibSurface.
cpp gfxQtNativeRenderer.
cpp
358 CPPSRCS
+= gfxPangoFonts.
cpp
360 CPPSRCS
+= gfxFT2Fonts.
cpp
362 CPPSRCS
+= gfxFT2FontBase.
cpp
363 CPPSRCS
+= gfxFT2Utils.
cpp
364 CPPSRCS
+= gfxFontconfigUtils.
cpp
365 CPPSRCS
+= nsUnicodeRange.
cpp
366 CPPSRCS
+= gfxPDFSurface.
cpp
367 EXTRA_DSO_LDOPTS
+= $(MOZ_PANGO_LIBS
) $(ZLIB_LIBS
) $(XLDFLAGS
) $(XLIBS
) $(CAIRO_FT_LIBS
) $(XEXT_LIBS
)
370 ifeq ($(MOZ_WIDGET_TOOLKIT
),beos
)
371 CPPSRCS
+= gfxBeOSSurface.
cpp gfxBeOSPlatform.
cpp
372 CPPSRCS
+= gfxPangoFonts.
cpp
373 CPPSRCS
+= gfxFT2FontBase.
cpp
374 CPPSRCS
+= gfxFT2Utils.
cpp
375 #CPPSRCS += gfxPDFSurface.cpp
376 CPPSRCS
+= gfxFontconfigUtils.
cpp
377 CPPSRCS
+= nsUnicodeRange.
cpp
378 EXTRA_DSO_LDOPTS
+= $(MOZ_PANGO_LIBS
) $(CAIRO_FT_LIBS
) -lfontconfig
381 ifeq ($(MOZ_WIDGET_TOOLKIT
),cocoa
)
383 gfxQuartzSurface.
cpp \
384 gfxQuartzImageSurface.
cpp \
385 gfxQuartzPDFSurface.
cpp \
388 gfxCoreTextShaper.
cpp \
390 #CPPSRCS += gfxPDFSurface.cpp
391 CPPSRCS
+= nsUnicodeRange.
cpp
392 CPPSRCS
+= gfxQuartzNativeDrawing.
cpp
395 gfxMacPlatformFontList.mm \
396 nsCoreAnimationSupport.mm \
399 # Always link with OpenGL/AGL
400 EXTRA_DSO_LDOPTS
+= -framework OpenGL
-framework AGL
-framework QuickTime
-framework AppKit
-framework QuartzCore
405 EXTRA_DSO_LDOPTS
+= $(TK_LIBS
)
409 ifeq ($(MOZ_WIDGET_TOOLKIT
),windows
)
416 ifeq ($(MOZ_WIDGET_TOOLKIT
),cocoa
)
420 ifeq ($(MOZ_WIDGET_TOOLKIT
),gtk2
)
421 ifdef MOZ_PLATFORM_MAEMO
428 ifeq ($(MOZ_WIDGET_TOOLKIT
),qt
)
429 ifdef MOZ_PLATFORM_MAEMO
436 ifeq ($(MOZ_WIDGET_TOOLKIT
),android
)
440 # Mac is a special snowflake
441 ifeq ($(GL_PROVIDER
),CGL
)
442 CMMSRCS
+= GLContextProvider
$(GL_PROVIDER
).mm
444 CPPSRCS
+= GLContextProvider
$(GL_PROVIDER
).
cpp
447 # Win32 is a special snowflake, for ANGLE
448 ifeq ($(MOZ_WIDGET_TOOLKIT
),windows
)
449 CPPSRCS
+= GLContextProviderEGL.
cpp
452 DEFINES
+= -DIMPL_THEBES
-DWOFF_MOZILLA_CLIENT
454 include $(topsrcdir
)/config
/rules.mk
455 include $(topsrcdir
)/ipc
/chromium
/chromium-config.mk
457 DEFINES
:= $(filter-out -DUNICODE
,$(DEFINES
))
459 CXXFLAGS
+= $(MOZ_CAIRO_CFLAGS
) $(TK_CFLAGS
)
460 CFLAGS
+= $(MOZ_CAIRO_CFLAGS
) $(TK_CFLAGS
)
462 ifeq ($(MOZ_WIDGET_TOOLKIT
),windows
)
464 CXXFLAGS
+= $(CAIRO_FT_CFLAGS
)
468 ifeq ($(MOZ_WIDGET_TOOLKIT
),android
)
469 CXXFLAGS
+= $(CAIRO_FT_CFLAGS
)
472 ifeq ($(MOZ_WIDGET_TOOLKIT
),gtk2
)
473 CXXFLAGS
+= $(MOZ_PANGO_CFLAGS
)
476 ifeq ($(MOZ_WIDGET_TOOLKIT
),beos
)
477 CXXFLAGS
+= $(CAIRO_FT_CFLAGS
)
480 ifeq ($(MOZ_WIDGET_TOOLKIT
),os2
)
481 CXXFLAGS
+= $(CAIRO_FT_CFLAGS
)
484 ifeq ($(MOZ_WIDGET_TOOLKIT
),qt
)
485 CXXFLAGS
+= $(CAIRO_FT_CFLAGS
) $(MOZ_PANGO_CFLAGS
)