dom/network/moz.build
author Seth Fowler <mark.seth.fowler@gmail.com>
Wed, 22 Jun 2016 13:34:07 -0700
changeset 302352 ebb6ba3a1204f3eb4078a0400e06e71b600262a0
parent 297480 2572c0758dd4377a832c1e8ed16522dc829634ad
child 306187 3ec6380fca8207fa199693206a3ca24975bf9833
permissions -rw-r--r--
Bug 1255632 - Make Maybe::map and Maybe::apply support lambdas. r=waldo,njn

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

DIRS += ['interfaces']

if CONFIG['MOZ_B2G_RIL']:
    XPCSHELL_TESTS_MANIFESTS += ['tests/unit_stats/xpcshell.ini']

MOCHITEST_CHROME_MANIFESTS += ['tests/chrome.ini']
MOCHITEST_MANIFESTS += ['tests/mochitest.ini']

EXPORTS.mozilla.dom += [
    'TCPServerSocket.h',
    'TCPSocket.h',
    'UDPSocket.h',
]

EXPORTS.mozilla.dom.network += [
    'Connection.h',
    'Constants.h',
    'TCPServerSocketChild.h',
    'TCPServerSocketParent.h',
    'TCPSocketChild.h',
    'TCPSocketParent.h',
    'Types.h',
    'UDPSocketChild.h',
    'UDPSocketParent.h',
]

UNIFIED_SOURCES += [
    'Connection.cpp',
    'TCPServerSocket.cpp',
    'TCPServerSocketChild.cpp',
    'TCPServerSocketParent.cpp',
    'TCPSocket.cpp',
    'TCPSocketChild.cpp',
    'TCPSocketParent.cpp',
    'UDPSocket.cpp',
    'UDPSocketChild.cpp',
    'UDPSocketParent.cpp',
]

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
    EXTRA_JS_MODULES += [
        'NetworkStatsDB.jsm',
        'NetworkStatsService.jsm',
    ]

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
    EXTRA_COMPONENTS += [
        'EthernetManager.js',
        'EthernetManager.manifest',
        'NetworkStatsManager.js',
        'NetworkStatsManager.manifest',
        'NetworkStatsServiceProxy.js',
        'NetworkStatsServiceProxy.manifest',
    ]
    EXPORTS.mozilla.dom.network += [
        'NetUtils.h',
    ]
    UNIFIED_SOURCES += [
        'NetUtils.cpp',
    ]

IPDL_SOURCES += [
    'PTCPServerSocket.ipdl',
    'PTCPSocket.ipdl',
    'PUDPSocket.ipdl',
]

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'xul'

if CONFIG['GNU_CXX']:
    CXXFLAGS += ['-Wno-error=shadow']