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 | if CONFIG['OS_TARGET'] != 'WINNT' and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk': |
michael@0 | 8 | CPP_UNIT_TESTS += [ |
michael@0 | 9 | 'buffered_stun_socket_unittest.cpp', |
michael@0 | 10 | 'nrappkit_unittest.cpp', |
michael@0 | 11 | 'rlogringbuffer_unittest.cpp', |
michael@0 | 12 | 'runnable_utils_unittest.cpp', |
michael@0 | 13 | 'simpletokenbucket_unittest.cpp', |
michael@0 | 14 | 'sockettransportservice_unittest.cpp', |
michael@0 | 15 | 'TestSyncRunnable.cpp', |
michael@0 | 16 | 'transport_unittests.cpp', |
michael@0 | 17 | 'turn_unittest.cpp', |
michael@0 | 18 | ] |
michael@0 | 19 | |
michael@0 | 20 | # Bug 1037618 - Cross-tree (network related?) failures on OSX |
michael@0 | 21 | if CONFIG['OS_TARGET'] != 'Darwin': |
michael@0 | 22 | CPP_UNIT_TESTS += [ |
michael@0 | 23 | 'ice_unittest.cpp', |
michael@0 | 24 | ] |
michael@0 | 25 | |
michael@0 | 26 | if CONFIG['MOZ_SCTP']: |
michael@0 | 27 | CPP_UNIT_TESTS += [ |
michael@0 | 28 | 'sctp_unittest.cpp', |
michael@0 | 29 | ] |
michael@0 | 30 | |
michael@0 | 31 | FAIL_ON_WARNINGS = True |
michael@0 | 32 | |
michael@0 | 33 | for var in ('HAVE_STRDUP', 'NR_SOCKET_IS_VOID_PTR', 'SCTP_DEBUG', 'INET'): |
michael@0 | 34 | DEFINES[var] = True |
michael@0 | 35 | |
michael@0 | 36 | if CONFIG['OS_TARGET'] == 'Android': |
michael@0 | 37 | LOCAL_INCLUDES += [ |
michael@0 | 38 | '/media/mtransport/third_party/nrappkit/src/port/android/include', |
michael@0 | 39 | ] |
michael@0 | 40 | else: |
michael@0 | 41 | DEFINES['INET6'] = True |
michael@0 | 42 | |
michael@0 | 43 | if CONFIG['OS_TARGET'] == 'Linux': |
michael@0 | 44 | LOCAL_INCLUDES += [ |
michael@0 | 45 | '/media/mtransport/third_party/nrappkit/src/port/linux/include', |
michael@0 | 46 | ] |
michael@0 | 47 | |
michael@0 | 48 | if CONFIG['OS_TARGET'] == 'Darwin': |
michael@0 | 49 | LOCAL_INCLUDES += [ |
michael@0 | 50 | '/media/mtransport/third_party/nrappkit/src/port/darwin/include', |
michael@0 | 51 | ] |
michael@0 | 52 | |
michael@0 | 53 | if CONFIG['OS_TARGET'] in ('DragonFly', 'FreeBSD', 'NetBSD', 'OpenBSD'): |
michael@0 | 54 | LOCAL_INCLUDES += [ |
michael@0 | 55 | '/media/mtransport/third_party/nrappkit/src/port/darwin/include', |
michael@0 | 56 | '/media/mtransport/third_party/nrappkit/src/port/generic/include', |
michael@0 | 57 | ] |
michael@0 | 58 | |
michael@0 | 59 | # SCTP DEFINES |
michael@0 | 60 | if CONFIG['OS_TARGET'] == 'WINNT': |
michael@0 | 61 | DEFINES['__Userspace_os_Windows'] = 1 |
michael@0 | 62 | else: |
michael@0 | 63 | # Works for Darwin, Linux, Android. Probably doesn't work for others. |
michael@0 | 64 | DEFINES['__Userspace_os_%s' % CONFIG['OS_TARGET']] = 1 |
michael@0 | 65 | |
michael@0 | 66 | if CONFIG['OS_TARGET'] in ('Darwin', 'Android'): |
michael@0 | 67 | DEFINES['GTEST_USE_OWN_TR1_TUPLE'] = 1 |
michael@0 | 68 | |
michael@0 | 69 | LOCAL_INCLUDES += [ |
michael@0 | 70 | '/media/mtransport/', |
michael@0 | 71 | '/media/mtransport/third_party/', |
michael@0 | 72 | '/media/mtransport/third_party/nICEr/src/crypto', |
michael@0 | 73 | '/media/mtransport/third_party/nICEr/src/ice', |
michael@0 | 74 | '/media/mtransport/third_party/nICEr/src/net', |
michael@0 | 75 | '/media/mtransport/third_party/nICEr/src/stun', |
michael@0 | 76 | '/media/mtransport/third_party/nICEr/src/util', |
michael@0 | 77 | '/media/mtransport/third_party/nrappkit/src/event', |
michael@0 | 78 | '/media/mtransport/third_party/nrappkit/src/log', |
michael@0 | 79 | '/media/mtransport/third_party/nrappkit/src/plugin', |
michael@0 | 80 | '/media/mtransport/third_party/nrappkit/src/registry', |
michael@0 | 81 | '/media/mtransport/third_party/nrappkit/src/share', |
michael@0 | 82 | '/media/mtransport/third_party/nrappkit/src/stats', |
michael@0 | 83 | '/media/mtransport/third_party/nrappkit/src/util/', |
michael@0 | 84 | '/media/mtransport/third_party/nrappkit/src/util/libekr', |
michael@0 | 85 | '/media/webrtc/trunk/testing/gtest/include/', |
michael@0 | 86 | '/netwerk/sctp/src/', |
michael@0 | 87 | ] |
michael@0 | 88 |