media/mtransport/standalone/moz.build

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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 include('../objs.mozbuild')
michael@0 8
michael@0 9 # These files cannot be built in unified mode because they force NSPR logging.
michael@0 10 SOURCES += mtransport_cppsrcs
michael@0 11
michael@0 12 LIBRARY_NAME = 'mtransport_s'
michael@0 13
michael@0 14 LOCAL_INCLUDES = [
michael@0 15 '/media/webrtc/trunk/third_party/libjingle/source/',
michael@0 16 ]
michael@0 17 LOCAL_INCLUDES += [
michael@0 18 '/media/mtransport/',
michael@0 19 '/media/mtransport/third_party/',
michael@0 20 '/media/mtransport/third_party/nICEr/src/crypto',
michael@0 21 '/media/mtransport/third_party/nICEr/src/ice',
michael@0 22 '/media/mtransport/third_party/nICEr/src/net',
michael@0 23 '/media/mtransport/third_party/nICEr/src/stun',
michael@0 24 '/media/mtransport/third_party/nICEr/src/util',
michael@0 25 '/media/mtransport/third_party/nrappkit/src/event',
michael@0 26 '/media/mtransport/third_party/nrappkit/src/log',
michael@0 27 '/media/mtransport/third_party/nrappkit/src/plugin',
michael@0 28 '/media/mtransport/third_party/nrappkit/src/port/generic/include',
michael@0 29 '/media/mtransport/third_party/nrappkit/src/registry',
michael@0 30 '/media/mtransport/third_party/nrappkit/src/share',
michael@0 31 '/media/mtransport/third_party/nrappkit/src/stats',
michael@0 32 '/media/mtransport/third_party/nrappkit/src/util/libekr',
michael@0 33 ]
michael@0 34
michael@0 35 if CONFIG['OS_TARGET'] in ['Darwin', 'DragonFly', 'FreeBSD', 'NetBSD', 'OpenBSD']:
michael@0 36 if CONFIG['OS_TARGET'] == 'Darwin':
michael@0 37 DEFINES['DARWIN'] = True
michael@0 38 else:
michael@0 39 DEFINES['BSD'] = True
michael@0 40 LOCAL_INCLUDES += [
michael@0 41 '/media/mtransport/third_party/nrappkit/src/port/darwin/include',
michael@0 42 ]
michael@0 43 elif CONFIG['OS_TARGET'] == 'Linux':
michael@0 44 DEFINES['LINUX'] = True
michael@0 45 DEFINES['USE_INTERFACE_PRIORITIZER'] = True
michael@0 46 LOCAL_INCLUDES += [
michael@0 47 '/media/mtransport/third_party/nrappkit/src/port/linux/include',
michael@0 48 ]
michael@0 49 elif CONFIG['OS_TARGET'] == 'Android':
michael@0 50 DEFINES['LINUX'] = True
michael@0 51 DEFINES['ANDROID'] = True
michael@0 52 LOCAL_INCLUDES += [
michael@0 53 '/media/mtransport/third_party/nrappkit/src/port/android/include',
michael@0 54 ]
michael@0 55 elif CONFIG['OS_TARGET'] == 'WINNT':
michael@0 56 DEFINES['WIN'] = True
michael@0 57 # for stun.h
michael@0 58 DEFINES['WIN32'] = True
michael@0 59 DEFINES['NOMINMAX'] = True
michael@0 60 LOCAL_INCLUDES += [
michael@0 61 '/media/mtransport/third_party/nrappkit/src/port/win32/include',
michael@0 62 ]
michael@0 63
michael@0 64 FORCE_STATIC_LIB = True
michael@0 65
michael@0 66 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
michael@0 67 DEFINES['USE_INTERFACE_PRIORITIZER'] = True
michael@0 68
michael@0 69 for var in ('HAVE_STRDUP', 'NR_SOCKET_IS_VOID_PTR'):
michael@0 70 DEFINES[var] = True
michael@0 71
michael@0 72 DEFINES['R_DEFINED_INT2'] = 'int16_t'
michael@0 73 DEFINES['R_DEFINED_UINT2'] = 'uint16_t'
michael@0 74 DEFINES['R_DEFINED_INT4'] = 'int32_t'
michael@0 75 DEFINES['R_DEFINED_UINT4'] = 'uint32_t'
michael@0 76 DEFINES['R_DEFINED_INT8'] = 'int64_t'
michael@0 77 DEFINES['R_DEFINED_UINT8'] = 'uint64_t'

mercurial