2016-07-14 16:16:42 +00:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2015-04-09 13:15:00 +00:00
|
|
|
# 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/.
|
|
|
|
|
|
|
|
mtransport_lcppsrcs = [
|
|
|
|
'dtlsidentity.cpp',
|
2018-05-09 22:13:35 +00:00
|
|
|
'mediapacket.cpp',
|
2018-06-05 17:10:16 +00:00
|
|
|
'nr_socket_proxy_config.cpp',
|
2015-04-09 13:15:00 +00:00
|
|
|
'nr_socket_prsock.cpp',
|
2019-09-17 18:17:11 +00:00
|
|
|
'nr_socket_tcp.cpp',
|
2015-04-09 13:15:00 +00:00
|
|
|
'nr_timer.cpp',
|
|
|
|
'nricectx.cpp',
|
|
|
|
'nricemediastream.cpp',
|
|
|
|
'nriceresolver.cpp',
|
|
|
|
'nriceresolverfake.cpp',
|
2017-03-22 00:59:05 +00:00
|
|
|
'nricestunaddr.cpp',
|
2015-04-09 13:15:00 +00:00
|
|
|
'nrinterfaceprioritizer.cpp',
|
2016-10-11 07:17:26 +00:00
|
|
|
'rlogconnector.cpp',
|
2015-04-09 13:15:00 +00:00
|
|
|
'simpletokenbucket.cpp',
|
2018-04-23 18:14:30 +00:00
|
|
|
'SrtpFlow.cpp',
|
2016-02-11 09:18:46 +00:00
|
|
|
'stun_socket_filter.cpp',
|
2015-06-10 22:27:12 +00:00
|
|
|
'test_nr_socket.cpp',
|
2015-04-09 13:15:00 +00:00
|
|
|
'transportflow.cpp',
|
|
|
|
'transportlayer.cpp',
|
|
|
|
'transportlayerdtls.cpp',
|
|
|
|
'transportlayerice.cpp',
|
|
|
|
'transportlayerlog.cpp',
|
|
|
|
'transportlayerloopback.cpp',
|
2018-04-23 18:14:30 +00:00
|
|
|
'transportlayersrtp.cpp',
|
2019-09-17 18:15:41 +00:00
|
|
|
'WebrtcTCPSocketWrapper.cpp',
|
2015-04-09 13:15:00 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
mtransport_cppsrcs = [
|
2015-05-15 00:49:20 +00:00
|
|
|
'/media/mtransport/%s' % s for s in sorted(mtransport_lcppsrcs)
|
2015-04-09 13:15:00 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
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/port/generic/include',
|
|
|
|
'/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/libekr',
|
2018-04-23 18:14:30 +00:00
|
|
|
'/netwerk/srtp/src/crypto/include',
|
|
|
|
'/netwerk/srtp/src/include',
|
2015-04-09 13:15:00 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_TARGET'] in ['Darwin', 'DragonFly', 'FreeBSD', 'NetBSD', 'OpenBSD']:
|
|
|
|
if CONFIG['OS_TARGET'] == 'Darwin':
|
|
|
|
DEFINES['DARWIN'] = True
|
|
|
|
else:
|
|
|
|
DEFINES['BSD'] = True
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/media/mtransport/third_party/nrappkit/src/port/darwin/include',
|
|
|
|
]
|
|
|
|
elif CONFIG['OS_TARGET'] == 'Linux':
|
|
|
|
DEFINES['LINUX'] = True
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/media/mtransport/third_party/nrappkit/src/port/linux/include',
|
|
|
|
]
|
|
|
|
elif CONFIG['OS_TARGET'] == 'Android':
|
|
|
|
DEFINES['LINUX'] = True
|
|
|
|
DEFINES['ANDROID'] = True
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/media/mtransport/third_party/nrappkit/src/port/android/include',
|
|
|
|
]
|
|
|
|
elif CONFIG['OS_TARGET'] == 'WINNT':
|
|
|
|
DEFINES['WIN'] = True
|
|
|
|
# for stun.h
|
|
|
|
DEFINES['WIN32'] = True
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/media/mtransport/third_party/nrappkit/src/port/win32/include',
|
|
|
|
]
|
|
|
|
|
|
|
|
for var in ('HAVE_STRDUP', 'NR_SOCKET_IS_VOID_PTR'):
|
|
|
|
DEFINES[var] = True
|
|
|
|
|
|
|
|
DEFINES['R_DEFINED_INT2'] = 'int16_t'
|
|
|
|
DEFINES['R_DEFINED_UINT2'] = 'uint16_t'
|
|
|
|
DEFINES['R_DEFINED_INT4'] = 'int32_t'
|
|
|
|
DEFINES['R_DEFINED_UINT4'] = 'uint32_t'
|
|
|
|
DEFINES['R_DEFINED_INT8'] = 'int64_t'
|
|
|
|
DEFINES['R_DEFINED_UINT8'] = 'uint64_t'
|
2016-05-11 07:00:01 +00:00
|
|
|
|
2017-12-07 21:09:15 +00:00
|
|
|
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
2016-05-11 07:00:01 +00:00
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|