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# moved from embedding/components/webbrowserpersist Jan 13, 2017
8with Files("**"):
9    BUG_COMPONENT = ("Core", "DOM: Core & HTML")
10
11XPIDL_SOURCES += [
12    "nsIWebBrowserPersist.idl",
13    "nsIWebBrowserPersistDocument.idl",
14]
15
16XPIDL_MODULE = "webbrowserpersist"
17
18IPDL_SOURCES += [
19    "PWebBrowserPersistDocument.ipdl",
20    "PWebBrowserPersistResources.ipdl",
21    "PWebBrowserPersistSerialize.ipdl",
22]
23
24UNIFIED_SOURCES += [
25    "nsWebBrowserPersist.cpp",
26    "WebBrowserPersistDocumentChild.cpp",
27    "WebBrowserPersistDocumentParent.cpp",
28    "WebBrowserPersistLocalDocument.cpp",
29    "WebBrowserPersistRemoteDocument.cpp",
30    "WebBrowserPersistResourcesChild.cpp",
31    "WebBrowserPersistResourcesParent.cpp",
32    "WebBrowserPersistSerializeChild.cpp",
33    "WebBrowserPersistSerializeParent.cpp",
34]
35
36EXPORTS.mozilla += [
37    "WebBrowserPersistDocumentChild.h",
38    "WebBrowserPersistDocumentParent.h",
39    "WebBrowserPersistLocalDocument.h",
40]
41
42include("/ipc/chromium/chromium-config.mozbuild")
43
44FINAL_LIBRARY = "xul"
45LOCAL_INCLUDES += [
46    "/docshell/shistory",
47    "/dom/base",
48    "/dom/html",
49]
50