2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:21 +00: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-03-19 18:47:00 +00:00
|
|
|
MODULE = 'thebes'
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'RoundedRect.h',
|
|
|
|
'gfx2DGlue.h',
|
|
|
|
'gfx3DMatrix.h',
|
|
|
|
'gfxASurface.h',
|
|
|
|
'gfxAlphaRecovery.h',
|
|
|
|
'gfxBaseSharedMemorySurface.h',
|
|
|
|
'gfxBlur.h',
|
|
|
|
'gfxCachedTempSurface.h',
|
|
|
|
'gfxColor.h',
|
|
|
|
'gfxContext.h',
|
|
|
|
'gfxDrawable.h',
|
|
|
|
'gfxFailure.h',
|
|
|
|
'gfxFont.h',
|
|
|
|
'gfxFontConstants.h',
|
|
|
|
'gfxFontFeatures.h',
|
|
|
|
'gfxFontTest.h',
|
|
|
|
'gfxFontUtils.h',
|
|
|
|
'gfxImageSurface.h',
|
|
|
|
'gfxLineSegment.h',
|
|
|
|
'gfxMatrix.h',
|
|
|
|
'gfxPath.h',
|
|
|
|
'gfxPattern.h',
|
|
|
|
'gfxPlatform.h',
|
|
|
|
'gfxPoint.h',
|
|
|
|
'gfxPoint3D.h',
|
|
|
|
'gfxPointH3D.h',
|
|
|
|
'gfxQuad.h',
|
|
|
|
'gfxQuaternion.h',
|
|
|
|
'gfxRect.h',
|
|
|
|
'gfxReusableSurfaceWrapper.h',
|
|
|
|
'gfxSVGGlyphs.h',
|
|
|
|
'gfxSharedImageSurface.h',
|
|
|
|
'gfxSharedQuartzSurface.h',
|
|
|
|
'gfxSkipChars.h',
|
|
|
|
'gfxTeeSurface.h',
|
|
|
|
'gfxTypes.h',
|
|
|
|
'gfxUserFontSet.h',
|
|
|
|
'gfxUtils.h',
|
|
|
|
'nsSurfaceTexture.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxAndroidPlatform.h',
|
|
|
|
'gfxFT2FontBase.h',
|
2013-05-16 22:37:18 +00:00
|
|
|
'gfxFT2Fonts.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'gfxPDFSurface.h',
|
|
|
|
]
|
2013-04-23 21:54:15 +00:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxAndroidPlatform.cpp',
|
|
|
|
'gfxFT2Fonts.cpp',
|
|
|
|
'gfxFT2FontBase.cpp',
|
|
|
|
'gfxFT2Utils.cpp',
|
|
|
|
'gfxFT2FontList.cpp',
|
|
|
|
'gfxPDFSurface.cpp',
|
|
|
|
'nsUnicodeRange.cpp',
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxAndroidPlatform.h',
|
|
|
|
'gfxFT2FontBase.h',
|
2013-05-16 22:37:18 +00:00
|
|
|
'gfxFT2Fonts.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'gfxPDFSurface.h',
|
|
|
|
]
|
2013-04-23 21:54:15 +00:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxAndroidPlatform.cpp',
|
|
|
|
'gfxFT2Fonts.cpp',
|
|
|
|
'gfxFT2FontBase.cpp',
|
|
|
|
'gfxFT2Utils.cpp',
|
|
|
|
'gfxFT2FontList.cpp',
|
|
|
|
'gfxPDFSurface.cpp',
|
|
|
|
'nsUnicodeRange.cpp',
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxPlatformMac.h',
|
|
|
|
'gfxQuartzImageSurface.h',
|
|
|
|
'gfxQuartzNativeDrawing.h',
|
2013-05-08 18:31:52 +00:00
|
|
|
'gfxQuartzSurface.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
]
|
2013-04-23 21:54:15 +00:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxQuartzSurface.cpp',
|
|
|
|
'gfxQuartzImageSurface.cpp',
|
|
|
|
'gfxPlatformMac.cpp',
|
|
|
|
'gfxMacFont.cpp',
|
|
|
|
'gfxCoreTextShaper.cpp',
|
|
|
|
'nsUnicodeRange.cpp',
|
|
|
|
'gfxQuartzNativeDrawing.cpp',
|
|
|
|
]
|
2013-06-11 17:40:27 +00:00
|
|
|
elif CONFIG['MOZ_WIDGET_GTK']:
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'gfxFT2FontBase.h',
|
|
|
|
'gfxGdkNativeRenderer.h',
|
|
|
|
'gfxPDFSurface.h',
|
|
|
|
'gfxPSSurface.h',
|
|
|
|
'gfxPlatformGtk.h',
|
|
|
|
]
|
|
|
|
|
2013-04-23 21:54:15 +00:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxPlatformGtk.cpp',
|
|
|
|
'gfxGdkNativeRenderer.cpp',
|
|
|
|
'gfxPDFSurface.cpp',
|
|
|
|
'gfxPSSurface.cpp',
|
|
|
|
'gfxFontconfigUtils.cpp',
|
|
|
|
'gfxFT2FontBase.cpp',
|
|
|
|
'gfxFT2Utils.cpp',
|
|
|
|
'nsUnicodeRange.cpp',
|
|
|
|
]
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
if CONFIG['MOZ_X11']:
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxXlibNativeRenderer.h',
|
2013-05-03 16:54:45 +00:00
|
|
|
'gfxXlibSurface.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
]
|
2013-04-23 21:54:15 +00:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxXlibSurface.cpp',
|
|
|
|
'gfxXlibNativeRenderer.cpp',
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
|
|
|
|
if CONFIG['MOZ_PANGO']:
|
|
|
|
EXPORTS += ['gfxPangoFonts.h']
|
2013-04-23 21:54:15 +00:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxPangoFonts.cpp',
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
else:
|
|
|
|
EXPORTS += ['gfxFT2Fonts.h']
|
2013-04-23 21:54:15 +00:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxPangoFonts.cpp',
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'os2':
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxOS2Fonts.h',
|
|
|
|
'gfxOS2Platform.h',
|
|
|
|
'gfxOS2Surface.h',
|
|
|
|
'gfxPDFSurface.h',
|
|
|
|
]
|
2013-04-23 21:54:15 +00:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxOS2Fonts.cpp',
|
|
|
|
'gfxOS2Platform.cpp',
|
|
|
|
'gfxOS2Surface.cpp',
|
|
|
|
'nsUnicodeRange.cpp',
|
|
|
|
'gfxFontconfigUtils.cpp',
|
|
|
|
'gfxPDFSurface.cpp'
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt':
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxFT2FontBase.h',
|
2013-05-16 22:37:18 +00:00
|
|
|
'gfxPDFSurface.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'gfxQPainterSurface.h',
|
|
|
|
'gfxQtNativeRenderer.h',
|
|
|
|
'gfxQtPlatform.h',
|
|
|
|
]
|
2013-04-23 21:54:15 +00:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxQtPlatform.cpp',
|
|
|
|
'gfxQPainterSurface.cpp',
|
|
|
|
'gfxFT2FontBase.cpp',
|
|
|
|
'gfxFT2Utils.cpp',
|
|
|
|
'gfxFontconfigUtils.cpp',
|
|
|
|
'nsUnicodeRange.cpp',
|
|
|
|
'gfxPDFSurface.cpp',
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
|
|
|
|
if CONFIG['MOZ_X11']:
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxXlibSurface.h',
|
|
|
|
]
|
2013-04-23 21:54:15 +00:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxXlibSurface.cpp',
|
|
|
|
'gfxQtNativeRenderer.cpp',
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
|
|
|
|
if CONFIG['MOZ_PANGO']:
|
|
|
|
EXPORTS += ['gfxPangoFonts.h']
|
2013-04-23 21:54:15 +00:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxPangoFonts.cpp',
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
else:
|
|
|
|
EXPORTS += ['gfxFT2Fonts.h']
|
2013-04-23 21:54:15 +00:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxFT2Fonts.cpp',
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|
|
|
EXPORTS += [
|
2013-05-16 17:22:02 +00:00
|
|
|
'gfxD2DSurface.h',
|
2013-05-16 22:37:18 +00:00
|
|
|
'gfxDWriteFonts.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'gfxGDIFont.h',
|
|
|
|
'gfxGDIFontList.h',
|
2013-05-16 22:37:18 +00:00
|
|
|
'gfxPDFSurface.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'gfxPlatformFontList.h',
|
2013-05-16 22:37:18 +00:00
|
|
|
'gfxWindowsNativeDrawing.h',
|
|
|
|
'gfxWindowsPlatform.h',
|
|
|
|
'gfxWindowsSurface.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
]
|
2013-04-23 21:54:15 +00:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxWindowsPlatform.cpp',
|
|
|
|
'gfxWindowsSurface.cpp',
|
|
|
|
'gfxWindowsNativeDrawing.cpp',
|
|
|
|
'nsUnicodeRange.cpp',
|
|
|
|
'gfxGDIFont.cpp',
|
|
|
|
'gfxGDIFontList.cpp',
|
|
|
|
'gfxGDIShaper.cpp',
|
|
|
|
'gfxUniscribeShaper.cpp',
|
|
|
|
'gfxPDFSurface.cpp',
|
|
|
|
]
|
|
|
|
if CONFIG['MOZ_ENABLE_DWRITE_FONT']:
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxDWriteFonts.cpp',
|
|
|
|
'gfxDWriteShaper.cpp',
|
|
|
|
'gfxDWriteTextAnalysis.cpp',
|
|
|
|
'gfxDWriteCommon.cpp',
|
|
|
|
'gfxD2DSurface.cpp',
|
|
|
|
'gfxDWriteFontList.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
# Are we targeting x86 or x64? If so, build gfxAlphaRecoverySSE2.cpp.
|
|
|
|
if CONFIG['INTEL_ARCHITECTURE']:
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxAlphaRecoverySSE2.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfx3DMatrix.cpp',
|
|
|
|
'gfxASurface.cpp',
|
|
|
|
'gfxAlphaRecovery.cpp',
|
|
|
|
'gfxBaseSharedMemorySurface.cpp',
|
|
|
|
'gfxBlur.cpp',
|
|
|
|
'gfxCachedTempSurface.cpp',
|
|
|
|
'gfxContext.cpp',
|
|
|
|
'gfxDrawable.cpp',
|
|
|
|
'gfxFont.cpp',
|
|
|
|
'gfxFontFeatures.cpp',
|
|
|
|
'gfxFontMissingGlyphs.cpp',
|
|
|
|
'gfxFontTest.cpp',
|
|
|
|
'gfxFontUtils.cpp',
|
|
|
|
'gfxGraphiteShaper.cpp',
|
|
|
|
'gfxHarfBuzzShaper.cpp',
|
|
|
|
'gfxImageSurface.cpp',
|
|
|
|
'gfxMatrix.cpp',
|
|
|
|
'gfxPath.cpp',
|
|
|
|
'gfxPattern.cpp',
|
|
|
|
'gfxPlatform.cpp',
|
|
|
|
'gfxPlatformFontList.cpp',
|
|
|
|
'gfxRect.cpp',
|
|
|
|
'gfxReusableSurfaceWrapper.cpp',
|
|
|
|
'gfxSVGGlyphs.cpp',
|
|
|
|
'gfxScriptItemizer.cpp',
|
|
|
|
'gfxSkipChars.cpp',
|
|
|
|
'gfxTeeSurface.cpp',
|
|
|
|
'gfxUserFontSet.cpp',
|
|
|
|
'gfxUtils.cpp',
|
|
|
|
'nsSurfaceTexture.cpp',
|
|
|
|
]
|
|
|
|
|