michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: if CONFIG['OS_TARGET'] != 'WINNT' and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk': michael@0: CPP_UNIT_TESTS += [ michael@0: 'buffered_stun_socket_unittest.cpp', michael@0: 'nrappkit_unittest.cpp', michael@0: 'rlogringbuffer_unittest.cpp', michael@0: 'runnable_utils_unittest.cpp', michael@0: 'simpletokenbucket_unittest.cpp', michael@0: 'sockettransportservice_unittest.cpp', michael@0: 'TestSyncRunnable.cpp', michael@0: 'transport_unittests.cpp', michael@0: 'turn_unittest.cpp', michael@0: ] michael@0: michael@0: # Bug 1037618 - Cross-tree (network related?) failures on OSX michael@0: if CONFIG['OS_TARGET'] != 'Darwin': michael@0: CPP_UNIT_TESTS += [ michael@0: 'ice_unittest.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_SCTP']: michael@0: CPP_UNIT_TESTS += [ michael@0: 'sctp_unittest.cpp', michael@0: ] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: for var in ('HAVE_STRDUP', 'NR_SOCKET_IS_VOID_PTR', 'SCTP_DEBUG', 'INET'): michael@0: DEFINES[var] = True michael@0: michael@0: if CONFIG['OS_TARGET'] == 'Android': michael@0: LOCAL_INCLUDES += [ michael@0: '/media/mtransport/third_party/nrappkit/src/port/android/include', michael@0: ] michael@0: else: michael@0: DEFINES['INET6'] = True michael@0: michael@0: if CONFIG['OS_TARGET'] == 'Linux': michael@0: LOCAL_INCLUDES += [ michael@0: '/media/mtransport/third_party/nrappkit/src/port/linux/include', michael@0: ] michael@0: michael@0: if CONFIG['OS_TARGET'] == 'Darwin': michael@0: LOCAL_INCLUDES += [ michael@0: '/media/mtransport/third_party/nrappkit/src/port/darwin/include', michael@0: ] michael@0: michael@0: if CONFIG['OS_TARGET'] in ('DragonFly', 'FreeBSD', 'NetBSD', 'OpenBSD'): michael@0: LOCAL_INCLUDES += [ michael@0: '/media/mtransport/third_party/nrappkit/src/port/darwin/include', michael@0: '/media/mtransport/third_party/nrappkit/src/port/generic/include', michael@0: ] michael@0: michael@0: # SCTP DEFINES michael@0: if CONFIG['OS_TARGET'] == 'WINNT': michael@0: DEFINES['__Userspace_os_Windows'] = 1 michael@0: else: michael@0: # Works for Darwin, Linux, Android. Probably doesn't work for others. michael@0: DEFINES['__Userspace_os_%s' % CONFIG['OS_TARGET']] = 1 michael@0: michael@0: if CONFIG['OS_TARGET'] in ('Darwin', 'Android'): michael@0: DEFINES['GTEST_USE_OWN_TR1_TUPLE'] = 1 michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '/media/mtransport/', michael@0: '/media/mtransport/third_party/', michael@0: '/media/mtransport/third_party/nICEr/src/crypto', michael@0: '/media/mtransport/third_party/nICEr/src/ice', michael@0: '/media/mtransport/third_party/nICEr/src/net', michael@0: '/media/mtransport/third_party/nICEr/src/stun', michael@0: '/media/mtransport/third_party/nICEr/src/util', michael@0: '/media/mtransport/third_party/nrappkit/src/event', michael@0: '/media/mtransport/third_party/nrappkit/src/log', michael@0: '/media/mtransport/third_party/nrappkit/src/plugin', michael@0: '/media/mtransport/third_party/nrappkit/src/registry', michael@0: '/media/mtransport/third_party/nrappkit/src/share', michael@0: '/media/mtransport/third_party/nrappkit/src/stats', michael@0: '/media/mtransport/third_party/nrappkit/src/util/', michael@0: '/media/mtransport/third_party/nrappkit/src/util/libekr', michael@0: '/media/webrtc/trunk/testing/gtest/include/', michael@0: '/netwerk/sctp/src/', michael@0: ] michael@0: