Bug 1833854 - Part 4: Move all code that deals with maintaining invariants into a...
[gecko.git] / dom / indexedDB / moz.build
blobca62d61ada8b7be7b1609eaabf453bd8cb6a3016
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/.
7 with Files("**"):
8     BUG_COMPONENT = ("Core", "Storage: IndexedDB")
10 MOCHITEST_MANIFESTS += [
11     "test/mochitest-intl-api.ini",
12     "test/mochitest-private.ini",
13     "test/mochitest-regular.ini",
16 BROWSER_CHROME_MANIFESTS += ["test/browser.ini"]
18 MOCHITEST_CHROME_MANIFESTS += ["test/chrome.ini"]
20 XPCSHELL_TESTS_MANIFESTS += [
21     "test/unit/xpcshell-child-process.ini",
22     "test/unit/xpcshell-parent-process.ini",
25 TEST_DIRS += ["test/gtest"]
27 EXPORTS.mozilla.dom += [
28     "DatabaseFileInfoFwd.h",
29     "FlippedOnce.h",
30     "IDBCursor.h",
31     "IDBCursorType.h",
32     "IDBDatabase.h",
33     "IDBEvents.h",
34     "IDBFactory.h",
35     "IDBIndex.h",
36     "IDBKeyRange.h",
37     "IDBObjectStore.h",
38     "IDBRequest.h",
39     "IDBTransaction.h",
40     "IndexedDatabase.h",
41     "IndexedDatabaseManager.h",
42     "SafeRefPtr.h",
45 EXPORTS.mozilla.dom.indexedDB += [
46     "ActorsChild.h",
47     "ActorsParent.h",
48     "IDBResult.h",
49     "Key.h",
50     "KeyPath.h",
51     "SerializationHelpers.h",
52     "ThreadLocal.h",
55 UNIFIED_SOURCES += [
56     "ActorsChild.cpp",
57     "ActorsParentCommon.cpp",
58     "DatabaseFileInfo.cpp",
59     "DBSchema.cpp",
60     "IDBCursor.cpp",
61     "IDBCursorType.cpp",
62     "IDBDatabase.cpp",
63     "IDBEvents.cpp",
64     "IDBFactory.cpp",
65     "IDBIndex.cpp",
66     "IDBKeyRange.cpp",
67     "IDBObjectStore.cpp",
68     "IDBRequest.cpp",
69     "IDBTransaction.cpp",
70     "IndexedDatabase.cpp",
71     "IndexedDatabaseManager.cpp",
72     "IndexedDBCipherKeyManager.cpp",
73     "IndexedDBCommon.cpp",
74     "KeyPath.cpp",
75     "ProfilerHelpers.cpp",
76     "ReportInternalError.cpp",
77     "SchemaUpgrades.cpp",
78     "ScriptErrorHelper.cpp",
81 SOURCES += [
82     "ActorsParent.cpp",  # This file is huge.
83     "Key.cpp",  # We disable a warning on this file only
86 IPDL_SOURCES += [
87     "PBackgroundIDBCursor.ipdl",
88     "PBackgroundIDBDatabase.ipdl",
89     "PBackgroundIDBDatabaseFile.ipdl",
90     "PBackgroundIDBFactory.ipdl",
91     "PBackgroundIDBFactoryRequest.ipdl",
92     "PBackgroundIDBRequest.ipdl",
93     "PBackgroundIDBSharedTypes.ipdlh",
94     "PBackgroundIDBTransaction.ipdl",
95     "PBackgroundIDBVersionChangeTransaction.ipdl",
96     "PBackgroundIndexedDBUtils.ipdl",
99 include("/ipc/chromium/chromium-config.mozbuild")
101 FINAL_LIBRARY = "xul"
103 if CONFIG["CC_TYPE"] in ("clang", "gcc"):
104     # Suppress gcc warning about a comparison being always false due to the
105     # range of the data type
106     SOURCES["Key.cpp"].flags += ["-Wno-error=type-limits"]
108 LOCAL_INCLUDES += [
109     "/dom/base",
110     "/dom/storage",
111     "/ipc/glue",
112     "/third_party/sqlite3/src",
113     "/xpcom/build",
116 XPIDL_SOURCES += [
117     "nsIIDBPermissionsRequest.idl",
120 XPIDL_MODULE = "dom_indexeddb"