mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
103 lines
3.2 KiB
Python
103 lines
3.2 KiB
Python
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
if CONFIG['OS_TARGET'] != 'WINNT' and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
|
|
GeckoCppUnitTests([
|
|
'buffered_stun_socket_unittest',
|
|
'ice_unittest',
|
|
'nrappkit_unittest',
|
|
'proxy_tunnel_socket_unittest',
|
|
'rlogringbuffer_unittest',
|
|
'runnable_utils_unittest',
|
|
'simpletokenbucket_unittest',
|
|
'sockettransportservice_unittest',
|
|
'TestSyncRunnable',
|
|
'transport_unittests',
|
|
'turn_unittest',
|
|
])
|
|
|
|
if CONFIG['MOZ_SCTP']:
|
|
GeckoCppUnitTests([
|
|
'sctp_unittest',
|
|
])
|
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
for var in ('HAVE_STRDUP', 'NR_SOCKET_IS_VOID_PTR', 'SCTP_DEBUG', 'INET'):
|
|
DEFINES[var] = True
|
|
|
|
if CONFIG['OS_TARGET'] == 'Android':
|
|
LOCAL_INCLUDES += [
|
|
'/media/mtransport/third_party/nrappkit/src/port/android/include',
|
|
]
|
|
else:
|
|
DEFINES['INET6'] = True
|
|
|
|
if CONFIG['OS_TARGET'] == 'Linux':
|
|
LOCAL_INCLUDES += [
|
|
'/media/mtransport/third_party/nrappkit/src/port/linux/include',
|
|
]
|
|
|
|
if CONFIG['OS_TARGET'] == 'Darwin':
|
|
LOCAL_INCLUDES += [
|
|
'/media/mtransport/third_party/nrappkit/src/port/darwin/include',
|
|
]
|
|
|
|
if CONFIG['OS_TARGET'] in ('DragonFly', 'FreeBSD', 'NetBSD', 'OpenBSD'):
|
|
LOCAL_INCLUDES += [
|
|
'/media/mtransport/third_party/nrappkit/src/port/darwin/include',
|
|
'/media/mtransport/third_party/nrappkit/src/port/generic/include',
|
|
]
|
|
|
|
# SCTP DEFINES
|
|
if CONFIG['OS_TARGET'] == 'WINNT':
|
|
DEFINES['__Userspace_os_Windows'] = 1
|
|
else:
|
|
# Works for Darwin, Linux, Android. Probably doesn't work for others.
|
|
DEFINES['__Userspace_os_%s' % CONFIG['OS_TARGET']] = 1
|
|
|
|
if CONFIG['OS_TARGET'] in ('Darwin', 'Android'):
|
|
DEFINES['GTEST_USE_OWN_TR1_TUPLE'] = 1
|
|
|
|
LOCAL_INCLUDES += [
|
|
'/media/mtransport/',
|
|
'/media/mtransport/third_party/',
|
|
'/media/mtransport/third_party/nICEr/src/crypto',
|
|
'/media/mtransport/third_party/nICEr/src/ice',
|
|
'/media/mtransport/third_party/nICEr/src/net',
|
|
'/media/mtransport/third_party/nICEr/src/stun',
|
|
'/media/mtransport/third_party/nICEr/src/util',
|
|
'/media/mtransport/third_party/nrappkit/src/event',
|
|
'/media/mtransport/third_party/nrappkit/src/log',
|
|
'/media/mtransport/third_party/nrappkit/src/plugin',
|
|
'/media/mtransport/third_party/nrappkit/src/registry',
|
|
'/media/mtransport/third_party/nrappkit/src/share',
|
|
'/media/mtransport/third_party/nrappkit/src/stats',
|
|
'/media/mtransport/third_party/nrappkit/src/util/',
|
|
'/media/mtransport/third_party/nrappkit/src/util/libekr',
|
|
'/media/webrtc/trunk/testing/gtest/include/',
|
|
'/netwerk/sctp/src/',
|
|
]
|
|
|
|
USE_LIBS += [
|
|
'/media/webrtc/trunk/testing/gtest_gtest/gtest',
|
|
'mtransport_s',
|
|
'nicer',
|
|
'nrappkit',
|
|
'nss',
|
|
]
|
|
|
|
if not CONFIG['MOZ_NATIVE_NSS'] and not CONFIG['MOZ_FOLD_LIBS']:
|
|
USE_LIBS += [
|
|
# Statically linking NSS libssl ensures that we can debug NSS too
|
|
'static:/security/nss/lib/ssl/ssl',
|
|
]
|
|
|
|
if CONFIG['MOZ_SCTP']:
|
|
USE_LIBS += [
|
|
'nksctp_s',
|
|
]
|