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-03-19 11:47:00 -07:00
|
|
|
MODULE = 'gfx2d'
|
|
|
|
|
2013-06-16 19:05:14 -07:00
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'GenericRefCounted.h',
|
|
|
|
]
|
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS.mozilla.gfx += [
|
|
|
|
'2D.h',
|
|
|
|
'BaseMargin.h',
|
|
|
|
'BasePoint.h',
|
|
|
|
'BasePoint3D.h',
|
|
|
|
'BasePoint4D.h',
|
|
|
|
'BaseRect.h',
|
|
|
|
'BaseSize.h',
|
|
|
|
'Blur.h',
|
|
|
|
'Matrix.h',
|
|
|
|
'PathHelpers.h',
|
|
|
|
'Point.h',
|
|
|
|
'Rect.h',
|
|
|
|
'Scale.h',
|
2013-06-14 13:11:31 -07:00
|
|
|
'ScaleFactor.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'Tools.h',
|
|
|
|
'Types.h',
|
|
|
|
'UserData.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
EXPORTS.mozilla.gfx += [
|
|
|
|
'MacIOSurface.h',
|
2013-05-08 11:31:52 -07:00
|
|
|
'QuartzSupport.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
]
|
2013-04-23 14:54:15 -07:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'SourceSurfaceCG.cpp',
|
|
|
|
'DrawTargetCG.cpp',
|
|
|
|
'PathCG.cpp',
|
|
|
|
'ScaledFontMac.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'DrawTargetD2D.cpp',
|
|
|
|
'SourceSurfaceD2D.cpp',
|
|
|
|
'SourceSurfaceD2DTarget.cpp',
|
|
|
|
'PathD2D.cpp',
|
|
|
|
'ScaledFontDWrite.cpp',
|
|
|
|
]
|
2013-07-17 05:12:05 -07:00
|
|
|
if CONFIG['MOZ_ENABLE_DIRECT2D1_1']:
|
2013-06-20 20:53:23 -07:00
|
|
|
CPP_SOURCES += [
|
2013-07-17 05:12:22 -07:00
|
|
|
'RadialGradientEffectD2D1.cpp',
|
|
|
|
'DrawTargetD2D1.cpp',
|
|
|
|
'SourceSurfaceD2D1.cpp'
|
2013-06-20 20:53:23 -07:00
|
|
|
]
|
2013-04-23 14:54:15 -07:00
|
|
|
if CONFIG['MOZ_ENABLE_SKIA']:
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'ScaledFontWin.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_SKIA']:
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'SourceSurfaceSkia.cpp',
|
|
|
|
'DrawTargetSkia.cpp',
|
|
|
|
'PathSkia.cpp',
|
|
|
|
'convolver.cpp',
|
|
|
|
'image_operations.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
# Are we targeting x86 or x64? If so, build SSE2 files.
|
|
|
|
if CONFIG['INTEL_ARCHITECTURE']:
|
|
|
|
# VC2005 doesn't support _mm_castsi128_ps, so SSE2 is turned off
|
|
|
|
if CONFIG['_MSC_VER'] != '1400':
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'ImageScalingSSE2.cpp',
|
|
|
|
'BlurSSE2.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'Blur.cpp',
|
|
|
|
'DrawEventRecorder.cpp',
|
|
|
|
'DrawTargetCairo.cpp',
|
|
|
|
'DrawTargetDual.cpp',
|
|
|
|
'DrawTargetRecording.cpp',
|
|
|
|
'Factory.cpp',
|
|
|
|
'ImageScaling.cpp',
|
|
|
|
'Matrix.cpp',
|
|
|
|
'PathCairo.cpp',
|
|
|
|
'PathRecording.cpp',
|
|
|
|
'RecordedEvent.cpp',
|
|
|
|
'Scale.cpp',
|
|
|
|
'ScaledFontBase.cpp',
|
2013-06-05 10:48:59 -07:00
|
|
|
'ScaledFontCairo.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'SourceSurfaceCairo.cpp',
|
|
|
|
'SourceSurfaceRawData.cpp',
|
|
|
|
]
|
|
|
|
|
2013-07-01 09:32:40 -07:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
CMMSRCS += [
|
|
|
|
'QuartzSupport.mm',
|
|
|
|
]
|
2013-08-21 23:56:00 -07:00
|
|
|
|
|
|
|
LIBXUL_LIBRARY = True
|
|
|
|
|
2013-08-21 23:56:01 -07:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|