moz.build (2263B)
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: Security") 9 10 TEST_DIRS += ["test"] 11 12 DIRS += ["featurepolicy", "sanitizer", "trusted-types"] 13 14 EXPORTS.mozilla.dom += [ 15 "CSPEvalChecker.h", 16 "CSPViolationData.h", 17 "DomSecurityIPCUtils.h", 18 "DOMSecurityMonitor.h", 19 "FramingChecker.h", 20 "IntegrityPolicy.h", 21 "IntegrityPolicyService.h", 22 "nsContentSecurityManager.h", 23 "nsContentSecurityUtils.h", 24 "nsCSPContext.h", 25 "nsCSPParser.h", 26 "nsCSPService.h", 27 "nsCSPUtils.h", 28 "nsHTTPSOnlyStreamListener.h", 29 "nsHTTPSOnlyUtils.h", 30 "nsMixedContentBlocker.h", 31 "PolicyContainer.h", 32 "PolicyTokenizer.h", 33 "ReferrerInfo.h", 34 "SecFetch.h", 35 "SRICheck.h", 36 "SRILogHelper.h", 37 "SRIMetadata.h", 38 ] 39 40 EXPORTS += [ 41 "nsContentSecurityManager.h", 42 "nsContentSecurityUtils.h", 43 "nsMixedContentBlocker.h", 44 "ReferrerInfo.h", 45 ] 46 47 UNIFIED_SOURCES += [ 48 "CSPEvalChecker.cpp", 49 "CSPViolationData.cpp", 50 "DOMSecurityMonitor.cpp", 51 "FramingChecker.cpp", 52 "IntegrityPolicy.cpp", 53 "IntegrityPolicyService.cpp", 54 "nsContentSecurityManager.cpp", 55 "nsContentSecurityUtils.cpp", 56 "nsCSPContext.cpp", 57 "nsCSPParser.cpp", 58 "nsCSPService.cpp", 59 "nsCSPUtils.cpp", 60 "nsHTTPSOnlyStreamListener.cpp", 61 "nsHTTPSOnlyUtils.cpp", 62 "nsMixedContentBlocker.cpp", 63 "PolicyContainer.cpp", 64 "PolicyTokenizer.cpp", 65 "ReferrerInfo.cpp", 66 "SecFetch.cpp", 67 "SRICheck.cpp", 68 "SRIMetadata.cpp", 69 ] 70 71 include("/ipc/chromium/chromium-config.mozbuild") 72 73 FINAL_LIBRARY = "xul" 74 LOCAL_INCLUDES += [ 75 "/caps", 76 "/docshell/base", # for nsDocShell.h 77 "/netwerk/base", 78 "/netwerk/protocol/data", # for nsDataHandler.h 79 "/netwerk/protocol/http", # for HttpBaseChannel.h 80 ] 81 82 include("/tools/fuzzing/libfuzzer-config.mozbuild") 83 84 if CONFIG["FUZZING_INTERFACES"]: 85 TEST_DIRS += ["fuzztest"] 86 87 88 XPIDL_SOURCES += [ 89 "nsIHttpsOnlyModePermission.idl", 90 ] 91 92 XPIDL_MODULE = "dom_security"