Source code

Revision control

Other Tools

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", "Storage: IndexedDB")
9
10
MOCHITEST_MANIFESTS += [
11
'test/mochitest-intl-api.ini',
12
'test/mochitest.ini',
13
]
14
15
BROWSER_CHROME_MANIFESTS += ['test/browser.ini']
16
17
MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
18
19
XPCSHELL_TESTS_MANIFESTS += [
20
'test/unit/xpcshell-child-process.ini',
21
'test/unit/xpcshell-parent-process.ini'
22
]
23
24
TEST_DIRS += ['test/gtest']
25
26
EXPORTS.mozilla.dom += [
27
'FlippedOnce.h',
28
'IDBCursor.h',
29
'IDBDatabase.h',
30
'IDBEvents.h',
31
'IDBFactory.h',
32
'IDBFileHandle.h',
33
'IDBFileRequest.h',
34
'IDBIndex.h',
35
'IDBKeyRange.h',
36
'IDBMutableFile.h',
37
'IDBObjectStore.h',
38
'IDBRequest.h',
39
'IDBTransaction.h',
40
'IndexedDatabase.h',
41
'IndexedDatabaseManager.h',
42
]
43
44
EXPORTS.mozilla.dom.indexedDB += [
45
'ActorsParent.h',
46
'FileSnapshot.h',
47
'IDBResult.h',
48
'Key.h',
49
'KeyPath.h',
50
'PermissionRequestBase.h',
51
'SerializationHelpers.h',
52
]
53
54
UNIFIED_SOURCES += [
55
'ActorsChild.cpp',
56
'FileInfo.cpp',
57
'FileSnapshot.cpp',
58
'IDBCursor.cpp',
59
'IDBDatabase.cpp',
60
'IDBEvents.cpp',
61
'IDBFactory.cpp',
62
'IDBFileHandle.cpp',
63
'IDBFileRequest.cpp',
64
'IDBIndex.cpp',
65
'IDBKeyRange.cpp',
66
'IDBMutableFile.cpp',
67
'IDBObjectStore.cpp',
68
'IDBRequest.cpp',
69
'IDBTransaction.cpp',
70
'IndexedDatabaseManager.cpp',
71
'KeyPath.cpp',
72
'PermissionRequestBase.cpp',
73
'ReportInternalError.cpp',
74
'ScriptErrorHelper.cpp',
75
]
76
77
SOURCES += [
78
'ActorsParent.cpp', # This file is huge.
79
'Key.cpp', # We disable a warning on this file only
80
]
81
82
IPDL_SOURCES += [
83
'PBackgroundIDBCursor.ipdl',
84
'PBackgroundIDBDatabase.ipdl',
85
'PBackgroundIDBDatabaseFile.ipdl',
86
'PBackgroundIDBDatabaseRequest.ipdl',
87
'PBackgroundIDBFactory.ipdl',
88
'PBackgroundIDBFactoryRequest.ipdl',
89
'PBackgroundIDBRequest.ipdl',
90
'PBackgroundIDBSharedTypes.ipdlh',
91
'PBackgroundIDBTransaction.ipdl',
92
'PBackgroundIDBVersionChangeTransaction.ipdl',
93
'PBackgroundIndexedDBUtils.ipdl',
94
]
95
96
include('/ipc/chromium/chromium-config.mozbuild')
97
98
FINAL_LIBRARY = 'xul'
99
100
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
101
# Suppress gcc warning about a comparison being always false due to the
102
# range of the data type
103
SOURCES['Key.cpp'].flags += ['-Wno-error=type-limits']
104
CXXFLAGS += ['-Wno-error=shadow']
105
106
LOCAL_INCLUDES += [
107
'/dom/base',
108
'/dom/storage',
109
'/ipc/glue',
110
'/third_party/sqlite3/src',
111
'/xpcom/build',
112
]
113
114
XPIDL_SOURCES += [
115
'nsIIDBPermissionsRequest.idl',
116
]
117
118
XPIDL_MODULE = 'dom_indexeddb'