media/webrtc/signaling/test/moz.build

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
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 'mediaconduit_unittests.cpp',
michael@0 10 'mediapipeline_unittest.cpp',
michael@0 11 'sdp_unittests.cpp',
michael@0 12 'signaling_unittests.cpp',
michael@0 13 ]
michael@0 14 include('/ipc/chromium/chromium-config.mozbuild')
michael@0 15
michael@0 16 if CONFIG['OS_TARGET'] in ('Darwin', 'Android'):
michael@0 17 DEFINES['GTEST_USE_OWN_TR1_TUPLE'] = 1
michael@0 18
michael@0 19 for var in ('USE_FAKE_MEDIA_STREAMS', 'USE_FAKE_PCOBSERVER',
michael@0 20 'NR_SOCKET_IS_VOID_PTR', 'HAVE_STRDUP'):
michael@0 21 DEFINES[var] = True
michael@0 22
michael@0 23 GENERATED_INCLUDES += [
michael@0 24 '/dom/bindings',
michael@0 25 ]
michael@0 26 LOCAL_INCLUDES += [
michael@0 27 '/ipc/chromium/src',
michael@0 28 '/media/mtransport',
michael@0 29 '/media/mtransport/test',
michael@0 30 '/media/mtransport/third_party/nICEr/src/ice',
michael@0 31 '/media/mtransport/third_party/nICEr/src/net',
michael@0 32 '/media/mtransport/third_party/nICEr/src/stun',
michael@0 33 '/media/mtransport/third_party/nrappkit/src/event',
michael@0 34 '/media/mtransport/third_party/nrappkit/src/log',
michael@0 35 '/media/mtransport/third_party/nrappkit/src/plugin',
michael@0 36 '/media/mtransport/third_party/nrappkit/src/registry',
michael@0 37 '/media/mtransport/third_party/nrappkit/src/share',
michael@0 38 '/media/mtransport/third_party/nrappkit/src/stats',
michael@0 39 '/media/mtransport/third_party/nrappkit/src/util/libekr',
michael@0 40 '/media/webrtc/signaling/include',
michael@0 41 '/media/webrtc/signaling/media-conduit',
michael@0 42 '/media/webrtc/signaling/src/common/browser_logging',
michael@0 43 '/media/webrtc/signaling/src/common/time_profiling',
michael@0 44 '/media/webrtc/signaling/src/media',
michael@0 45 '/media/webrtc/signaling/src/media-conduit',
michael@0 46 '/media/webrtc/signaling/src/mediapipeline',
michael@0 47 '/media/webrtc/signaling/src/peerconnection',
michael@0 48 '/media/webrtc/signaling/src/sipcc/core/includes',
michael@0 49 '/media/webrtc/signaling/src/sipcc/core/sdp',
michael@0 50 '/media/webrtc/signaling/src/sipcc/cpr/include',
michael@0 51 '/media/webrtc/signaling/src/sipcc/include',
michael@0 52 '/media/webrtc/trunk',
michael@0 53 '/media/webrtc/trunk/testing/gtest/include',
michael@0 54 '/media/webrtc/trunk/third_party/libjingle/source',
michael@0 55 '/xpcom/base',
michael@0 56 ]
michael@0 57
michael@0 58 if CONFIG['OS_TARGET'] == 'Android':
michael@0 59 LOCAL_INCLUDES += [
michael@0 60 '/media/mtransport/third_party/nrappkit/src/port/android/include',
michael@0 61 ]
michael@0 62
michael@0 63 if CONFIG['OS_TARGET'] == 'Linux':
michael@0 64 LOCAL_INCLUDES += [
michael@0 65 '/media/mtransport/third_party/nrappkit/src/port/linux/include',
michael@0 66 ]
michael@0 67
michael@0 68 if CONFIG['OS_TARGET'] == 'Darwin':
michael@0 69 LOCAL_INCLUDES += [
michael@0 70 '/media/mtransport/third_party/nrappkit/src/port/darwin/include',
michael@0 71 ]
michael@0 72 LDFLAGS += [
michael@0 73 '-framework AudioToolbox',
michael@0 74 '-framework AudioUnit',
michael@0 75 '-framework Carbon',
michael@0 76 '-framework CoreAudio',
michael@0 77 '-framework OpenGL',
michael@0 78 '-framework QTKit',
michael@0 79 '-framework QuartzCore',
michael@0 80 '-framework Security',
michael@0 81 '-framework SystemConfiguration',
michael@0 82 '-framework IOKit',
michael@0 83 '-F%s' % CONFIG['MACOS_PRIVATE_FRAMEWORKS_DIR'],
michael@0 84 '-framework CoreUI',
michael@0 85 ]
michael@0 86
michael@0 87 if CONFIG['OS_TARGET'] in ('DragonFly', 'FreeBSD', 'NetBSD', 'OpenBSD'):
michael@0 88 LOCAL_INCLUDES += [
michael@0 89 '/media/mtransport/third_party/nrappkit/src/port/darwin/include',
michael@0 90 '/media/mtransport/third_party/nrappkit/src/port/generic/include',
michael@0 91 ]

mercurial