summaryrefslogtreecommitdiffstats
path: root/dom/serviceworkers/moz.build
blob: b42f765fc0d06760ba38000c90b7816f90537115 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# -*- Mode: python; 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/.

with Files("**"):
    BUG_COMPONENT = ("Core", "DOM: Service Workers")

# Public stuff.
EXPORTS.mozilla.dom += [
    "FetchEventOpChild.h",
    "FetchEventOpParent.h",
    "FetchEventOpProxyChild.h",
    "FetchEventOpProxyParent.h",
    "NavigationPreloadManager.h",
    "ServiceWorker.h",
    "ServiceWorkerActors.h",
    "ServiceWorkerChild.h",
    "ServiceWorkerCloneData.h",
    "ServiceWorkerContainer.h",
    "ServiceWorkerContainerChild.h",
    "ServiceWorkerContainerParent.h",
    "ServiceWorkerDescriptor.h",
    "ServiceWorkerEvents.h",
    "ServiceWorkerInfo.h",
    "ServiceWorkerInterceptController.h",
    "ServiceWorkerIPCUtils.h",
    "ServiceWorkerManager.h",
    "ServiceWorkerManagerChild.h",
    "ServiceWorkerManagerParent.h",
    "ServiceWorkerOp.h",
    "ServiceWorkerOpPromise.h",
    "ServiceWorkerParent.h",
    "ServiceWorkerRegistrar.h",
    "ServiceWorkerRegistration.h",
    "ServiceWorkerRegistrationChild.h",
    "ServiceWorkerRegistrationDescriptor.h",
    "ServiceWorkerRegistrationInfo.h",
    "ServiceWorkerRegistrationParent.h",
    "ServiceWorkerShutdownState.h",
    "ServiceWorkerUtils.h",
]

UNIFIED_SOURCES += [
    "FetchEventOpChild.cpp",
    "FetchEventOpParent.cpp",
    "FetchEventOpProxyChild.cpp",
    "FetchEventOpProxyParent.cpp",
    "NavigationPreloadManager.cpp",
    "ServiceWorker.cpp",
    "ServiceWorkerActors.cpp",
    "ServiceWorkerChild.cpp",
    "ServiceWorkerCloneData.cpp",
    "ServiceWorkerContainer.cpp",
    "ServiceWorkerContainerChild.cpp",
    "ServiceWorkerContainerParent.cpp",
    "ServiceWorkerContainerProxy.cpp",
    "ServiceWorkerDescriptor.cpp",
    "ServiceWorkerEvents.cpp",
    "ServiceWorkerInfo.cpp",
    "ServiceWorkerInterceptController.cpp",
    "ServiceWorkerJob.cpp",
    "ServiceWorkerJobQueue.cpp",
    "ServiceWorkerManager.cpp",
    "ServiceWorkerManagerParent.cpp",
    "ServiceWorkerOp.cpp",
    "ServiceWorkerParent.cpp",
    "ServiceWorkerPrivate.cpp",
    "ServiceWorkerProxy.cpp",
    "ServiceWorkerQuotaUtils.cpp",
    "ServiceWorkerRegisterJob.cpp",
    "ServiceWorkerRegistrar.cpp",
    "ServiceWorkerRegistration.cpp",
    "ServiceWorkerRegistrationChild.cpp",
    "ServiceWorkerRegistrationDescriptor.cpp",
    "ServiceWorkerRegistrationInfo.cpp",
    "ServiceWorkerRegistrationParent.cpp",
    "ServiceWorkerRegistrationProxy.cpp",
    "ServiceWorkerScriptCache.cpp",
    "ServiceWorkerShutdownBlocker.cpp",
    "ServiceWorkerShutdownState.cpp",
    "ServiceWorkerUnregisterCallback.cpp",
    "ServiceWorkerUnregisterJob.cpp",
    "ServiceWorkerUpdateJob.cpp",
    "ServiceWorkerUtils.cpp",
]

IPDL_SOURCES += [
    "IPCNavigationPreloadState.ipdlh",
    "IPCServiceWorkerDescriptor.ipdlh",
    "IPCServiceWorkerRegistrationDescriptor.ipdlh",
    "PFetchEventOp.ipdl",
    "PFetchEventOpProxy.ipdl",
    "PServiceWorker.ipdl",
    "PServiceWorkerContainer.ipdl",
    "PServiceWorkerManager.ipdl",
    "PServiceWorkerRegistration.ipdl",
    "ServiceWorkerOpArgs.ipdlh",
    "ServiceWorkerRegistrarTypes.ipdlh",
]

LOCAL_INCLUDES += [
    # For HttpBaseChannel.h dependencies
    "/netwerk/base",
    # For HttpBaseChannel.h
    "/netwerk/protocol/http",
]

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

FINAL_LIBRARY = "xul"

MOCHITEST_MANIFESTS += [
    "test/mochitest-dFPI.toml",
    "test/mochitest.toml",
    "test/performance/perftest.toml",
]

MOCHITEST_CHROME_MANIFESTS += [
    "test/chrome-dFPI.toml",
    "test/chrome.toml",
]

BROWSER_CHROME_MANIFESTS += [
    "test/browser-dFPI.toml",
    "test/browser.toml",
    "test/isolated/multi-e10s-update/browser.toml",
]

TEST_DIRS += ["test/gtest"]