gecko/gfx/thebes/moz.build
Carsten "Tomcat" Book d286e662bd Backed out changeset c2350812b7f1 (bug 946065) hoping this fix the B2G mochitest-7 perma-fail on a CLOSED TREE
--HG--
rename : dom/xml/crashtests/420429.xul => content/xml/content/crashtest/420429.xul
rename : dom/xml/crashtests/453278-frame.xml => content/xml/content/crashtest/453278-frame.xml
rename : dom/xml/crashtests/453278.html => content/xml/content/crashtest/453278.html
rename : dom/xml/crashtests/803586.xhtml => content/xml/content/crashtest/803586.xhtml
rename : dom/xml/CDATASection.cpp => content/xml/content/src/CDATASection.cpp
rename : dom/xml/CDATASection.h => content/xml/content/src/CDATASection.h
rename : dom/xml/ProcessingInstruction.cpp => content/xml/content/src/ProcessingInstruction.cpp
rename : dom/xml/ProcessingInstruction.h => content/xml/content/src/ProcessingInstruction.h
rename : dom/xml/XMLStylesheetProcessingInstruction.cpp => content/xml/content/src/XMLStylesheetProcessingInstruction.cpp
rename : dom/xml/XMLStylesheetProcessingInstruction.h => content/xml/content/src/XMLStylesheetProcessingInstruction.h
rename : dom/xml/htmlmathml-f.ent => content/xml/content/src/htmlmathml-f.ent
rename : dom/xml/moz.build => content/xml/content/src/moz.build
rename : dom/xml/nsXMLElement.cpp => content/xml/content/src/nsXMLElement.cpp
rename : dom/xml/nsXMLElement.h => content/xml/content/src/nsXMLElement.h
rename : dom/xml/crashtests/136896-1.xml => content/xml/document/crashtests/136896-1.xml
rename : dom/xml/crashtests/185285-1.xml => content/xml/document/crashtests/185285-1.xml
rename : dom/xml/crashtests/382636-1.xml => content/xml/document/crashtests/382636-1.xml
rename : dom/xml/crashtests/382636-2.svg => content/xml/document/crashtests/382636-2.svg
rename : dom/xml/crashtests/382636-3.xhtml => content/xml/document/crashtests/382636-3.xhtml
rename : dom/xml/crashtests/382636-4.xul => content/xml/document/crashtests/382636-4.xul
rename : dom/xml/crashtests/431703-1.xhtml => content/xml/document/crashtests/431703-1.xhtml
rename : dom/xml/crashtests/crashtests.list => content/xml/document/crashtests/crashtests.list
rename : dom/xml/crashtests/tree.gif => content/xml/document/crashtests/tree.gif
rename : dom/xml/nsIXMLContentSink.h => content/xml/document/public/nsIXMLContentSink.h
rename : dom/xml/resources/XMLMonoPrint.css => content/xml/document/resources/XMLMonoPrint.css
rename : dom/xml/resources/XMLPrettyPrint.css => content/xml/document/resources/XMLPrettyPrint.css
rename : dom/xml/resources/XMLPrettyPrint.xml => content/xml/document/resources/XMLPrettyPrint.xml
rename : dom/xml/resources/XMLPrettyPrint.xsl => content/xml/document/resources/XMLPrettyPrint.xsl
rename : dom/xml/resources/jar.mn => content/xml/document/resources/jar.mn
rename : dom/xml/resources/moz.build => content/xml/document/resources/moz.build
rename : dom/xml/XMLDocument.cpp => content/xml/document/src/XMLDocument.cpp
rename : dom/xml/XMLDocument.h => content/xml/document/src/XMLDocument.h
rename : dom/xml/nsXMLContentSink.cpp => content/xml/document/src/nsXMLContentSink.cpp
rename : dom/xml/nsXMLContentSink.h => content/xml/document/src/nsXMLContentSink.h
rename : dom/xml/nsXMLFragmentContentSink.cpp => content/xml/document/src/nsXMLFragmentContentSink.cpp
rename : dom/xml/nsXMLPrettyPrinter.cpp => content/xml/document/src/nsXMLPrettyPrinter.cpp
rename : dom/xml/nsXMLPrettyPrinter.h => content/xml/document/src/nsXMLPrettyPrinter.h
rename : dom/xml/tests/mochitest/file_bug293347.xml => content/xml/document/test/file_bug293347.xml
rename : dom/xml/tests/mochitest/file_bug293347xslt.xml => content/xml/document/test/file_bug293347xslt.xml
rename : dom/xml/tests/mochitest/mochitest.ini => content/xml/document/test/mochitest.ini
rename : dom/xml/tests/mochitest/moz.build => content/xml/document/test/moz.build
rename : dom/xml/tests/mochitest/test_bug232004.xhtml => content/xml/document/test/test_bug232004.xhtml
rename : dom/xml/tests/mochitest/test_bug293347.html => content/xml/document/test/test_bug293347.html
rename : dom/xml/tests/mochitest/test_bug343870.xhtml => content/xml/document/test/test_bug343870.xhtml
rename : dom/xml/tests/mochitest/test_bug355213.xhtml => content/xml/document/test/test_bug355213.xhtml
rename : dom/xml/tests/mochitest/test_bug392338.html => content/xml/document/test/test_bug392338.html
rename : dom/xml/tests/mochitest/test_bug399502.xhtml => content/xml/document/test/test_bug399502.xhtml
rename : dom/xml/tests/mochitest/test_bug445330.html => content/xml/document/test/test_bug445330.html
rename : dom/xml/tests/mochitest/test_bug691215.html => content/xml/document/test/test_bug691215.html
rename : dom/xml/tests/mochitest/test_viewport.xhtml => content/xml/document/test/test_viewport.xhtml
rename : dom/xml/tests/books/bethlehem.gif => content/xml/tests/books/bethlehem.gif
rename : dom/xml/tests/books/bill.gif => content/xml/tests/books/bill.gif
rename : dom/xml/tests/books/books.js => content/xml/tests/books/books.js
rename : dom/xml/tests/books/books.xml => content/xml/tests/books/books.xml
rename : dom/xml/tests/books/charing.gif => content/xml/tests/books/charing.gif
rename : dom/xml/tests/books/classic.css => content/xml/tests/books/classic.css
rename : dom/xml/tests/books/common.css => content/xml/tests/books/common.css
rename : dom/xml/tests/books/kerouac.gif => content/xml/tests/books/kerouac.gif
rename : dom/xml/tests/books/list.css => content/xml/tests/books/list.css
rename : dom/xml/tests/books/road.gif => content/xml/tests/books/road.gif
rename : dom/xml/tests/books/welville.gif => content/xml/tests/books/welville.gif
rename : dom/xml/tests/docbook.css => content/xml/tests/docbook.css
rename : dom/xml/tests/docbooktest.xml => content/xml/tests/docbooktest.xml
rename : dom/xml/tests/flamer.gif => content/xml/tests/flamer.gif
rename : dom/xml/tests/load/display.css => content/xml/tests/load/display.css
rename : dom/xml/tests/load/display.xml => content/xml/tests/load/display.xml
rename : dom/xml/tests/load/load.html => content/xml/tests/load/load.html
rename : dom/xml/tests/load/loadauth.html => content/xml/tests/load/loadauth.html
rename : dom/xml/tests/load/loaddisplay.html => content/xml/tests/load/loaddisplay.html
rename : dom/xml/tests/load/test.xml => content/xml/tests/load/test.xml
rename : dom/xml/tests/script.xml => content/xml/tests/script.xml
rename : dom/xml/tests/simple.xml => content/xml/tests/simple.xml
rename : dom/xml/tests/toc/book.css => content/xml/tests/toc/book.css
rename : dom/xml/tests/toc/irslogo.gif => content/xml/tests/toc/irslogo.gif
rename : dom/xml/tests/toc/minus.gif => content/xml/tests/toc/minus.gif
rename : dom/xml/tests/toc/plus.gif => content/xml/tests/toc/plus.gif
rename : dom/xml/tests/toc/rights.xml => content/xml/tests/toc/rights.xml
rename : dom/xml/tests/toc/toc.css => content/xml/tests/toc/toc.css
rename : dom/xml/tests/toc/toc.js => content/xml/tests/toc/toc.js
rename : dom/xml/tests/xlink/auto.xml => content/xml/tests/xlink/auto.xml
rename : dom/xml/tests/xlink/link.css => content/xml/tests/xlink/link.css
rename : dom/xml/tests/xlink/manual.xml => content/xml/tests/xlink/manual.xml
rename : dom/xml/tests/xmlbase/xmlbase.css => content/xml/tests/xmlbase/xmlbase.css
rename : dom/xml/tests/xmlbase/xmlbase.xml => content/xml/tests/xmlbase/xmlbase.xml
2014-04-14 08:51:51 +02:00

294 lines
7.8 KiB
Python

# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.
EXPORTS += [
'DrawMode.h',
'gfx2DGlue.h',
'gfx3DMatrix.h',
'gfxAlphaRecovery.h',
'gfxASurface.h',
'gfxBaseSharedMemorySurface.h',
'gfxBlur.h',
'gfxCachedTempSurface.h',
'gfxColor.h',
'gfxContext.h',
'gfxDrawable.h',
'gfxFailure.h',
'gfxFont.h',
'gfxFontConstants.h',
'gfxFontFeatures.h',
'gfxFontInfoLoader.h',
'gfxFontTest.h',
'gfxFontUtils.h',
'gfxGradientCache.h',
'gfxImageSurface.h',
'gfxLineSegment.h',
'gfxMatrix.h',
'gfxPath.h',
'gfxPattern.h',
'gfxPlatform.h',
'gfxPoint.h',
'gfxPoint3D.h',
'gfxPointH3D.h',
'gfxPrefs.h',
'gfxQuad.h',
'gfxQuaternion.h',
'gfxRect.h',
'gfxReusableImageSurfaceWrapper.h',
'gfxReusableSharedImageSurfaceWrapper.h',
'gfxReusableSurfaceWrapper.h',
'gfxSharedImageSurface.h',
'gfxSharedQuartzSurface.h',
'gfxSkipChars.h',
'gfxSVGGlyphs.h',
'gfxTeeSurface.h',
'gfxTypes.h',
'gfxUserFontSet.h',
'gfxUtils.h',
'GraphicsFilter.h',
'nsSurfaceTexture.h',
'RoundedRect.h',
]
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
EXPORTS += [
'gfxAndroidPlatform.h',
'gfxFT2FontBase.h',
'gfxFT2Fonts.h',
'gfxPDFSurface.h',
]
SOURCES += [
'gfxAndroidPlatform.cpp',
'gfxFT2FontBase.cpp',
'gfxFT2FontList.cpp',
'gfxFT2Fonts.cpp',
'gfxFT2Utils.cpp',
'gfxPDFSurface.cpp',
]
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
EXPORTS += [
'gfxAndroidPlatform.h',
'gfxFT2FontBase.h',
'gfxFT2Fonts.h',
'gfxPDFSurface.h',
]
SOURCES += [
'gfxAndroidPlatform.cpp',
'gfxFT2FontBase.cpp',
'gfxFT2FontList.cpp',
'gfxFT2Fonts.cpp',
'gfxFT2Utils.cpp',
'gfxPDFSurface.cpp',
]
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
EXPORTS += [
'gfxPlatformMac.h',
'gfxQuartzImageSurface.h',
'gfxQuartzNativeDrawing.h',
'gfxQuartzSurface.h',
]
SOURCES += [
'gfxCoreTextShaper.cpp',
'gfxMacFont.cpp',
'gfxPlatformMac.cpp',
'gfxQuartzImageSurface.cpp',
'gfxQuartzNativeDrawing.cpp',
'gfxQuartzSurface.cpp',
]
elif CONFIG['MOZ_WIDGET_GTK']:
EXPORTS += [
'gfxFT2FontBase.h',
'gfxGdkNativeRenderer.h',
'gfxPangoFonts.h',
'gfxPDFSurface.h',
'gfxPlatformGtk.h',
'gfxPSSurface.h',
]
SOURCES += [
'gfxFontconfigUtils.cpp',
'gfxFT2FontBase.cpp',
'gfxFT2Utils.cpp',
'gfxGdkNativeRenderer.cpp',
'gfxPangoFonts.cpp',
'gfxPDFSurface.cpp',
'gfxPlatformGtk.cpp',
'gfxPSSurface.cpp',
]
if CONFIG['MOZ_X11']:
EXPORTS += [
'gfxXlibNativeRenderer.h',
'gfxXlibSurface.h',
]
SOURCES += [
'gfxXlibNativeRenderer.cpp',
'gfxXlibSurface.cpp',
]
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt':
EXPORTS += [
'gfxFT2FontBase.h',
'gfxPangoFonts.h',
'gfxPDFSurface.h',
'gfxQPainterSurface.h',
'gfxQtNativeRenderer.h',
'gfxQtPlatform.h',
]
SOURCES += [
'gfxFontconfigUtils.cpp',
'gfxFT2FontBase.cpp',
'gfxFT2Utils.cpp',
'gfxPangoFonts.cpp',
'gfxPDFSurface.cpp',
'gfxQPainterSurface.cpp',
'gfxQtPlatform.cpp',
]
if CONFIG['MOZ_X11']:
EXPORTS += [
'gfxXlibSurface.h',
]
SOURCES += [
'gfxQtNativeRenderer.cpp',
'gfxXlibSurface.cpp',
]
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
EXPORTS += [
'gfxD2DSurface.h',
'gfxDWriteFonts.h',
'gfxGDIFont.h',
'gfxGDIFontList.h',
'gfxPDFSurface.h',
'gfxPlatformFontList.h',
'gfxWindowsNativeDrawing.h',
'gfxWindowsPlatform.h',
'gfxWindowsSurface.h',
]
# gfxGDIFontList.cpp and gfxGDIShaper.cpp force NSPR logging, so they cannot be built in unified mode.
SOURCES += [
'gfxGDIFont.cpp',
'gfxGDIFontList.cpp',
'gfxGDIShaper.cpp',
'gfxPDFSurface.cpp',
'gfxUniscribeShaper.cpp',
'gfxWindowsNativeDrawing.cpp',
'gfxWindowsPlatform.cpp',
'gfxWindowsSurface.cpp',
]
if CONFIG['MOZ_ENABLE_DWRITE_FONT']:
# gfxDWriteFontList.cpp forces NSPR logging, so it cannot be built in unified mode.
SOURCES += [
'gfxD2DSurface.cpp',
'gfxDWriteCommon.cpp',
'gfxDWriteFontList.cpp',
'gfxDWriteFonts.cpp',
'gfxDWriteShaper.cpp',
'gfxDWriteTextAnalysis.cpp',
]
# Are we targeting x86 or x64? If so, build gfxAlphaRecoverySSE2.cpp.
if CONFIG['INTEL_ARCHITECTURE']:
SOURCES += ['gfxAlphaRecoverySSE2.cpp']
# The file uses SSE2 intrinsics, so it needs special compile flags on some
# compilers.
SOURCES['gfxAlphaRecoverySSE2.cpp'].flags += CONFIG['SSE2_FLAGS']
SOURCES += [
# 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',
'gfxPrefs.cpp',
# Uses FORCE_PR_LOG
'gfxUserFontSet.cpp',
]
UNIFIED_SOURCES += [
'CJKCompatSVS.cpp',
'gfx3DMatrix.cpp',
'gfxAlphaRecovery.cpp',
'gfxBaseSharedMemorySurface.cpp',
'gfxBlur.cpp',
'gfxCachedTempSurface.cpp',
'gfxContext.cpp',
'gfxFontFeatures.cpp',
'gfxFontInfoLoader.cpp',
'gfxFontMissingGlyphs.cpp',
'gfxFontTest.cpp',
'gfxGradientCache.cpp',
'gfxGraphiteShaper.cpp',
'gfxHarfBuzzShaper.cpp',
'gfxImageSurface.cpp',
'gfxMatrix.cpp',
'gfxPath.cpp',
'gfxPattern.cpp',
'gfxRect.cpp',
'gfxReusableImageSurfaceWrapper.cpp',
'gfxReusableSharedImageSurfaceWrapper.cpp',
'gfxScriptItemizer.cpp',
'gfxSkipChars.cpp',
'gfxSVGGlyphs.cpp',
'gfxTeeSurface.cpp',
'gfxUtils.cpp',
'nsSurfaceTexture.cpp',
'nsUnicodeRange.cpp',
]
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
# gfxMacPlatformFontList.mm forces NSPR logging so it cannot be built in unified mode.
SOURCES += [
'gfxMacPlatformFontList.mm',
]
FAIL_ON_WARNINGS = not CONFIG['_MSC_VER']
MSVC_ENABLE_PGO = True
LIBRARY_NAME = 'thebes'
include('/ipc/chromium/chromium-config.mozbuild')
FINAL_LIBRARY = 'xul'
GENERATED_FILES = [
'DeprecatedPremultiplyTables.h',
]
LOCAL_INCLUDES += [
'/content/xml/document/src',
]
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