media/mtransport/build/moz.build
author Mike Hommey <mh+mozilla@glandium.org>
Thu, 28 Nov 2013 14:24:05 +0900
changeset 173501 e668d88804d15156ee133f019609a3709b007b1e
parent 173495 3fd4b546eed453156a7d87548c9d30f938f46053
child 173525 f4b143a9c6241644470aab2a35e8e8045d0b59ff
permissions -rw-r--r--
Backout changeset 3fd4b546eed4 (bug 874266) and changeset a35d2e3a872f (bug 942043) for ASAN build bustage and Windows test bustage

# -*- 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/.

EXPORTS.mtransport += [
    '../dtlsidentity.h',
    '../m_cpp_utils.h',
    '../nricectx.h',
    '../nricemediastream.h',
    '../nriceresolverfake.h',
    '../rlogringbuffer.h',
    '../runnable_utils.h',
    '../runnable_utils_generated.h',
    '../sigslot.h',
    '../simpletokenbucket.h',
    '../transportflow.h',
    '../transportlayer.h',
    '../transportlayerdtls.h',
    '../transportlayerice.h',
    '../transportlayerlog.h',
    '../transportlayerloopback.h',
    '../transportlayerprsock.h',
]

include('../objs.mozbuild')

# These files cannot be built in unified mode because they force NSPR logging.
SOURCES += mtransport_cppsrcs

LIBRARY_NAME = 'mtransport'

FAIL_ON_WARNINGS = not CONFIG['_MSC_VER']

LOCAL_INCLUDES = [
    '/media/webrtc/trunk/third_party/libjingle/source/',
]
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',
]

if CONFIG['OS_TARGET'] in ['Darwin', 'DragonFly', 'FreeBSD', 'NetBSD', 'OpenBSD']:
    LOCAL_INCLUDES += [
        '/media/mtransport/third_party/nrappkit/src/port/darwin/include',
    ]
elif CONFIG['OS_TARGET'] == 'Linux':
    LOCAL_INCLUDES += [
        '/media/mtransport/third_party/nrappkit/src/port/linux/include',
    ]
elif CONFIG['OS_TARGET'] == 'Android':
    LOCAL_INCLUDES += [
        '/media/mtransport/third_party/nrappkit/src/port/android/include',
    ]
elif CONFIG['OS_TARGET'] == 'WINNT':
    LOCAL_INCLUDES += [
        '/media/mtransport/third_party/nrappkit/src/port/win32/include',
    ]

if CONFIG['OS_TARGET'] == 'WINNT':
    NO_VISIBILITY_FLAGS = True

FINAL_LIBRARY = 'xul'