media/mtransport/test/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/mtransport/test/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,88 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +if CONFIG['OS_TARGET'] != 'WINNT' and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
    1.11 +    CPP_UNIT_TESTS += [
    1.12 +        'buffered_stun_socket_unittest.cpp',
    1.13 +        'nrappkit_unittest.cpp',
    1.14 +        'rlogringbuffer_unittest.cpp',
    1.15 +        'runnable_utils_unittest.cpp',
    1.16 +        'simpletokenbucket_unittest.cpp',
    1.17 +        'sockettransportservice_unittest.cpp',
    1.18 +        'TestSyncRunnable.cpp',
    1.19 +        'transport_unittests.cpp',
    1.20 +        'turn_unittest.cpp',
    1.21 +    ]
    1.22 +
    1.23 +    # Bug 1037618 - Cross-tree (network related?) failures on OSX
    1.24 +    if CONFIG['OS_TARGET'] != 'Darwin':
    1.25 +        CPP_UNIT_TESTS += [
    1.26 +            'ice_unittest.cpp',
    1.27 +        ]
    1.28 +
    1.29 +    if CONFIG['MOZ_SCTP']:
    1.30 +        CPP_UNIT_TESTS += [
    1.31 +            'sctp_unittest.cpp',
    1.32 +        ]
    1.33 +
    1.34 +FAIL_ON_WARNINGS = True
    1.35 +
    1.36 +for var in ('HAVE_STRDUP', 'NR_SOCKET_IS_VOID_PTR', 'SCTP_DEBUG', 'INET'):
    1.37 +    DEFINES[var] = True
    1.38 +
    1.39 +if CONFIG['OS_TARGET'] == 'Android':
    1.40 +    LOCAL_INCLUDES += [
    1.41 +        '/media/mtransport/third_party/nrappkit/src/port/android/include',
    1.42 +    ]
    1.43 +else:
    1.44 +    DEFINES['INET6'] = True
    1.45 +
    1.46 +if CONFIG['OS_TARGET'] == 'Linux':
    1.47 +    LOCAL_INCLUDES += [
    1.48 +        '/media/mtransport/third_party/nrappkit/src/port/linux/include',
    1.49 +    ]
    1.50 +
    1.51 +if CONFIG['OS_TARGET'] == 'Darwin':
    1.52 +    LOCAL_INCLUDES += [
    1.53 +        '/media/mtransport/third_party/nrappkit/src/port/darwin/include',
    1.54 +    ]
    1.55 +
    1.56 +if CONFIG['OS_TARGET'] in ('DragonFly', 'FreeBSD', 'NetBSD', 'OpenBSD'):
    1.57 +    LOCAL_INCLUDES += [
    1.58 +        '/media/mtransport/third_party/nrappkit/src/port/darwin/include',
    1.59 +        '/media/mtransport/third_party/nrappkit/src/port/generic/include',
    1.60 +    ]
    1.61 +
    1.62 +# SCTP DEFINES
    1.63 +if CONFIG['OS_TARGET'] == 'WINNT':
    1.64 +    DEFINES['__Userspace_os_Windows'] = 1
    1.65 +else:
    1.66 +    # Works for Darwin, Linux, Android. Probably doesn't work for others.
    1.67 +    DEFINES['__Userspace_os_%s' % CONFIG['OS_TARGET']] = 1
    1.68 +
    1.69 +if CONFIG['OS_TARGET'] in ('Darwin', 'Android'):
    1.70 +    DEFINES['GTEST_USE_OWN_TR1_TUPLE'] = 1
    1.71 +
    1.72 +LOCAL_INCLUDES += [
    1.73 +    '/media/mtransport/',
    1.74 +    '/media/mtransport/third_party/',
    1.75 +    '/media/mtransport/third_party/nICEr/src/crypto',
    1.76 +    '/media/mtransport/third_party/nICEr/src/ice',
    1.77 +    '/media/mtransport/third_party/nICEr/src/net',
    1.78 +    '/media/mtransport/third_party/nICEr/src/stun',
    1.79 +    '/media/mtransport/third_party/nICEr/src/util',
    1.80 +    '/media/mtransport/third_party/nrappkit/src/event',
    1.81 +    '/media/mtransport/third_party/nrappkit/src/log',
    1.82 +    '/media/mtransport/third_party/nrappkit/src/plugin',
    1.83 +    '/media/mtransport/third_party/nrappkit/src/registry',
    1.84 +    '/media/mtransport/third_party/nrappkit/src/share',
    1.85 +    '/media/mtransport/third_party/nrappkit/src/stats',
    1.86 +    '/media/mtransport/third_party/nrappkit/src/util/',
    1.87 +    '/media/mtransport/third_party/nrappkit/src/util/libekr',
    1.88 +    '/media/webrtc/trunk/testing/gtest/include/',
    1.89 +    '/netwerk/sctp/src/',
    1.90 +]
    1.91 +

mercurial