Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 XPIDL_SOURCES += [
8 'nsIFontEnumerator.idl',
9 'nsIScriptableRegion.idl',
10 ]
12 XPIDL_MODULE = 'gfx'
14 EXPORTS += [
15 'FilterSupport.h',
16 'gfxCore.h',
17 'gfxCrashReporterUtils.h',
18 'nsBoundingMetrics.h',
19 'nsColor.h',
20 'nsColorNameList.h',
21 'nsColorNames.h',
22 'nsCoord.h',
23 'nsDeviceContext.h',
24 'nsFont.h',
25 'nsFontMetrics.h',
26 'nsGfxCIID.h',
27 'nsITheme.h',
28 'nsMargin.h',
29 'nsPoint.h',
30 'nsRect.h',
31 'nsRegion.h',
32 'nsRenderingContext.h',
33 'nsSize.h',
34 'nsThemeConstants.h',
35 'nsTransform2D.h',
36 ]
38 EXPORTS.mozilla += [
39 'AppUnits.h',
40 ]
42 if CONFIG['MOZ_X11']:
43 EXPORTS.mozilla += ['X11Util.h']
44 SOURCES += [
45 'X11Util.cpp',
46 ]
48 UNIFIED_SOURCES += [
49 'FilterSupport.cpp',
50 'gfxCrashReporterUtils.cpp',
51 'nsColor.cpp',
52 'nsFont.cpp',
53 'nsFontMetrics.cpp',
54 'nsRect.cpp',
55 'nsRegion.cpp',
56 'nsRenderingContext.cpp',
57 'nsScriptableRegion.cpp',
58 'nsThebesFontEnumerator.cpp',
59 'nsThebesGfxFactory.cpp',
60 'nsTransform2D.cpp',
61 ]
63 # nsDeviceContext.cpp cannot be built in unified mode because it pulls in OS X system headers.
64 SOURCES += [
65 'nsDeviceContext.cpp',
66 ]
68 FAIL_ON_WARNINGS = True
70 MSVC_ENABLE_PGO = True
72 FINAL_LIBRARY = 'xul'