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
7with Files("**"):
8    BUG_COMPONENT = ("Core", "Networking: Cookies")
9
10# export required interfaces, even if --disable-cookies has been given
11XPIDL_SOURCES += [
12    "nsICookie.idl",
13    "nsICookieJarSettings.idl",
14    "nsICookieManager.idl",
15    "nsICookiePermission.idl",
16    "nsICookieService.idl",
17]
18
19XPIDL_MODULE = "necko_cookie"
20
21
22EXPORTS.mozilla.net = [
23    "CookieJarSettings.h",
24    "CookieKey.h",
25    "CookiePersistentStorage.h",
26    "CookiePrivateStorage.h",
27    "CookieService.h",
28    "CookieServiceChild.h",
29    "CookieServiceParent.h",
30    "CookieStorage.h",
31]
32UNIFIED_SOURCES += [
33    "Cookie.cpp",
34    "CookieCommons.cpp",
35    "CookieJarSettings.cpp",
36    "CookieLogging.cpp",
37    "CookiePersistentStorage.cpp",
38    "CookiePrivateStorage.cpp",
39    "CookieService.cpp",
40    "CookieServiceChild.cpp",
41    "CookieServiceParent.cpp",
42    "CookieStorage.cpp",
43]
44XPCSHELL_TESTS_MANIFESTS += [
45    "test/unit/xpcshell.ini",
46]
47
48BROWSER_CHROME_MANIFESTS += [
49    "test/browser/browser.ini",
50]
51
52MOCHITEST_MANIFESTS += [
53    "test/mochitest/mochitest.ini",
54]
55
56IPDL_SOURCES = [
57    "PCookieService.ipdl",
58]
59
60LOCAL_INCLUDES += [
61    "/dom/base",
62    "/intl/uconv",
63    "/netwerk/base",
64    "/netwerk/protocol/http",
65]
66
67TESTING_JS_MODULES += [
68    "CookieXPCShellUtils.jsm",
69]
70
71include("/ipc/chromium/chromium-config.mozbuild")
72
73FINAL_LIBRARY = "xul"
74