moz.build (2488B)
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 = ("Toolkit", "Safe Browsing") 9 10 XPIDL_SOURCES += [ 11 "nsIChannelClassifierService.idl", 12 "nsIURIClassifier.idl", 13 "nsIUrlClassifierExceptionList.idl", 14 "nsIUrlClassifierExceptionListEntry.idl", 15 "nsIUrlClassifierExceptionListService.idl", 16 "nsIUrlClassifierFeature.idl", 17 ] 18 19 XPIDL_MODULE = "url-classifier" 20 21 EXTRA_JS_MODULES += [ 22 "UrlClassifierExceptionListService.sys.mjs", 23 ] 24 25 XPCOM_MANIFESTS += [ 26 "components.conf", 27 ] 28 29 DEFINES["GOOGLE_PROTOBUF_NO_RTTI"] = True 30 DEFINES["GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER"] = True 31 32 UNIFIED_SOURCES += [ 33 "AsyncUrlChannelClassifier.cpp", 34 "ChannelClassifierService.cpp", 35 "nsChannelClassifier.cpp", 36 "UrlClassifierCommon.cpp", 37 "UrlClassifierExceptionList.cpp", 38 "UrlClassifierExceptionListEntry.cpp", 39 "UrlClassifierFeatureAntiFraudAnnotation.cpp", 40 "UrlClassifierFeatureBase.cpp", 41 "UrlClassifierFeatureConsentManagerAnnotation.cpp", 42 "UrlClassifierFeatureCryptominingAnnotation.cpp", 43 "UrlClassifierFeatureCryptominingProtection.cpp", 44 "UrlClassifierFeatureCustomTables.cpp", 45 "UrlClassifierFeatureEmailTrackingDataCollection.cpp", 46 "UrlClassifierFeatureEmailTrackingProtection.cpp", 47 "UrlClassifierFeatureFactory.cpp", 48 "UrlClassifierFeatureFingerprintingAnnotation.cpp", 49 "UrlClassifierFeatureFingerprintingProtection.cpp", 50 "UrlClassifierFeatureHarmfulAddonProtection.cpp", 51 "UrlClassifierFeaturePhishingProtection.cpp", 52 "UrlClassifierFeatureResult.cpp", 53 "UrlClassifierFeatureSocialTrackingAnnotation.cpp", 54 "UrlClassifierFeatureSocialTrackingProtection.cpp", 55 "UrlClassifierFeatureTrackingAnnotation.cpp", 56 "UrlClassifierFeatureTrackingProtection.cpp", 57 ] 58 59 EXPORTS.mozilla.net += [ 60 "AsyncUrlChannelClassifier.h", 61 "ChannelClassifierService.h", 62 "UrlClassifierCommon.h", 63 "UrlClassifierExceptionList.h", 64 "UrlClassifierExceptionListEntry.h", 65 "UrlClassifierFeatureFactory.h", 66 "UrlClassifierFeatureResult.h", 67 ] 68 69 LOCAL_INCLUDES += [ 70 "/netwerk/base", 71 "/netwerk/protocol/http", 72 "/toolkit/components/url-classifier", 73 ] 74 75 FINAL_LIBRARY = "xul" 76 77 include("/ipc/chromium/chromium-config.mozbuild")