2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 12:47:21 -08:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += [
|
2013-10-01 14:02:16 -07:00
|
|
|
'DrawMode.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'gfx2DGlue.h',
|
|
|
|
'gfx3DMatrix.h',
|
|
|
|
'gfxAlphaRecovery.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'gfxASurface.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'gfxBaseSharedMemorySurface.h',
|
|
|
|
'gfxBlur.h',
|
|
|
|
'gfxCachedTempSurface.h',
|
|
|
|
'gfxColor.h',
|
|
|
|
'gfxContext.h',
|
|
|
|
'gfxDrawable.h',
|
|
|
|
'gfxFailure.h',
|
|
|
|
'gfxFont.h',
|
|
|
|
'gfxFontConstants.h',
|
|
|
|
'gfxFontFeatures.h',
|
|
|
|
'gfxFontTest.h',
|
|
|
|
'gfxFontUtils.h',
|
2013-11-07 20:50:39 -08:00
|
|
|
'gfxGradientCache.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'gfxImageSurface.h',
|
|
|
|
'gfxLineSegment.h',
|
|
|
|
'gfxMatrix.h',
|
|
|
|
'gfxPath.h',
|
|
|
|
'gfxPattern.h',
|
|
|
|
'gfxPlatform.h',
|
|
|
|
'gfxPoint.h',
|
|
|
|
'gfxPoint3D.h',
|
|
|
|
'gfxPointH3D.h',
|
|
|
|
'gfxQuad.h',
|
|
|
|
'gfxQuaternion.h',
|
|
|
|
'gfxRect.h',
|
2013-08-19 06:59:27 -07:00
|
|
|
'gfxReusableImageSurfaceWrapper.h',
|
2013-08-19 06:59:25 -07:00
|
|
|
'gfxReusableSharedImageSurfaceWrapper.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'gfxReusableSurfaceWrapper.h',
|
|
|
|
'gfxSharedImageSurface.h',
|
|
|
|
'gfxSharedQuartzSurface.h',
|
|
|
|
'gfxSkipChars.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'gfxSVGGlyphs.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'gfxTeeSurface.h',
|
|
|
|
'gfxTypes.h',
|
|
|
|
'gfxUserFontSet.h',
|
|
|
|
'gfxUtils.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'GraphicsFilter.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsSurfaceTexture.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'RoundedRect.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxAndroidPlatform.h',
|
|
|
|
'gfxFT2FontBase.h',
|
2013-05-16 15:37:18 -07:00
|
|
|
'gfxFT2Fonts.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'gfxPDFSurface.h',
|
|
|
|
]
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxAndroidPlatform.cpp',
|
|
|
|
'gfxFT2FontBase.cpp',
|
|
|
|
'gfxFT2FontList.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'gfxFT2Fonts.cpp',
|
|
|
|
'gfxFT2Utils.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxPDFSurface.cpp',
|
|
|
|
'nsUnicodeRange.cpp',
|
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxAndroidPlatform.h',
|
|
|
|
'gfxFT2FontBase.h',
|
2013-05-16 15:37:18 -07:00
|
|
|
'gfxFT2Fonts.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'gfxPDFSurface.h',
|
|
|
|
]
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxAndroidPlatform.cpp',
|
|
|
|
'gfxFT2FontBase.cpp',
|
|
|
|
'gfxFT2FontList.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'gfxFT2Fonts.cpp',
|
|
|
|
'gfxFT2Utils.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxPDFSurface.cpp',
|
|
|
|
'nsUnicodeRange.cpp',
|
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxPlatformMac.h',
|
|
|
|
'gfxQuartzImageSurface.h',
|
|
|
|
'gfxQuartzNativeDrawing.h',
|
2013-05-08 11:31:52 -07:00
|
|
|
'gfxQuartzSurface.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
]
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxCoreTextShaper.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'gfxMacFont.cpp',
|
|
|
|
'gfxPlatformMac.cpp',
|
|
|
|
'gfxQuartzImageSurface.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxQuartzNativeDrawing.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'gfxQuartzSurface.cpp',
|
|
|
|
'nsUnicodeRange.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
2013-06-11 10:40:27 -07:00
|
|
|
elif CONFIG['MOZ_WIDGET_GTK']:
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += [
|
|
|
|
'gfxFT2FontBase.h',
|
|
|
|
'gfxGdkNativeRenderer.h',
|
|
|
|
'gfxPDFSurface.h',
|
|
|
|
'gfxPlatformGtk.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'gfxPSSurface.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
]
|
|
|
|
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-10-23 16:05:43 -07:00
|
|
|
'gfxFontconfigUtils.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'gfxFT2FontBase.cpp',
|
|
|
|
'gfxFT2Utils.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxGdkNativeRenderer.cpp',
|
|
|
|
'gfxPDFSurface.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'gfxPlatformGtk.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'gfxPSSurface.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsUnicodeRange.cpp',
|
|
|
|
]
|
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
if CONFIG['MOZ_X11']:
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxXlibNativeRenderer.h',
|
2013-05-03 09:54:45 -07:00
|
|
|
'gfxXlibSurface.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
]
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxXlibNativeRenderer.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'gfxXlibSurface.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
|
|
|
|
if CONFIG['MOZ_PANGO']:
|
|
|
|
EXPORTS += ['gfxPangoFonts.h']
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxPangoFonts.cpp',
|
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
else:
|
|
|
|
EXPORTS += ['gfxFT2Fonts.h']
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxPangoFonts.cpp',
|
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'os2':
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxOS2Fonts.h',
|
|
|
|
'gfxOS2Platform.h',
|
|
|
|
'gfxOS2Surface.h',
|
|
|
|
'gfxPDFSurface.h',
|
|
|
|
]
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-10-23 16:00:23 -07:00
|
|
|
'gfxFontconfigUtils.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxOS2Fonts.cpp',
|
|
|
|
'gfxOS2Platform.cpp',
|
|
|
|
'gfxOS2Surface.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'gfxPDFSurface.cpp',
|
|
|
|
'nsUnicodeRange.cpp'
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt':
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxFT2FontBase.h',
|
2013-05-16 15:37:18 -07:00
|
|
|
'gfxPDFSurface.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'gfxQPainterSurface.h',
|
|
|
|
'gfxQtNativeRenderer.h',
|
|
|
|
'gfxQtPlatform.h',
|
|
|
|
]
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-10-23 16:05:43 -07:00
|
|
|
'gfxFontconfigUtils.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxFT2FontBase.cpp',
|
|
|
|
'gfxFT2Utils.cpp',
|
|
|
|
'gfxPDFSurface.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'gfxQPainterSurface.cpp',
|
|
|
|
'gfxQtPlatform.cpp',
|
|
|
|
'nsUnicodeRange.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
|
|
|
|
if CONFIG['MOZ_X11']:
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxXlibSurface.h',
|
|
|
|
]
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxQtNativeRenderer.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'gfxXlibSurface.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
|
|
|
|
if CONFIG['MOZ_PANGO']:
|
|
|
|
EXPORTS += ['gfxPangoFonts.h']
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxPangoFonts.cpp',
|
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
else:
|
|
|
|
EXPORTS += ['gfxFT2Fonts.h']
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxFT2Fonts.cpp',
|
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|
|
|
EXPORTS += [
|
2013-05-16 10:22:02 -07:00
|
|
|
'gfxD2DSurface.h',
|
2013-05-16 15:37:18 -07:00
|
|
|
'gfxDWriteFonts.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'gfxGDIFont.h',
|
|
|
|
'gfxGDIFontList.h',
|
2013-05-16 15:37:18 -07:00
|
|
|
'gfxPDFSurface.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'gfxPlatformFontList.h',
|
2013-05-16 15:37:18 -07:00
|
|
|
'gfxWindowsNativeDrawing.h',
|
|
|
|
'gfxWindowsPlatform.h',
|
|
|
|
'gfxWindowsSurface.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
]
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxGDIFont.cpp',
|
|
|
|
'gfxGDIFontList.cpp',
|
|
|
|
'gfxGDIShaper.cpp',
|
|
|
|
'gfxPDFSurface.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'gfxUniscribeShaper.cpp',
|
|
|
|
'gfxWindowsNativeDrawing.cpp',
|
|
|
|
'gfxWindowsPlatform.cpp',
|
|
|
|
'gfxWindowsSurface.cpp',
|
|
|
|
'nsUnicodeRange.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
if CONFIG['MOZ_ENABLE_DWRITE_FONT']:
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-10-23 16:00:23 -07:00
|
|
|
'gfxD2DSurface.cpp',
|
|
|
|
'gfxDWriteCommon.cpp',
|
|
|
|
'gfxDWriteFontList.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxDWriteFonts.cpp',
|
|
|
|
'gfxDWriteShaper.cpp',
|
|
|
|
'gfxDWriteTextAnalysis.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
# Are we targeting x86 or x64? If so, build gfxAlphaRecoverySSE2.cpp.
|
|
|
|
if CONFIG['INTEL_ARCHITECTURE']:
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxAlphaRecoverySSE2.cpp',
|
|
|
|
]
|
|
|
|
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfx3DMatrix.cpp',
|
|
|
|
'gfxAlphaRecovery.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'gfxASurface.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxBaseSharedMemorySurface.cpp',
|
|
|
|
'gfxBlur.cpp',
|
|
|
|
'gfxCachedTempSurface.cpp',
|
|
|
|
'gfxContext.cpp',
|
|
|
|
'gfxDrawable.cpp',
|
|
|
|
'gfxFont.cpp',
|
|
|
|
'gfxFontFeatures.cpp',
|
|
|
|
'gfxFontMissingGlyphs.cpp',
|
|
|
|
'gfxFontTest.cpp',
|
|
|
|
'gfxFontUtils.cpp',
|
2013-11-07 20:50:39 -08:00
|
|
|
'gfxGradientCache.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxGraphiteShaper.cpp',
|
|
|
|
'gfxHarfBuzzShaper.cpp',
|
|
|
|
'gfxImageSurface.cpp',
|
|
|
|
'gfxMatrix.cpp',
|
|
|
|
'gfxPath.cpp',
|
|
|
|
'gfxPattern.cpp',
|
|
|
|
'gfxPlatform.cpp',
|
|
|
|
'gfxPlatformFontList.cpp',
|
|
|
|
'gfxRect.cpp',
|
2013-08-19 06:59:27 -07:00
|
|
|
'gfxReusableImageSurfaceWrapper.cpp',
|
2013-08-19 06:59:25 -07:00
|
|
|
'gfxReusableSharedImageSurfaceWrapper.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxScriptItemizer.cpp',
|
|
|
|
'gfxSkipChars.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'gfxSVGGlyphs.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxTeeSurface.cpp',
|
|
|
|
'gfxUserFontSet.cpp',
|
|
|
|
'gfxUtils.cpp',
|
|
|
|
'nsSurfaceTexture.cpp',
|
|
|
|
]
|
|
|
|
|
2013-07-01 09:32:40 -07:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-07-01 09:32:40 -07:00
|
|
|
'gfxMacPlatformFontList.mm',
|
|
|
|
]
|
2013-08-21 23:55:59 -07:00
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = not CONFIG['_MSC_VER']
|
2013-08-21 23:56:00 -07:00
|
|
|
|
2013-08-21 23:56:01 -07:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-08-15 06:02:09 -07:00
|
|
|
LIBRARY_NAME = 'thebes'
|
|
|
|
|
2013-10-02 10:17:55 -07:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-18 18:47:14 -08:00
|
|
|
FINAL_LIBRARY = 'xul'
|