diff --git a/dom/base/moz.build b/dom/base/moz.build index a9a99ea949ba..20b01e56cd32 100644 --- a/dom/base/moz.build +++ b/dom/base/moz.build @@ -150,7 +150,7 @@ LOCAL_INCLUDES += [ '../bluetooth', '../events', '../media', - '../network/src', + '../network', '../src/geolocation', '../src/storage', '../time', diff --git a/dom/bluetooth/moz.build b/dom/bluetooth/moz.build index 674646aec231..2ce396c2c631 100644 --- a/dom/bluetooth/moz.build +++ b/dom/bluetooth/moz.build @@ -113,7 +113,7 @@ FAIL_ON_WARNINGS = True LOCAL_INCLUDES += [ '../base', - '../network/src', + '../network', '../system/gonk', ] diff --git a/dom/bluetooth2/moz.build b/dom/bluetooth2/moz.build index 1da2b473af33..81fc5e17f2f7 100644 --- a/dom/bluetooth2/moz.build +++ b/dom/bluetooth2/moz.build @@ -120,7 +120,7 @@ FAIL_ON_WARNINGS = True LOCAL_INCLUDES += [ '../base', - '../network/src', + '../network', '../system/gonk', ] diff --git a/dom/network/src/Connection.cpp b/dom/network/Connection.cpp similarity index 100% rename from dom/network/src/Connection.cpp rename to dom/network/Connection.cpp diff --git a/dom/network/src/Connection.h b/dom/network/Connection.h similarity index 100% rename from dom/network/src/Connection.h rename to dom/network/Connection.h diff --git a/dom/network/src/Constants.h b/dom/network/Constants.h similarity index 100% rename from dom/network/src/Constants.h rename to dom/network/Constants.h diff --git a/dom/network/src/NetUtils.cpp b/dom/network/NetUtils.cpp similarity index 100% rename from dom/network/src/NetUtils.cpp rename to dom/network/NetUtils.cpp diff --git a/dom/network/src/NetUtils.h b/dom/network/NetUtils.h similarity index 100% rename from dom/network/src/NetUtils.h rename to dom/network/NetUtils.h diff --git a/dom/network/src/NetworkStatsDB.jsm b/dom/network/NetworkStatsDB.jsm similarity index 100% rename from dom/network/src/NetworkStatsDB.jsm rename to dom/network/NetworkStatsDB.jsm diff --git a/dom/network/src/NetworkStatsManager.js b/dom/network/NetworkStatsManager.js similarity index 100% rename from dom/network/src/NetworkStatsManager.js rename to dom/network/NetworkStatsManager.js diff --git a/dom/network/src/NetworkStatsManager.manifest b/dom/network/NetworkStatsManager.manifest similarity index 100% rename from dom/network/src/NetworkStatsManager.manifest rename to dom/network/NetworkStatsManager.manifest diff --git a/dom/network/src/NetworkStatsService.jsm b/dom/network/NetworkStatsService.jsm similarity index 100% rename from dom/network/src/NetworkStatsService.jsm rename to dom/network/NetworkStatsService.jsm diff --git a/dom/network/src/NetworkStatsServiceProxy.js b/dom/network/NetworkStatsServiceProxy.js similarity index 100% rename from dom/network/src/NetworkStatsServiceProxy.js rename to dom/network/NetworkStatsServiceProxy.js diff --git a/dom/network/src/NetworkStatsServiceProxy.manifest b/dom/network/NetworkStatsServiceProxy.manifest similarity index 100% rename from dom/network/src/NetworkStatsServiceProxy.manifest rename to dom/network/NetworkStatsServiceProxy.manifest diff --git a/dom/network/src/PTCPServerSocket.ipdl b/dom/network/PTCPServerSocket.ipdl similarity index 100% rename from dom/network/src/PTCPServerSocket.ipdl rename to dom/network/PTCPServerSocket.ipdl diff --git a/dom/network/src/PTCPSocket.ipdl b/dom/network/PTCPSocket.ipdl similarity index 100% rename from dom/network/src/PTCPSocket.ipdl rename to dom/network/PTCPSocket.ipdl diff --git a/dom/network/src/PUDPSocket.ipdl b/dom/network/PUDPSocket.ipdl similarity index 100% rename from dom/network/src/PUDPSocket.ipdl rename to dom/network/PUDPSocket.ipdl diff --git a/dom/network/src/TCPServerSocket.js b/dom/network/TCPServerSocket.js similarity index 100% rename from dom/network/src/TCPServerSocket.js rename to dom/network/TCPServerSocket.js diff --git a/dom/network/src/TCPServerSocketChild.cpp b/dom/network/TCPServerSocketChild.cpp similarity index 100% rename from dom/network/src/TCPServerSocketChild.cpp rename to dom/network/TCPServerSocketChild.cpp diff --git a/dom/network/src/TCPServerSocketChild.h b/dom/network/TCPServerSocketChild.h similarity index 100% rename from dom/network/src/TCPServerSocketChild.h rename to dom/network/TCPServerSocketChild.h diff --git a/dom/network/src/TCPServerSocketParent.cpp b/dom/network/TCPServerSocketParent.cpp similarity index 100% rename from dom/network/src/TCPServerSocketParent.cpp rename to dom/network/TCPServerSocketParent.cpp diff --git a/dom/network/src/TCPServerSocketParent.h b/dom/network/TCPServerSocketParent.h similarity index 100% rename from dom/network/src/TCPServerSocketParent.h rename to dom/network/TCPServerSocketParent.h diff --git a/dom/network/src/TCPSocket.js b/dom/network/TCPSocket.js similarity index 100% rename from dom/network/src/TCPSocket.js rename to dom/network/TCPSocket.js diff --git a/dom/network/src/TCPSocket.manifest b/dom/network/TCPSocket.manifest similarity index 100% rename from dom/network/src/TCPSocket.manifest rename to dom/network/TCPSocket.manifest diff --git a/dom/network/src/TCPSocketChild.cpp b/dom/network/TCPSocketChild.cpp similarity index 100% rename from dom/network/src/TCPSocketChild.cpp rename to dom/network/TCPSocketChild.cpp diff --git a/dom/network/src/TCPSocketChild.h b/dom/network/TCPSocketChild.h similarity index 100% rename from dom/network/src/TCPSocketChild.h rename to dom/network/TCPSocketChild.h diff --git a/dom/network/src/TCPSocketParent.cpp b/dom/network/TCPSocketParent.cpp similarity index 100% rename from dom/network/src/TCPSocketParent.cpp rename to dom/network/TCPSocketParent.cpp diff --git a/dom/network/src/TCPSocketParent.h b/dom/network/TCPSocketParent.h similarity index 100% rename from dom/network/src/TCPSocketParent.h rename to dom/network/TCPSocketParent.h diff --git a/dom/network/src/TCPSocketParentIntermediary.js b/dom/network/TCPSocketParentIntermediary.js similarity index 100% rename from dom/network/src/TCPSocketParentIntermediary.js rename to dom/network/TCPSocketParentIntermediary.js diff --git a/dom/network/src/Types.h b/dom/network/Types.h similarity index 100% rename from dom/network/src/Types.h rename to dom/network/Types.h diff --git a/dom/network/src/UDPSocket.cpp b/dom/network/UDPSocket.cpp similarity index 100% rename from dom/network/src/UDPSocket.cpp rename to dom/network/UDPSocket.cpp diff --git a/dom/network/src/UDPSocket.h b/dom/network/UDPSocket.h similarity index 100% rename from dom/network/src/UDPSocket.h rename to dom/network/UDPSocket.h diff --git a/dom/network/src/UDPSocketChild.cpp b/dom/network/UDPSocketChild.cpp similarity index 100% rename from dom/network/src/UDPSocketChild.cpp rename to dom/network/UDPSocketChild.cpp diff --git a/dom/network/src/UDPSocketChild.h b/dom/network/UDPSocketChild.h similarity index 100% rename from dom/network/src/UDPSocketChild.h rename to dom/network/UDPSocketChild.h diff --git a/dom/network/src/UDPSocketParent.cpp b/dom/network/UDPSocketParent.cpp similarity index 100% rename from dom/network/src/UDPSocketParent.cpp rename to dom/network/UDPSocketParent.cpp diff --git a/dom/network/src/UDPSocketParent.h b/dom/network/UDPSocketParent.h similarity index 100% rename from dom/network/src/UDPSocketParent.h rename to dom/network/UDPSocketParent.h diff --git a/dom/network/moz.build b/dom/network/moz.build index 15c83f5b19cf..ee6ac73e747c 100644 --- a/dom/network/moz.build +++ b/dom/network/moz.build @@ -4,7 +4,7 @@ # 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', 'src'] +DIRS += ['interfaces'] XPCSHELL_TESTS_MANIFESTS += [ 'tests/unit/xpcshell.ini', @@ -15,3 +15,72 @@ if CONFIG['MOZ_B2G_RIL']: XPCSHELL_TESTS_MANIFESTS += ['tests/unit_stats/xpcshell.ini'] MOCHITEST_MANIFESTS += ['tests/mochitest.ini'] + +EXPORTS.mozilla.dom += [ + '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', + 'TCPServerSocketChild.cpp', + 'TCPServerSocketParent.cpp', + 'TCPSocketChild.cpp', + 'TCPSocketParent.cpp', + 'UDPSocket.cpp', + 'UDPSocketChild.cpp', + 'UDPSocketParent.cpp', +] + +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': + EXTRA_JS_MODULES += [ + 'NetworkStatsDB.jsm', + 'NetworkStatsService.jsm', + ] + +EXTRA_COMPONENTS += [ + 'TCPServerSocket.js', + 'TCPSocket.manifest', + 'TCPSocketParentIntermediary.js', +] + +EXTRA_PP_COMPONENTS += [ + 'TCPSocket.js', +] + +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': + EXTRA_COMPONENTS += [ + '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', +] + +FAIL_ON_WARNINGS = True + +include('/ipc/chromium/chromium-config.mozbuild') + +FINAL_LIBRARY = 'xul' diff --git a/dom/network/src/moz.build b/dom/network/src/moz.build deleted file mode 100644 index a4783944b51f..000000000000 --- a/dom/network/src/moz.build +++ /dev/null @@ -1,74 +0,0 @@ -# -*- 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.mozilla.dom += [ - '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', - 'TCPServerSocketChild.cpp', - 'TCPServerSocketParent.cpp', - 'TCPSocketChild.cpp', - 'TCPSocketParent.cpp', - 'UDPSocket.cpp', - 'UDPSocketChild.cpp', - 'UDPSocketParent.cpp', -] - -if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': - EXTRA_JS_MODULES += [ - 'NetworkStatsDB.jsm', - 'NetworkStatsService.jsm', - ] - -EXTRA_COMPONENTS += [ - 'TCPServerSocket.js', - 'TCPSocket.manifest', - 'TCPSocketParentIntermediary.js', -] - -EXTRA_PP_COMPONENTS += [ - 'TCPSocket.js', -] - -if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': - EXTRA_COMPONENTS += [ - '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', -] - -FAIL_ON_WARNINGS = True - -include('/ipc/chromium/chromium-config.mozbuild') - -FINAL_LIBRARY = 'xul'