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 EXPORTS += [
8 'qcms.h',
9 'qcmstypes.h',
10 ]
12 SOURCES += [
13 'chain.c',
14 'iccread.c',
15 'matrix.c',
16 'transform.c',
17 'transform_util.c',
18 ]
20 MSVC_ENABLE_PGO = True
22 FINAL_LIBRARY = 'gkmedias'
24 if CONFIG['GNU_CC']:
25 CFLAGS += ['-Wno-missing-field-initializers']
27 use_sse1 = False
28 use_sse2 = False
29 use_altivec = False
30 if '86' in CONFIG['OS_TEST']:
31 use_sse2 = True
32 if CONFIG['_MSC_VER']:
33 if CONFIG['OS_ARCH'] != 'WINNT' or CONFIG['OS_TEST'] != 'x86_64':
34 use_sse1 = True
35 else:
36 use_sse1 = True
37 elif 'ppc' in CONFIG['CPU_ARCH']:
38 if CONFIG['GNU_CC']:
39 use_altivec = True
41 if use_sse1:
42 SOURCES += ['transform-sse1.c']
43 SOURCES['transform-sse1.c'].flags += CONFIG['SSE_FLAGS']
44 if CONFIG['SOLARIS_SUNPRO_CC']:
45 if '64' in CONFIG['OS_TEST']:
46 # Sun Studio doesn't work correctly for x86 intristics
47 # with -m64 and without optimization.
48 SOURCES['transform-sse1.c'].flags += ['-xO4']
49 else:
50 SOURCES['transform-sse1.c'].flags += ['-xarch=sse']
52 if use_sse2:
53 SOURCES += ['transform-sse2.c']
54 SOURCES['transform-sse2.c'].flags += CONFIG['SSE2_FLAGS']
55 if CONFIG['SOLARIS_SUNPRO_CC']:
56 if '64' in CONFIG['OS_TEST']:
57 # Sun Studio doesn't work correctly for x86 intristics
58 # with -m64 and without optimization.
59 SOURCES['transform-sse2.c'].flags += ['-xO4']
60 else:
61 SOURCES['transform-sse2.c'].flags += ['-xarch=sse2']
63 if use_altivec:
64 SOURCES += ['transform-altivec.c']
65 SOURCES['transform-altivec.c'].flags += ['-maltivec']