moz.build (2241B)
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", "Networking: Cookies") 9 10 # export required interfaces, even if --disable-cookies has been given 11 XPIDL_SOURCES += [ 12 "nsICookie.idl", 13 "nsICookieJarSettings.idl", 14 "nsICookieManager.idl", 15 "nsICookieNotification.idl", 16 "nsICookiePermission.idl", 17 "nsICookieService.idl", 18 "nsICookieValidation.idl", 19 "nsIThirdPartyCookieBlockingExceptionListService.idl", 20 ] 21 22 XPIDL_MODULE = "necko_cookie" 23 24 EXPORTS.mozilla.net = [ 25 "Cookie.h", 26 "CookieCommons.h", 27 "CookieJarSettings.h", 28 "CookieKey.h", 29 "CookieNotification.h", 30 "CookieParser.h", 31 "CookiePersistentStorage.h", 32 "CookiePrefixes.h", 33 "CookiePrivateStorage.h", 34 "CookieService.h", 35 "CookieServiceChild.h", 36 "CookieServiceParent.h", 37 "CookieStorage.h", 38 "CookieValidation.h", 39 "ThirdPartyCookieBlockingExceptions.h", 40 ] 41 42 UNIFIED_SOURCES += [ 43 "Cookie.cpp", 44 "CookieCommons.cpp", 45 "CookieJarSettings.cpp", 46 "CookieLogging.cpp", 47 "CookieNotification.cpp", 48 "CookieParser.cpp", 49 "CookiePersistentStorage.cpp", 50 "CookiePrefixes.cpp", 51 "CookiePrivateStorage.cpp", 52 "CookieService.cpp", 53 "CookieServiceChild.cpp", 54 "CookieServiceParent.cpp", 55 "CookieStorage.cpp", 56 "CookieValidation.cpp", 57 "ThirdPartyCookieBlockingExceptions.cpp", 58 ] 59 60 XPCSHELL_TESTS_MANIFESTS += [ 61 "test/unit/xpcshell.toml", 62 ] 63 64 BROWSER_CHROME_MANIFESTS += [ 65 "test/browser/browser.toml", 66 ] 67 68 MOCHITEST_MANIFESTS += [ 69 "test/mochitest/mochitest.toml", 70 ] 71 72 IPDL_SOURCES = [ 73 "PCookieService.ipdl", 74 ] 75 76 LOCAL_INCLUDES += [ 77 "/dom/base", 78 "/intl/uconv", 79 "/netwerk/base", 80 "/netwerk/protocol/http", 81 ] 82 83 EXTRA_JS_MODULES += [ 84 "ThirdPartyCookieBlockingExceptionListService.sys.mjs", 85 ] 86 87 TESTING_JS_MODULES += [ 88 "CookieXPCShellUtils.sys.mjs", 89 ] 90 91 XPCOM_MANIFESTS += [ 92 "components.conf", 93 ] 94 95 include("/ipc/chromium/chromium-config.mozbuild") 96 97 FINAL_LIBRARY = "xul"