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 include('../objs.mozbuild')
9 # These files cannot be built in unified mode because of the redefinition of
10 # getLogModule, UNIMPLEMENTED, nr_socket_long_term_violation_time,
11 # nr_socket_short_term_violation_time.
12 SOURCES += mtransport_cppsrcs
14 Library('mtransport_s')
18 '/media/mtransport/third_party/',
19 '/media/mtransport/third_party/nICEr/src/crypto',
20 '/media/mtransport/third_party/nICEr/src/ice',
21 '/media/mtransport/third_party/nICEr/src/net',
22 '/media/mtransport/third_party/nICEr/src/stun',
23 '/media/mtransport/third_party/nICEr/src/util',
24 '/media/mtransport/third_party/nrappkit/src/event',
25 '/media/mtransport/third_party/nrappkit/src/log',
26 '/media/mtransport/third_party/nrappkit/src/plugin',
27 '/media/mtransport/third_party/nrappkit/src/port/generic/include',
28 '/media/mtransport/third_party/nrappkit/src/registry',
29 '/media/mtransport/third_party/nrappkit/src/share',
30 '/media/mtransport/third_party/nrappkit/src/stats',
31 '/media/mtransport/third_party/nrappkit/src/util/libekr',
34 if CONFIG['OS_TARGET'] in ['Darwin', 'DragonFly', 'FreeBSD', 'NetBSD', 'OpenBSD']:
35 if CONFIG['OS_TARGET'] == 'Darwin':
36 DEFINES['DARWIN'] = True
40 '/media/mtransport/third_party/nrappkit/src/port/darwin/include',
42 elif CONFIG['OS_TARGET'] == 'Linux':
43 DEFINES['LINUX'] = True
44 DEFINES['USE_INTERFACE_PRIORITIZER'] = True
46 '/media/mtransport/third_party/nrappkit/src/port/linux/include',
48 elif CONFIG['OS_TARGET'] == 'Android':
49 DEFINES['LINUX'] = True
50 DEFINES['ANDROID'] = True
52 '/media/mtransport/third_party/nrappkit/src/port/android/include',
54 elif CONFIG['OS_TARGET'] == 'WINNT':
57 DEFINES['WIN32'] = True
58 DEFINES['NOMINMAX'] = True
60 '/media/mtransport/third_party/nrappkit/src/port/win32/include',
63 FORCE_STATIC_LIB = True
65 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
66 DEFINES['USE_INTERFACE_PRIORITIZER'] = True
68 for var in ('HAVE_STRDUP', 'NR_SOCKET_IS_VOID_PTR'):
71 DEFINES['R_DEFINED_INT2'] = 'int16_t'
72 DEFINES['R_DEFINED_UINT2'] = 'uint16_t'
73 DEFINES['R_DEFINED_INT4'] = 'int32_t'
74 DEFINES['R_DEFINED_UINT4'] = 'uint32_t'
75 DEFINES['R_DEFINED_INT8'] = 'int64_t'
76 DEFINES['R_DEFINED_UINT8'] = 'uint64_t'