Bug 1874684 - Part 4: Prefer const references instead of copying Instant values....
[gecko.git] / dom / security / moz.build
blobf63fa22db65d7aa2dbfc6ac8d59e2d0441bbfdb3
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/.
7 with Files("*"):
8     BUG_COMPONENT = ("Core", "DOM: Security")
10 TEST_DIRS += ["test"]
12 DIRS += ["featurepolicy", "sanitizer", "trusted-types"]
14 EXPORTS.mozilla.dom += [
15     "CSPEvalChecker.h",
16     "DOMSecurityMonitor.h",
17     "FramingChecker.h",
18     "nsContentSecurityManager.h",
19     "nsContentSecurityUtils.h",
20     "nsCSPContext.h",
21     "nsCSPService.h",
22     "nsCSPUtils.h",
23     "nsHTTPSOnlyStreamListener.h",
24     "nsHTTPSOnlyUtils.h",
25     "nsMixedContentBlocker.h",
26     "PolicyTokenizer.h",
27     "ReferrerInfo.h",
28     "SecFetch.h",
29     "SRICheck.h",
30     "SRILogHelper.h",
31     "SRIMetadata.h",
34 EXPORTS += [
35     "nsContentSecurityManager.h",
36     "nsContentSecurityUtils.h",
37     "nsMixedContentBlocker.h",
38     "ReferrerInfo.h",
41 UNIFIED_SOURCES += [
42     "CSPEvalChecker.cpp",
43     "DOMSecurityMonitor.cpp",
44     "FramingChecker.cpp",
45     "nsContentSecurityManager.cpp",
46     "nsContentSecurityUtils.cpp",
47     "nsCSPContext.cpp",
48     "nsCSPParser.cpp",
49     "nsCSPService.cpp",
50     "nsCSPUtils.cpp",
51     "nsHTTPSOnlyStreamListener.cpp",
52     "nsHTTPSOnlyUtils.cpp",
53     "nsMixedContentBlocker.cpp",
54     "PolicyTokenizer.cpp",
55     "ReferrerInfo.cpp",
56     "SecFetch.cpp",
57     "SRICheck.cpp",
58     "SRIMetadata.cpp",
61 include("/ipc/chromium/chromium-config.mozbuild")
63 FINAL_LIBRARY = "xul"
64 LOCAL_INCLUDES += [
65     "/caps",
66     "/docshell/base",  # for nsDocShell.h
67     "/netwerk/base",
68     "/netwerk/protocol/data",  # for nsDataHandler.h
69     "/netwerk/protocol/http",  # for HttpBaseChannel.h
72 include("/tools/fuzzing/libfuzzer-config.mozbuild")
74 if CONFIG["FUZZING_INTERFACES"]:
75     TEST_DIRS += ["fuzztest"]
78 XPIDL_SOURCES += [
79     "nsIHttpsOnlyModePermission.idl",
82 XPIDL_MODULE = "dom_security"