Bumping manifests a=b2g-bump
[gecko.git] / media / mtransport / standalone / moz.build
blob5678dfb978ccf2e1bda495e36746e921382a85a7
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')
16 LOCAL_INCLUDES += [
17     '/media/mtransport/',
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
37     else:
38         DEFINES['BSD'] = True
39     LOCAL_INCLUDES += [
40         '/media/mtransport/third_party/nrappkit/src/port/darwin/include',
41     ]
42 elif CONFIG['OS_TARGET'] == 'Linux':
43     DEFINES['LINUX'] = True
44     DEFINES['USE_INTERFACE_PRIORITIZER'] = True
45     LOCAL_INCLUDES += [
46         '/media/mtransport/third_party/nrappkit/src/port/linux/include',
47     ]
48 elif CONFIG['OS_TARGET'] == 'Android':
49     DEFINES['LINUX'] = True
50     DEFINES['ANDROID'] = True
51     LOCAL_INCLUDES += [
52         '/media/mtransport/third_party/nrappkit/src/port/android/include',
53     ]
54 elif CONFIG['OS_TARGET'] == 'WINNT':
55     DEFINES['WIN'] = True
56     # for stun.h
57     DEFINES['WIN32'] = True
58     DEFINES['NOMINMAX'] = True
59     LOCAL_INCLUDES += [
60         '/media/mtransport/third_party/nrappkit/src/port/win32/include',
61     ]
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'):
69     DEFINES[var] = True
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'