2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:21 +04: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 22:47:00 +04:00
|
|
|
MODULE = 'gfx2d'
|
|
|
|
|
2013-06-17 06:05:14 +04:00
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'GenericRefCounted.h',
|
|
|
|
]
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS.mozilla.gfx += [
|
|
|
|
'2D.h',
|
|
|
|
'BaseMargin.h',
|
|
|
|
'BasePoint.h',
|
|
|
|
'BasePoint3D.h',
|
|
|
|
'BasePoint4D.h',
|
|
|
|
'BaseRect.h',
|
|
|
|
'BaseSize.h',
|
|
|
|
'Blur.h',
|
2013-09-23 07:28:16 +04:00
|
|
|
'BorrowedContext.h',
|
2013-11-03 20:28:30 +04:00
|
|
|
'DataSurfaceHelpers.h',
|
2013-11-12 03:53:29 +04:00
|
|
|
'Helpers.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'Matrix.h',
|
|
|
|
'PathHelpers.h',
|
|
|
|
'Point.h',
|
|
|
|
'Rect.h',
|
|
|
|
'Scale.h',
|
2013-06-15 00:11:31 +04:00
|
|
|
'ScaleFactor.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'Tools.h',
|
|
|
|
'Types.h',
|
|
|
|
'UserData.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
EXPORTS.mozilla.gfx += [
|
|
|
|
'MacIOSurface.h',
|
2013-05-08 22:31:52 +04:00
|
|
|
'QuartzSupport.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'DrawTargetCG.cpp',
|
|
|
|
'PathCG.cpp',
|
|
|
|
'ScaledFontMac.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'SourceSurfaceCG.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'DrawTargetD2D.cpp',
|
|
|
|
'PathD2D.cpp',
|
|
|
|
'ScaledFontDWrite.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'SourceSurfaceD2D.cpp',
|
|
|
|
'SourceSurfaceD2DTarget.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2013-07-17 16:12:05 +04:00
|
|
|
if CONFIG['MOZ_ENABLE_DIRECT2D1_1']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-07-17 16:12:22 +04:00
|
|
|
'DrawTargetD2D1.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'RadialGradientEffectD2D1.cpp',
|
2013-07-17 16:12:22 +04:00
|
|
|
'SourceSurfaceD2D1.cpp'
|
2013-06-21 07:53:23 +04:00
|
|
|
]
|
2013-04-24 01:54:15 +04:00
|
|
|
if CONFIG['MOZ_ENABLE_SKIA']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'ScaledFontWin.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_SKIA']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-10-24 03:05:43 +04:00
|
|
|
'convolver.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'DrawTargetSkia.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'image_operations.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'PathSkia.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'SourceSurfaceSkia.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
# 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':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'BlurSSE2.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'ImageScalingSSE2.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'Blur.cpp',
|
|
|
|
'DrawEventRecorder.cpp',
|
|
|
|
'DrawTargetCairo.cpp',
|
|
|
|
'DrawTargetDual.cpp',
|
|
|
|
'DrawTargetRecording.cpp',
|
|
|
|
'Factory.cpp',
|
|
|
|
'ImageScaling.cpp',
|
|
|
|
'Matrix.cpp',
|
|
|
|
'PathCairo.cpp',
|
2013-11-01 17:29:44 +04:00
|
|
|
'PathHelpers.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'PathRecording.cpp',
|
|
|
|
'RecordedEvent.cpp',
|
|
|
|
'Scale.cpp',
|
|
|
|
'ScaledFontBase.cpp',
|
2013-06-05 21:48:59 +04:00
|
|
|
'ScaledFontCairo.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'SourceSurfaceCairo.cpp',
|
|
|
|
'SourceSurfaceRawData.cpp',
|
|
|
|
]
|
|
|
|
|
2013-07-01 20:32:40 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-11-08 07:53:54 +04:00
|
|
|
'MacIOSurface.cpp',
|
2013-07-01 20:32:40 +04:00
|
|
|
'QuartzSupport.mm',
|
|
|
|
]
|
2013-08-22 10:56:00 +04:00
|
|
|
|
2013-11-01 06:39:03 +04:00
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-08-22 10:56:00 +04:00
|
|
|
LIBXUL_LIBRARY = True
|
|
|
|
|
2013-08-22 10:56:01 +04:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-08-15 17:02:09 +04:00
|
|
|
LIBRARY_NAME = 'gfx2d'
|
|
|
|
|
2013-10-03 11:11:13 +04:00
|
|
|
EXPORT_LIBRARY = True
|
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|