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.
michael@0 | 1 | # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
michael@0 | 2 | # vim: set filetype=python: |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | |
michael@0 | 7 | EXPORTS += [ |
michael@0 | 8 | 'chromium_types.h', |
michael@0 | 9 | 'ycbcr_to_rgb565.h', |
michael@0 | 10 | 'YCbCrUtils.h', |
michael@0 | 11 | 'yuv_convert.h', |
michael@0 | 12 | 'yuv_row.h', |
michael@0 | 13 | ] |
michael@0 | 14 | |
michael@0 | 15 | UNIFIED_SOURCES += [ |
michael@0 | 16 | 'ycbcr_to_rgb565.cpp', |
michael@0 | 17 | 'YCbCrUtils.cpp', |
michael@0 | 18 | 'yuv_convert.cpp', |
michael@0 | 19 | 'yuv_row_c.cpp', |
michael@0 | 20 | 'yuv_row_table.cpp', |
michael@0 | 21 | ] |
michael@0 | 22 | |
michael@0 | 23 | if CONFIG['INTEL_ARCHITECTURE']: |
michael@0 | 24 | # These files use MMX and SSE2 intrinsics, so they need special compile flags |
michael@0 | 25 | # on some compilers. |
michael@0 | 26 | SOURCES += ['yuv_convert_sse2.cpp'] |
michael@0 | 27 | SOURCES['yuv_convert_sse2.cpp'].flags += CONFIG['SSE2_FLAGS'] |
michael@0 | 28 | |
michael@0 | 29 | # MSVC doesn't support MMX when targeting AMD64. |
michael@0 | 30 | if CONFIG['_MSC_VER']: |
michael@0 | 31 | if CONFIG['OS_TEST'] != 'x86_64': |
michael@0 | 32 | SOURCES += [ |
michael@0 | 33 | 'yuv_convert_mmx.cpp', |
michael@0 | 34 | ] |
michael@0 | 35 | else: |
michael@0 | 36 | SOURCES += ['yuv_convert_mmx.cpp'] |
michael@0 | 37 | SOURCES['yuv_convert_mmx.cpp'].flags += CONFIG['MMX_FLAGS'] |
michael@0 | 38 | |
michael@0 | 39 | if CONFIG['_MSC_VER']: |
michael@0 | 40 | if CONFIG['OS_TEST'] == 'x86_64': |
michael@0 | 41 | if CONFIG['_MSC_VER'] == '1400': |
michael@0 | 42 | # VC8 doesn't support some SSE2 built-in functions |
michael@0 | 43 | SOURCES += [ |
michael@0 | 44 | 'yuv_row_win.cpp', |
michael@0 | 45 | ] |
michael@0 | 46 | else: |
michael@0 | 47 | SOURCES += [ |
michael@0 | 48 | 'yuv_row_win64.cpp', |
michael@0 | 49 | ] |
michael@0 | 50 | else: |
michael@0 | 51 | SOURCES += [ |
michael@0 | 52 | 'yuv_row_win.cpp', |
michael@0 | 53 | ] |
michael@0 | 54 | elif CONFIG['OS_ARCH'] in ('Linux', 'SunOS', 'Darwin', 'DragonFly', |
michael@0 | 55 | 'FreeBSD', 'NetBSD', 'OpenBSD'): |
michael@0 | 56 | SOURCES += [ |
michael@0 | 57 | 'yuv_row_posix.cpp', |
michael@0 | 58 | ] |
michael@0 | 59 | else: |
michael@0 | 60 | SOURCES += [ |
michael@0 | 61 | 'yuv_row_other.cpp', |
michael@0 | 62 | ] |
michael@0 | 63 | |
michael@0 | 64 | if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['HAVE_ARM_NEON']: |
michael@0 | 65 | SOURCES += [ |
michael@0 | 66 | 'yuv_row_arm.s', |
michael@0 | 67 | ] |
michael@0 | 68 | SOURCES += [ |
michael@0 | 69 | 'yuv_convert_arm.cpp', |
michael@0 | 70 | ] |
michael@0 | 71 | |
michael@0 | 72 | FINAL_LIBRARY = 'xul' |