moz.build (2663B)
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- 2 # vim: set filetype=python: 3 # This Source Code Form is subject to the terms of the Mozilla Public 4 # License, v. 2.0. If a copy of the MPL was not distributed with this 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 7 with Files("**"): 8 BUG_COMPONENT = ("Core", "DOM: Workers") 9 10 DIRS += ["remoteworkers", "sharedworkers", "loader"] 11 12 # Public stuff. 13 EXPORTS.mozilla.dom += [ 14 "ChromeWorker.h", 15 "EventWithOptionsRunnable.h", 16 "JSExecutionManager.h", 17 "Worker.h", 18 "WorkerChannelInfo.h", 19 "WorkerCommon.h", 20 "WorkerCSPContext.h", 21 "WorkerDebugger.h", 22 "WorkerDebuggerManager.h", 23 "WorkerDocumentListener.h", 24 "WorkerError.h", 25 "WorkerIPCUtils.h", 26 "WorkerLoadInfo.h", 27 "WorkerLocation.h", 28 "WorkerNavigator.h", 29 "WorkerPrivate.h", 30 "WorkerRef.h", 31 "WorkerRunnable.h", 32 "WorkerScope.h", 33 "WorkerStatus.h", 34 "WorkerTestUtils.h", 35 ] 36 37 # Private stuff. 38 EXPORTS.mozilla.dom.workerinternals += [ 39 "JSSettings.h", 40 "Queue.h", 41 "RuntimeService.h", 42 "ScriptLoader.h", 43 ] 44 45 XPIDL_MODULE = "dom_workers" 46 47 XPIDL_SOURCES += [ 48 "nsIWorkerChannelInfo.idl", 49 "nsIWorkerDebugger.idl", 50 "nsIWorkerDebuggerManager.idl", 51 ] 52 53 UNIFIED_SOURCES += [ 54 "ChromeWorker.cpp", 55 "ChromeWorkerScope.cpp", 56 "EventWithOptionsRunnable.cpp", 57 "JSExecutionManager.cpp", 58 "MessageEventRunnable.cpp", 59 "RegisterBindings.cpp", 60 "RuntimeService.cpp", 61 "ScriptLoader.cpp", 62 "Worker.cpp", 63 "WorkerChannelInfo.cpp", 64 "WorkerCSPContext.cpp", 65 "WorkerCSPEventListener.cpp", 66 "WorkerDebugger.cpp", 67 "WorkerDebuggerManager.cpp", 68 "WorkerDocumentListener.cpp", 69 "WorkerError.cpp", 70 "WorkerEventTarget.cpp", 71 "WorkerLoadInfo.cpp", 72 "WorkerLocation.cpp", 73 "WorkerNavigator.cpp", 74 "WorkerPrivate.cpp", 75 "WorkerRef.cpp", 76 "WorkerRunnable.cpp", 77 "WorkerScope.cpp", 78 "WorkerTestUtils.cpp", 79 "WorkerThread.cpp", 80 ] 81 82 LOCAL_INCLUDES += [ 83 "/caps", 84 "/dom/base", 85 "/dom/bindings", 86 "/dom/system", 87 "/dom/workers/remoteworkers", 88 "/js/xpconnect/loader", 89 "/netwerk/base", 90 "/xpcom/build", 91 "/xpcom/threads", 92 ] 93 94 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa": 95 LOCAL_INCLUDES += [ 96 "/xpcom/base", 97 ] 98 99 100 include("/ipc/chromium/chromium-config.mozbuild") 101 102 FINAL_LIBRARY = "xul" 103 104 MOCHITEST_MANIFESTS += [ 105 "test/mochitest.toml", 106 ] 107 108 MOCHITEST_CHROME_MANIFESTS += [ 109 "test/chrome.toml", 110 ] 111 112 MARIONETTE_MANIFESTS += ["test/marionette/manifest.toml"] 113 114 XPCSHELL_TESTS_MANIFESTS += ["test/xpcshell/xpcshell.toml"] 115 116 BROWSER_CHROME_MANIFESTS += ["test/browser.toml"]