2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:21 +04: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 22:47:00 +04:00
|
|
|
MODULE = 'thebes'
|
|
|
|
|
2013-04-16 23:24:43 +04: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',
|
2013-08-19 17:59:27 +04:00
|
|
|
'gfxReusableImageSurfaceWrapper.h',
|
2013-08-19 17:59:25 +04:00
|
|
|
'gfxReusableSharedImageSurfaceWrapper.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'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-17 02:37:18 +04:00
|
|
|
'gfxFT2Fonts.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'gfxPDFSurface.h',
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxAndroidPlatform.cpp',
|
|
|
|
'gfxFT2Fonts.cpp',
|
|
|
|
'gfxFT2FontBase.cpp',
|
|
|
|
'gfxFT2Utils.cpp',
|
|
|
|
'gfxFT2FontList.cpp',
|
|
|
|
'gfxPDFSurface.cpp',
|
|
|
|
'nsUnicodeRange.cpp',
|
|
|
|
]
|
2013-04-16 23:24:43 +04:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxAndroidPlatform.h',
|
|
|
|
'gfxFT2FontBase.h',
|
2013-05-17 02:37:18 +04:00
|
|
|
'gfxFT2Fonts.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'gfxPDFSurface.h',
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxAndroidPlatform.cpp',
|
|
|
|
'gfxFT2Fonts.cpp',
|
|
|
|
'gfxFT2FontBase.cpp',
|
|
|
|
'gfxFT2Utils.cpp',
|
|
|
|
'gfxFT2FontList.cpp',
|
|
|
|
'gfxPDFSurface.cpp',
|
|
|
|
'nsUnicodeRange.cpp',
|
|
|
|
]
|
2013-04-16 23:24:43 +04:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxPlatformMac.h',
|
|
|
|
'gfxQuartzImageSurface.h',
|
|
|
|
'gfxQuartzNativeDrawing.h',
|
2013-05-08 22:31:52 +04:00
|
|
|
'gfxQuartzSurface.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxQuartzSurface.cpp',
|
|
|
|
'gfxQuartzImageSurface.cpp',
|
|
|
|
'gfxPlatformMac.cpp',
|
|
|
|
'gfxMacFont.cpp',
|
|
|
|
'gfxCoreTextShaper.cpp',
|
|
|
|
'nsUnicodeRange.cpp',
|
|
|
|
'gfxQuartzNativeDrawing.cpp',
|
|
|
|
]
|
2013-06-11 21:40:27 +04:00
|
|
|
elif CONFIG['MOZ_WIDGET_GTK']:
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
|
|
|
'gfxFT2FontBase.h',
|
|
|
|
'gfxGdkNativeRenderer.h',
|
|
|
|
'gfxPDFSurface.h',
|
|
|
|
'gfxPSSurface.h',
|
|
|
|
'gfxPlatformGtk.h',
|
|
|
|
]
|
|
|
|
|
2013-04-24 01:54:15 +04:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxPlatformGtk.cpp',
|
|
|
|
'gfxGdkNativeRenderer.cpp',
|
|
|
|
'gfxPDFSurface.cpp',
|
|
|
|
'gfxPSSurface.cpp',
|
|
|
|
'gfxFontconfigUtils.cpp',
|
|
|
|
'gfxFT2FontBase.cpp',
|
|
|
|
'gfxFT2Utils.cpp',
|
|
|
|
'nsUnicodeRange.cpp',
|
|
|
|
]
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
if CONFIG['MOZ_X11']:
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxXlibNativeRenderer.h',
|
2013-05-03 20:54:45 +04:00
|
|
|
'gfxXlibSurface.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxXlibSurface.cpp',
|
|
|
|
'gfxXlibNativeRenderer.cpp',
|
|
|
|
]
|
2013-04-16 23:24:43 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_PANGO']:
|
|
|
|
EXPORTS += ['gfxPangoFonts.h']
|
2013-04-24 01:54:15 +04:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxPangoFonts.cpp',
|
|
|
|
]
|
2013-04-16 23:24:43 +04:00
|
|
|
else:
|
|
|
|
EXPORTS += ['gfxFT2Fonts.h']
|
2013-04-24 01:54:15 +04:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxPangoFonts.cpp',
|
|
|
|
]
|
2013-04-16 23:24:43 +04:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'os2':
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxOS2Fonts.h',
|
|
|
|
'gfxOS2Platform.h',
|
|
|
|
'gfxOS2Surface.h',
|
|
|
|
'gfxPDFSurface.h',
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxOS2Fonts.cpp',
|
|
|
|
'gfxOS2Platform.cpp',
|
|
|
|
'gfxOS2Surface.cpp',
|
|
|
|
'nsUnicodeRange.cpp',
|
|
|
|
'gfxFontconfigUtils.cpp',
|
|
|
|
'gfxPDFSurface.cpp'
|
|
|
|
]
|
2013-04-16 23:24:43 +04:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt':
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxFT2FontBase.h',
|
2013-05-17 02:37:18 +04:00
|
|
|
'gfxPDFSurface.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'gfxQPainterSurface.h',
|
|
|
|
'gfxQtNativeRenderer.h',
|
|
|
|
'gfxQtPlatform.h',
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxQtPlatform.cpp',
|
|
|
|
'gfxQPainterSurface.cpp',
|
|
|
|
'gfxFT2FontBase.cpp',
|
|
|
|
'gfxFT2Utils.cpp',
|
|
|
|
'gfxFontconfigUtils.cpp',
|
|
|
|
'nsUnicodeRange.cpp',
|
|
|
|
'gfxPDFSurface.cpp',
|
|
|
|
]
|
2013-04-16 23:24:43 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_X11']:
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxXlibSurface.h',
|
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxXlibSurface.cpp',
|
|
|
|
'gfxQtNativeRenderer.cpp',
|
|
|
|
]
|
2013-04-16 23:24:43 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_PANGO']:
|
|
|
|
EXPORTS += ['gfxPangoFonts.h']
|
2013-04-24 01:54:15 +04:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxPangoFonts.cpp',
|
|
|
|
]
|
2013-04-16 23:24:43 +04:00
|
|
|
else:
|
|
|
|
EXPORTS += ['gfxFT2Fonts.h']
|
2013-04-24 01:54:15 +04:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'gfxFT2Fonts.cpp',
|
|
|
|
]
|
2013-04-16 23:24:43 +04:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|
|
|
EXPORTS += [
|
2013-05-16 21:22:02 +04:00
|
|
|
'gfxD2DSurface.h',
|
2013-05-17 02:37:18 +04:00
|
|
|
'gfxDWriteFonts.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'gfxGDIFont.h',
|
|
|
|
'gfxGDIFontList.h',
|
2013-05-17 02:37:18 +04:00
|
|
|
'gfxPDFSurface.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'gfxPlatformFontList.h',
|
2013-05-17 02:37:18 +04:00
|
|
|
'gfxWindowsNativeDrawing.h',
|
|
|
|
'gfxWindowsPlatform.h',
|
|
|
|
'gfxWindowsSurface.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
2013-04-24 01:54:15 +04: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',
|
2013-08-19 17:59:27 +04:00
|
|
|
'gfxReusableImageSurfaceWrapper.cpp',
|
2013-08-19 17:59:25 +04:00
|
|
|
'gfxReusableSharedImageSurfaceWrapper.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'gfxSVGGlyphs.cpp',
|
|
|
|
'gfxScriptItemizer.cpp',
|
|
|
|
'gfxSkipChars.cpp',
|
|
|
|
'gfxTeeSurface.cpp',
|
|
|
|
'gfxUserFontSet.cpp',
|
|
|
|
'gfxUtils.cpp',
|
|
|
|
'nsSurfaceTexture.cpp',
|
|
|
|
]
|
|
|
|
|
2013-07-01 20:32:40 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
CMMSRCS += [
|
|
|
|
'gfxMacPlatformFontList.mm',
|
|
|
|
]
|