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: include('../objs.mozbuild') michael@0: michael@0: # These files cannot be built in unified mode because they force NSPR logging. michael@0: SOURCES += mtransport_cppsrcs michael@0: michael@0: LIBRARY_NAME = 'mtransport_s' michael@0: michael@0: LOCAL_INCLUDES = [ michael@0: '/media/webrtc/trunk/third_party/libjingle/source/', 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/port/generic/include', 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/libekr', michael@0: ] michael@0: michael@0: if CONFIG['OS_TARGET'] in ['Darwin', 'DragonFly', 'FreeBSD', 'NetBSD', 'OpenBSD']: michael@0: if CONFIG['OS_TARGET'] == 'Darwin': michael@0: DEFINES['DARWIN'] = True michael@0: else: michael@0: DEFINES['BSD'] = True michael@0: LOCAL_INCLUDES += [ michael@0: '/media/mtransport/third_party/nrappkit/src/port/darwin/include', michael@0: ] michael@0: elif CONFIG['OS_TARGET'] == 'Linux': michael@0: DEFINES['LINUX'] = True michael@0: DEFINES['USE_INTERFACE_PRIORITIZER'] = True michael@0: LOCAL_INCLUDES += [ michael@0: '/media/mtransport/third_party/nrappkit/src/port/linux/include', michael@0: ] michael@0: elif CONFIG['OS_TARGET'] == 'Android': michael@0: DEFINES['LINUX'] = True michael@0: DEFINES['ANDROID'] = True michael@0: LOCAL_INCLUDES += [ michael@0: '/media/mtransport/third_party/nrappkit/src/port/android/include', michael@0: ] michael@0: elif CONFIG['OS_TARGET'] == 'WINNT': michael@0: DEFINES['WIN'] = True michael@0: # for stun.h michael@0: DEFINES['WIN32'] = True michael@0: DEFINES['NOMINMAX'] = True michael@0: LOCAL_INCLUDES += [ michael@0: '/media/mtransport/third_party/nrappkit/src/port/win32/include', michael@0: ] michael@0: michael@0: FORCE_STATIC_LIB = True michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': michael@0: DEFINES['USE_INTERFACE_PRIORITIZER'] = True michael@0: michael@0: for var in ('HAVE_STRDUP', 'NR_SOCKET_IS_VOID_PTR'): michael@0: DEFINES[var] = True michael@0: michael@0: DEFINES['R_DEFINED_INT2'] = 'int16_t' michael@0: DEFINES['R_DEFINED_UINT2'] = 'uint16_t' michael@0: DEFINES['R_DEFINED_INT4'] = 'int32_t' michael@0: DEFINES['R_DEFINED_UINT4'] = 'uint32_t' michael@0: DEFINES['R_DEFINED_INT8'] = 'int64_t' michael@0: DEFINES['R_DEFINED_UINT8'] = 'uint64_t'