2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:21 +00: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 18:47:00 +00:00
|
|
|
MODULE = 'gfx2d'
|
|
|
|
|
2013-06-17 02:05:14 +00:00
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'GenericRefCounted.h',
|
|
|
|
]
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS.mozilla.gfx += [
|
|
|
|
'2D.h',
|
|
|
|
'BaseMargin.h',
|
|
|
|
'BasePoint.h',
|
|
|
|
'BasePoint3D.h',
|
|
|
|
'BasePoint4D.h',
|
|
|
|
'BaseRect.h',
|
|
|
|
'BaseSize.h',
|
|
|
|
'Blur.h',
|
2013-09-23 03:28:16 +00:00
|
|
|
'BorrowedContext.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'Matrix.h',
|
|
|
|
'PathHelpers.h',
|
|
|
|
'Point.h',
|
|
|
|
'Rect.h',
|
|
|
|
'Scale.h',
|
2013-06-14 20:11:31 +00:00
|
|
|
'ScaleFactor.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'Tools.h',
|
|
|
|
'Types.h',
|
|
|
|
'UserData.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
EXPORTS.mozilla.gfx += [
|
|
|
|
'MacIOSurface.h',
|
2013-05-08 18:31:52 +00:00
|
|
|
'QuartzSupport.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
]
|
2013-04-23 21:54:15 +00: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 12:12:05 +00:00
|
|
|
if CONFIG['MOZ_ENABLE_DIRECT2D1_1']:
|
2013-06-21 03:53:23 +00:00
|
|
|
CPP_SOURCES += [
|
2013-07-17 12:12:22 +00:00
|
|
|
'RadialGradientEffectD2D1.cpp',
|
|
|
|
'DrawTargetD2D1.cpp',
|
|
|
|
'SourceSurfaceD2D1.cpp'
|
2013-06-21 03:53:23 +00:00
|
|
|
]
|
2013-04-23 21:54:15 +00: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 17:48:59 +00:00
|
|
|
'ScaledFontCairo.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'SourceSurfaceCairo.cpp',
|
|
|
|
'SourceSurfaceRawData.cpp',
|
|
|
|
]
|
|
|
|
|
2013-07-01 16:32:40 +00:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
CMMSRCS += [
|
|
|
|
'QuartzSupport.mm',
|
|
|
|
]
|
2013-08-22 06:56:00 +00:00
|
|
|
|
|
|
|
LIBXUL_LIBRARY = True
|
|
|
|
|
2013-08-22 06:56:01 +00:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-08-15 13:02:09 +00:00
|
|
|
LIBRARY_NAME = 'gfx2d'
|
|
|
|
|
2013-10-03 07:11:13 +00:00
|
|
|
EXPORT_LIBRARY = True
|
|
|
|
|