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',
|
2014-01-28 23:39:01 -08:00
|
|
|
'gfxFontInfoLoader.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'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',
|
2014-02-13 09:38:40 -08:00
|
|
|
'gfxPrefs.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'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',
|
2013-12-09 07:03:28 -08:00
|
|
|
'gfxPangoFonts.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'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',
|
2013-12-09 07:03:28 -08:00
|
|
|
'gfxPangoFonts.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'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
|
|
|
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt':
|
|
|
|
EXPORTS += [
|
|
|
|
'gfxFT2FontBase.h',
|
2013-12-09 07:03:28 -08:00
|
|
|
'gfxPangoFonts.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',
|
2013-12-09 07:03:28 -08:00
|
|
|
'gfxPangoFonts.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'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
|
|
|
|
|
|
|
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-11-27 05:03:04 -08:00
|
|
|
# gfxGDIFontList.cpp and gfxGDIShaper.cpp force NSPR logging, so they cannot be built in unified mode.
|
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-11-27 05:03:04 -08:00
|
|
|
# gfxDWriteFontList.cpp forces NSPR logging, so it cannot be built in unified mode.
|
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']:
|
2014-03-02 12:41:32 -08:00
|
|
|
SOURCES += ['gfxAlphaRecoverySSE2.cpp']
|
|
|
|
# The file uses SSE2 intrinsics, so it needs special compile flags on some
|
|
|
|
# compilers.
|
2014-03-19 18:55:00 -07:00
|
|
|
SOURCES['gfxAlphaRecoverySSE2.cpp'].flags += CONFIG['SSE2_FLAGS']
|
2013-04-23 14:54:15 -07:00
|
|
|
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-11-27 05:03:04 -08:00
|
|
|
# Includes mac system header conflicting with point/size,
|
|
|
|
# and includes glxXlibSurface.h which drags in Xrender.h
|
|
|
|
'gfxASurface.cpp',
|
|
|
|
# on X11, gfxDrawable.cpp includes X headers for an old workaround which
|
|
|
|
# we could consider removing soon (affects Ubuntus older than 10.04 LTS)
|
|
|
|
# which currently prevent it from joining UNIFIED_SOURCES.
|
|
|
|
'gfxDrawable.cpp',
|
|
|
|
# Uses FORCE_PR_LOG
|
|
|
|
'gfxFont.cpp',
|
|
|
|
# Uses FORCE_PR_LOG
|
|
|
|
'gfxFontUtils.cpp',
|
|
|
|
# Includes mac system header conflicting with point/size, and also uses FORCE_PR_LOG
|
|
|
|
'gfxPlatform.cpp',
|
|
|
|
# Uses FORCE_PR_LOG
|
|
|
|
'gfxPlatformFontList.cpp',
|
2014-02-13 09:38:40 -08:00
|
|
|
'gfxPrefs.cpp',
|
2013-11-27 05:03:04 -08:00
|
|
|
# Uses FORCE_PR_LOG
|
|
|
|
'gfxUserFontSet.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
UNIFIED_SOURCES += [
|
2014-03-31 10:30:26 -07:00
|
|
|
'CJKCompatSVS.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfx3DMatrix.cpp',
|
|
|
|
'gfxAlphaRecovery.cpp',
|
|
|
|
'gfxBaseSharedMemorySurface.cpp',
|
|
|
|
'gfxBlur.cpp',
|
|
|
|
'gfxCachedTempSurface.cpp',
|
|
|
|
'gfxContext.cpp',
|
|
|
|
'gfxFontFeatures.cpp',
|
2014-01-28 23:39:01 -08:00
|
|
|
'gfxFontInfoLoader.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxFontMissingGlyphs.cpp',
|
|
|
|
'gfxFontTest.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',
|
|
|
|
'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',
|
|
|
|
'gfxUtils.cpp',
|
|
|
|
'nsSurfaceTexture.cpp',
|
|
|
|
]
|
|
|
|
|
2013-07-01 09:32:40 -07:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
2013-11-27 05:03:04 -08:00
|
|
|
# gfxMacPlatformFontList.mm forces NSPR logging so it cannot be built in unified mode.
|
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'
|
2013-11-21 15:16:18 -08:00
|
|
|
|
|
|
|
GENERATED_FILES = [
|
2014-02-12 07:07:46 -08:00
|
|
|
'DeprecatedPremultiplyTables.h',
|
2013-11-21 15:16:18 -08:00
|
|
|
]
|
2013-11-27 05:55:07 -08:00
|
|
|
|
2013-11-28 06:10:38 -08:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/content/xml/document/src',
|
|
|
|
]
|
|
|
|
|
2013-11-27 05:55:07 -08:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('android', 'gtk2', 'gtk3', 'gonk', 'qt'):
|
|
|
|
DEFINES['MOZ_ENABLE_FREETYPE'] = True
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|
|
|
for var in ('MOZ_ENABLE_D3D9_LAYER', 'MOZ_ENABLE_D3D10_LAYER'):
|
|
|
|
if CONFIG[var]:
|
|
|
|
DEFINES[var] = True
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
|
|
|
# This is set for "normal Android", that is, when Gecko is running on
|
|
|
|
# top of the android java runtime.
|
|
|
|
DEFINES['MOZ_USING_ANDROID_JAVA_WIDGETS'] = True
|
|
|
|
|
|
|
|
DEFINES['GRAPHITE2_STATIC'] = True
|
|
|
|
|
|
|
|
if CONFIG['OS_TARGET'] == 'WINNT':
|
|
|
|
DEFINES['OTS_DLL'] = True
|