moz.build (4023B)
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: Service Workers") 9 10 # Public stuff. 11 EXPORTS.mozilla.dom += [ 12 "FetchEventOpChild.h", 13 "FetchEventOpParent.h", 14 "FetchEventOpProxyChild.h", 15 "FetchEventOpProxyParent.h", 16 "NavigationPreloadManager.h", 17 "ServiceWorker.h", 18 "ServiceWorkerActors.h", 19 "ServiceWorkerChild.h", 20 "ServiceWorkerCloneData.h", 21 "ServiceWorkerContainer.h", 22 "ServiceWorkerContainerChild.h", 23 "ServiceWorkerContainerParent.h", 24 "ServiceWorkerDescriptor.h", 25 "ServiceWorkerEvents.h", 26 "ServiceWorkerInfo.h", 27 "ServiceWorkerInterceptController.h", 28 "ServiceWorkerIPCUtils.h", 29 "ServiceWorkerLifetimeExtension.h", 30 "ServiceWorkerManager.h", 31 "ServiceWorkerManagerChild.h", 32 "ServiceWorkerManagerParent.h", 33 "ServiceWorkerOp.h", 34 "ServiceWorkerOpPromise.h", 35 "ServiceWorkerParent.h", 36 "ServiceWorkerRegistrar.h", 37 "ServiceWorkerRegistration.h", 38 "ServiceWorkerRegistrationChild.h", 39 "ServiceWorkerRegistrationDescriptor.h", 40 "ServiceWorkerRegistrationInfo.h", 41 "ServiceWorkerRegistrationParent.h", 42 "ServiceWorkerShutdownState.h", 43 "ServiceWorkerUtils.h", 44 ] 45 46 UNIFIED_SOURCES += [ 47 "FetchEventOpChild.cpp", 48 "FetchEventOpParent.cpp", 49 "FetchEventOpProxyChild.cpp", 50 "FetchEventOpProxyParent.cpp", 51 "NavigationPreloadManager.cpp", 52 "ServiceWorker.cpp", 53 "ServiceWorkerActors.cpp", 54 "ServiceWorkerChild.cpp", 55 "ServiceWorkerCloneData.cpp", 56 "ServiceWorkerContainer.cpp", 57 "ServiceWorkerContainerChild.cpp", 58 "ServiceWorkerContainerParent.cpp", 59 "ServiceWorkerContainerProxy.cpp", 60 "ServiceWorkerDescriptor.cpp", 61 "ServiceWorkerEvents.cpp", 62 "ServiceWorkerInfo.cpp", 63 "ServiceWorkerInterceptController.cpp", 64 "ServiceWorkerJob.cpp", 65 "ServiceWorkerJobQueue.cpp", 66 "ServiceWorkerLifetimeExtension.cpp", 67 "ServiceWorkerManager.cpp", 68 "ServiceWorkerManagerParent.cpp", 69 "ServiceWorkerOp.cpp", 70 "ServiceWorkerParent.cpp", 71 "ServiceWorkerPrivate.cpp", 72 "ServiceWorkerProxy.cpp", 73 "ServiceWorkerQuotaUtils.cpp", 74 "ServiceWorkerRegisterJob.cpp", 75 "ServiceWorkerRegistrar.cpp", 76 "ServiceWorkerRegistration.cpp", 77 "ServiceWorkerRegistrationChild.cpp", 78 "ServiceWorkerRegistrationDescriptor.cpp", 79 "ServiceWorkerRegistrationInfo.cpp", 80 "ServiceWorkerRegistrationParent.cpp", 81 "ServiceWorkerRegistrationProxy.cpp", 82 "ServiceWorkerScriptCache.cpp", 83 "ServiceWorkerShutdownBlocker.cpp", 84 "ServiceWorkerShutdownState.cpp", 85 "ServiceWorkerUnregisterCallback.cpp", 86 "ServiceWorkerUnregisterJob.cpp", 87 "ServiceWorkerUpdateJob.cpp", 88 "ServiceWorkerUtils.cpp", 89 ] 90 91 IPDL_SOURCES += [ 92 "IPCNavigationPreloadState.ipdlh", 93 "IPCServiceWorkerDescriptor.ipdlh", 94 "IPCServiceWorkerRegistrationDescriptor.ipdlh", 95 "PFetchEventOp.ipdl", 96 "PFetchEventOpProxy.ipdl", 97 "PServiceWorker.ipdl", 98 "PServiceWorkerContainer.ipdl", 99 "PServiceWorkerManager.ipdl", 100 "PServiceWorkerRegistration.ipdl", 101 "ServiceWorkerOpArgs.ipdlh", 102 "ServiceWorkerRegistrarTypes.ipdlh", 103 ] 104 105 LOCAL_INCLUDES += [ 106 # For HttpBaseChannel.h dependencies 107 "/netwerk/base", 108 # For HttpBaseChannel.h 109 "/netwerk/protocol/http", 110 ] 111 112 include("/ipc/chromium/chromium-config.mozbuild") 113 114 FINAL_LIBRARY = "xul" 115 116 MOCHITEST_MANIFESTS += [ 117 "test/mochitest-dFPI.toml", 118 "test/mochitest-private.toml", 119 "test/mochitest.toml", 120 "test/performance/perftest.toml", 121 ] 122 123 MOCHITEST_CHROME_MANIFESTS += [ 124 "test/chrome-dFPI.toml", 125 "test/chrome.toml", 126 ] 127 128 BROWSER_CHROME_MANIFESTS += [ 129 "test/browser-dFPI.toml", 130 "test/browser.toml", 131 "test/isolated/multi-e10s-update/browser.toml", 132 ] 133 134 TEST_DIRS += ["test/gtest"]