Bumping manifests a=b2g-bump
[gecko.git] / media / mtransport / test / moz.build
blob340ac80e6dafaac6bb1752725a6319c0c6f5bae1
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 if CONFIG['OS_TARGET'] != 'WINNT' and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
8     GeckoCppUnitTests([
9         'buffered_stun_socket_unittest',
10         'ice_unittest',
11         'nrappkit_unittest',
12         'rlogringbuffer_unittest',
13         'runnable_utils_unittest',
14         'simpletokenbucket_unittest',
15         'sockettransportservice_unittest',
16         'TestSyncRunnable',
17         'transport_unittests',
18         'turn_unittest',
19     ])
21     if CONFIG['MOZ_SCTP']:
22         GeckoCppUnitTests([
23             'sctp_unittest',
24         ])
26 FAIL_ON_WARNINGS = True
28 for var in ('HAVE_STRDUP', 'NR_SOCKET_IS_VOID_PTR', 'SCTP_DEBUG', 'INET'):
29     DEFINES[var] = True
31 if CONFIG['OS_TARGET'] == 'Android':
32     LOCAL_INCLUDES += [
33         '/media/mtransport/third_party/nrappkit/src/port/android/include',
34     ]
35 else:
36     DEFINES['INET6'] = True
38 if CONFIG['OS_TARGET'] == 'Linux':
39     LOCAL_INCLUDES += [
40         '/media/mtransport/third_party/nrappkit/src/port/linux/include',
41     ]
43 if CONFIG['OS_TARGET'] == 'Darwin':
44     LOCAL_INCLUDES += [
45         '/media/mtransport/third_party/nrappkit/src/port/darwin/include',
46     ]
48 if CONFIG['OS_TARGET'] in ('DragonFly', 'FreeBSD', 'NetBSD', 'OpenBSD'):
49     LOCAL_INCLUDES += [
50         '/media/mtransport/third_party/nrappkit/src/port/darwin/include',
51         '/media/mtransport/third_party/nrappkit/src/port/generic/include',
52     ]
54 # SCTP DEFINES
55 if CONFIG['OS_TARGET'] == 'WINNT':
56     DEFINES['__Userspace_os_Windows'] = 1
57 else:
58     # Works for Darwin, Linux, Android. Probably doesn't work for others.
59     DEFINES['__Userspace_os_%s' % CONFIG['OS_TARGET']] = 1
61 if CONFIG['OS_TARGET'] in ('Darwin', 'Android'):
62     DEFINES['GTEST_USE_OWN_TR1_TUPLE'] = 1
64 LOCAL_INCLUDES += [
65     '/media/mtransport/',
66     '/media/mtransport/third_party/',
67     '/media/mtransport/third_party/nICEr/src/crypto',
68     '/media/mtransport/third_party/nICEr/src/ice',
69     '/media/mtransport/third_party/nICEr/src/net',
70     '/media/mtransport/third_party/nICEr/src/stun',
71     '/media/mtransport/third_party/nICEr/src/util',
72     '/media/mtransport/third_party/nrappkit/src/event',
73     '/media/mtransport/third_party/nrappkit/src/log',
74     '/media/mtransport/third_party/nrappkit/src/plugin',
75     '/media/mtransport/third_party/nrappkit/src/registry',
76     '/media/mtransport/third_party/nrappkit/src/share',
77     '/media/mtransport/third_party/nrappkit/src/stats',
78     '/media/mtransport/third_party/nrappkit/src/util/',
79     '/media/mtransport/third_party/nrappkit/src/util/libekr',
80     '/media/webrtc/trunk/testing/gtest/include/',
81     '/netwerk/sctp/src/',
84 USE_LIBS += [
85     '/media/webrtc/trunk/testing/gtest_gtest/gtest',
86     'mtransport_s',
87     'nicer',
88     'nrappkit',
89     'nss',
92 if not CONFIG['MOZ_NATIVE_NSS'] and not CONFIG['MOZ_FOLD_LIBS']:
93     USE_LIBS += [
94         # Statically linking NSS libssl ensures that we can debug NSS too
95         'static:/security/nss/lib/ssl/ssl',
96     ]
98 if CONFIG['MOZ_SCTP']:
99     USE_LIBS += [
100         'nksctp_s',
101     ]