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 += [
|
2014-05-24 09:14:14 -07:00
|
|
|
'ContextStateTracker.h',
|
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',
|
|
|
|
'gfxColor.h',
|
|
|
|
'gfxContext.h',
|
|
|
|
'gfxDrawable.h',
|
|
|
|
'gfxFailure.h',
|
|
|
|
'gfxFont.h',
|
|
|
|
'gfxFontConstants.h',
|
2014-09-16 02:58:12 -07:00
|
|
|
'gfxFontEntry.h',
|
2014-06-05 23:09:23 -07:00
|
|
|
'gfxFontFamilyList.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'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',
|
2014-04-23 06:57:42 -07:00
|
|
|
'gfxMathTable.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'gfxMatrix.h',
|
|
|
|
'gfxPattern.h',
|
|
|
|
'gfxPlatform.h',
|
|
|
|
'gfxPoint.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',
|
2014-09-16 02:58:12 -07:00
|
|
|
'gfxTextRun.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'gfxTypes.h',
|
|
|
|
'gfxUserFontSet.h',
|
|
|
|
'gfxUtils.h',
|
2014-07-09 12:24:49 -07:00
|
|
|
'gfxVR.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'GraphicsFilter.h',
|
|
|
|
'RoundedRect.h',
|
2015-01-08 15:12:47 -08:00
|
|
|
'SoftwareVsyncSource.h',
|
2014-12-18 08:30:06 -08:00
|
|
|
'VsyncSource.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',
|
|
|
|
]
|
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',
|
|
|
|
]
|
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',
|
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
|
|
|
]
|
|
|
|
|
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',
|
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-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxGDIFont.cpp',
|
|
|
|
'gfxGDIFontList.cpp',
|
|
|
|
'gfxPDFSurface.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'gfxWindowsNativeDrawing.cpp',
|
|
|
|
'gfxWindowsPlatform.cpp',
|
|
|
|
'gfxWindowsSurface.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
if CONFIG['MOZ_ENABLE_DWRITE_FONT']:
|
2014-10-08 13:19:14 -07:00
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'gfxDWriteFontList.cpp',
|
|
|
|
]
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-10-23 16:00:23 -07:00
|
|
|
'gfxD2DSurface.cpp',
|
|
|
|
'gfxDWriteCommon.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxDWriteFonts.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 += [
|
2014-05-24 09:14:14 -07:00
|
|
|
'ContextStateTracker.cpp',
|
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',
|
2014-10-08 13:19:14 -07:00
|
|
|
# gfxPlatform.cpp includes mac system header conflicting with point/size
|
2013-11-27 05:03:04 -08:00
|
|
|
'gfxPlatform.cpp',
|
2014-02-13 09:38:40 -08:00
|
|
|
'gfxPrefs.cpp',
|
2013-11-27 05:03:04 -08:00
|
|
|
]
|
|
|
|
|
|
|
|
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',
|
|
|
|
'gfxContext.cpp',
|
2014-10-08 13:19:14 -07:00
|
|
|
'gfxFont.cpp',
|
|
|
|
'gfxFontEntry.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxFontFeatures.cpp',
|
2014-01-28 23:39:01 -08:00
|
|
|
'gfxFontInfoLoader.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxFontMissingGlyphs.cpp',
|
|
|
|
'gfxFontTest.cpp',
|
2014-10-08 13:19:14 -07:00
|
|
|
'gfxFontUtils.cpp',
|
2014-09-16 02:58:12 -07:00
|
|
|
'gfxGlyphExtents.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',
|
2014-04-23 06:57:42 -07:00
|
|
|
'gfxMathTable.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxMatrix.cpp',
|
|
|
|
'gfxPattern.cpp',
|
2014-10-08 13:19:14 -07:00
|
|
|
'gfxPlatformFontList.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'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',
|
2014-09-16 02:58:12 -07:00
|
|
|
'gfxTextRun.cpp',
|
2014-10-08 13:19:14 -07:00
|
|
|
'gfxUserFontSet.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'gfxUtils.cpp',
|
2014-07-09 12:24:49 -07:00
|
|
|
'gfxVR.cpp',
|
2014-04-08 01:10:27 -07:00
|
|
|
'nsUnicodeRange.cpp',
|
2015-01-08 15:12:47 -08:00
|
|
|
'SoftwareVsyncSource.cpp',
|
2014-12-18 08:30:06 -08:00
|
|
|
'VsyncSource.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
|
2013-07-01 09:32:40 -07:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
2014-10-08 13:19:14 -07:00
|
|
|
UNIFIED_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-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 += [
|
2014-07-25 14:15:35 -07:00
|
|
|
'/dom/xml',
|
2013-11-28 06:10:38 -08:00
|
|
|
]
|
|
|
|
|
2014-12-18 08:30:06 -08:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
LOCAL_INCLUDES += ['/widget/gonk']
|
|
|
|
|
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
|
|
|
|
|
2014-07-24 08:55:33 -07:00
|
|
|
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|
|
|
|
CFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
|
|
|
CFLAGS += CONFIG['TK_CFLAGS']
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('android', 'gonk', 'qt'):
|
|
|
|
CXXFLAGS += CONFIG['CAIRO_FT_CFLAGS']
|
|
|
|
|
2013-11-27 05:55:07 -08:00
|
|
|
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
|
|
|
|
|
2014-07-24 08:55:33 -07:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('gtk2', 'gtk3', 'qt'):
|
|
|
|
CXXFLAGS += CONFIG['MOZ_PANGO_CFLAGS']
|
|
|
|
|
2013-11-27 05:55:07 -08:00
|
|
|
DEFINES['GRAPHITE2_STATIC'] = True
|
|
|
|
|
2014-11-05 02:27:13 -08:00
|
|
|
if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
|
2013-11-27 05:55:07 -08:00
|
|
|
DEFINES['OTS_DLL'] = True
|