1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
13 'gfxBaseSharedMemorySurface.h',
15 'gfxCachedTempSurface.h',
38 'gfxReusableImageSurfaceWrapper.h',
39 'gfxReusableSharedImageSurfaceWrapper.h',
40 'gfxReusableSurfaceWrapper.h',
41 'gfxSharedImageSurface.h',
42 'gfxSharedQuartzSurface.h',
54 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
56 'gfxAndroidPlatform.h',
62 'gfxAndroidPlatform.cpp',
70 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
72 'gfxAndroidPlatform.h',
78 'gfxAndroidPlatform.cpp',
86 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
89 'gfxQuartzImageSurface.h',
90 'gfxQuartzNativeDrawing.h',
94 'gfxCoreTextShaper.cpp',
97 'gfxQuartzImageSurface.cpp',
98 'gfxQuartzNativeDrawing.cpp',
99 'gfxQuartzSurface.cpp',
100 'nsUnicodeRange.cpp',
102 elif CONFIG['MOZ_WIDGET_GTK']:
105 'gfxGdkNativeRenderer.h',
112 'gfxFontconfigUtils.cpp',
113 'gfxFT2FontBase.cpp',
115 'gfxGdkNativeRenderer.cpp',
117 'gfxPlatformGtk.cpp',
119 'nsUnicodeRange.cpp',
122 if CONFIG['MOZ_X11']:
124 'gfxXlibNativeRenderer.h',
128 'gfxXlibNativeRenderer.cpp',
129 'gfxXlibSurface.cpp',
132 if CONFIG['MOZ_PANGO']:
133 EXPORTS += ['gfxPangoFonts.h']
138 EXPORTS += ['gfxFT2Fonts.h']
142 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'os2':
150 'gfxFontconfigUtils.cpp',
152 'gfxOS2Platform.cpp',
157 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt':
161 'gfxQPainterSurface.h',
162 'gfxQtNativeRenderer.h',
166 'gfxFontconfigUtils.cpp',
167 'gfxFT2FontBase.cpp',
170 'gfxQPainterSurface.cpp',
172 'nsUnicodeRange.cpp',
175 if CONFIG['MOZ_X11']:
180 'gfxQtNativeRenderer.cpp',
181 'gfxXlibSurface.cpp',
184 if CONFIG['MOZ_PANGO']:
185 EXPORTS += ['gfxPangoFonts.h']
190 EXPORTS += ['gfxFT2Fonts.h']
194 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
201 'gfxPlatformFontList.h',
202 'gfxWindowsNativeDrawing.h',
203 'gfxWindowsPlatform.h',
204 'gfxWindowsSurface.h',
208 'gfxGDIFontList.cpp',
211 'gfxUniscribeShaper.cpp',
212 'gfxWindowsNativeDrawing.cpp',
213 'gfxWindowsPlatform.cpp',
214 'gfxWindowsSurface.cpp',
215 'nsUnicodeRange.cpp',
217 if CONFIG['MOZ_ENABLE_DWRITE_FONT']:
220 'gfxDWriteCommon.cpp',
221 'gfxDWriteFontList.cpp',
222 'gfxDWriteFonts.cpp',
223 'gfxDWriteShaper.cpp',
224 'gfxDWriteTextAnalysis.cpp',
227 # Are we targeting x86 or x64? If so, build gfxAlphaRecoverySSE2.cpp.
228 if CONFIG['INTEL_ARCHITECTURE']:
230 'gfxAlphaRecoverySSE2.cpp',
235 'gfxAlphaRecovery.cpp',
237 'gfxBaseSharedMemorySurface.cpp',
239 'gfxCachedTempSurface.cpp',
243 'gfxFontFeatures.cpp',
244 'gfxFontMissingGlyphs.cpp',
247 'gfxGradientCache.cpp',
248 'gfxGraphiteShaper.cpp',
249 'gfxHarfBuzzShaper.cpp',
250 'gfxImageSurface.cpp',
255 'gfxPlatformFontList.cpp',
257 'gfxReusableImageSurfaceWrapper.cpp',
258 'gfxReusableSharedImageSurfaceWrapper.cpp',
259 'gfxScriptItemizer.cpp',
263 'gfxUserFontSet.cpp',
265 'nsSurfaceTexture.cpp',
268 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
270 'gfxMacPlatformFontList.mm',
273 FAIL_ON_WARNINGS = not CONFIG['_MSC_VER']
275 MSVC_ENABLE_PGO = True
277 LIBRARY_NAME = 'thebes'
279 include('/ipc/chromium/chromium-config.mozbuild')
281 FINAL_LIBRARY = 'xul'