2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:20 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2017-03-01 16:20:25 +03:00
|
|
|
with Files("**"):
|
|
|
|
BUG_COMPONENT = ("Core", "DOM: IndexedDB")
|
|
|
|
|
2017-09-25 19:32:23 +03:00
|
|
|
MOCHITEST_MANIFESTS += [
|
|
|
|
'test/mochitest-intl-api.ini',
|
|
|
|
'test/mochitest.ini',
|
|
|
|
]
|
2014-09-27 03:21:57 +04:00
|
|
|
|
|
|
|
BROWSER_CHROME_MANIFESTS += ['test/browser.ini']
|
|
|
|
|
|
|
|
MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
|
|
|
|
|
|
|
|
XPCSHELL_TESTS_MANIFESTS += [
|
|
|
|
'test/unit/xpcshell-child-process.ini',
|
|
|
|
'test/unit/xpcshell-parent-process.ini'
|
|
|
|
]
|
|
|
|
|
2016-02-17 00:46:08 +03:00
|
|
|
EXPORTS.mozilla.dom += [
|
2013-04-16 23:24:43 +04:00
|
|
|
'IDBCursor.h',
|
|
|
|
'IDBDatabase.h',
|
|
|
|
'IDBEvents.h',
|
|
|
|
'IDBFactory.h',
|
2014-07-17 20:40:54 +04:00
|
|
|
'IDBFileHandle.h',
|
|
|
|
'IDBFileRequest.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'IDBIndex.h',
|
|
|
|
'IDBKeyRange.h',
|
2014-06-12 07:35:29 +04:00
|
|
|
'IDBMutableFile.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'IDBObjectStore.h',
|
|
|
|
'IDBRequest.h',
|
|
|
|
'IDBTransaction.h',
|
|
|
|
'IndexedDatabase.h',
|
|
|
|
'IndexedDatabaseManager.h',
|
2016-02-17 00:46:08 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.dom.indexedDB += [
|
|
|
|
'ActorsParent.h',
|
|
|
|
'FileSnapshot.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'Key.h',
|
|
|
|
'KeyPath.h',
|
2019-03-22 22:14:01 +03:00
|
|
|
'PermissionRequestBase.h',
|
2014-09-27 03:21:57 +04:00
|
|
|
'SerializationHelpers.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
2013-12-09 09:31:48 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2014-09-27 03:21:57 +04:00
|
|
|
'ActorsChild.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'FileInfo.cpp',
|
2014-07-17 20:40:54 +04:00
|
|
|
'FileSnapshot.cpp',
|
2014-09-27 03:21:57 +04:00
|
|
|
'IDBCursor.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'IDBDatabase.cpp',
|
|
|
|
'IDBEvents.cpp',
|
|
|
|
'IDBFactory.cpp',
|
2014-07-17 20:40:54 +04:00
|
|
|
'IDBFileHandle.cpp',
|
|
|
|
'IDBFileRequest.cpp',
|
2014-09-27 03:21:57 +04:00
|
|
|
'IDBIndex.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'IDBKeyRange.cpp',
|
2014-06-12 07:35:29 +04:00
|
|
|
'IDBMutableFile.cpp',
|
2014-09-27 03:21:57 +04:00
|
|
|
'IDBObjectStore.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'IDBRequest.cpp',
|
|
|
|
'IDBTransaction.cpp',
|
|
|
|
'IndexedDatabaseManager.cpp',
|
|
|
|
'KeyPath.cpp',
|
2014-09-27 03:21:57 +04:00
|
|
|
'PermissionRequestBase.cpp',
|
|
|
|
'ReportInternalError.cpp',
|
2016-03-16 10:12:17 +03:00
|
|
|
'ScriptErrorHelper.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2013-12-09 09:31:48 +04:00
|
|
|
SOURCES += [
|
2014-09-27 03:21:57 +04:00
|
|
|
'ActorsParent.cpp', # This file is huge.
|
2014-08-05 00:59:57 +04:00
|
|
|
'Key.cpp', # We disable a warning on this file only
|
2013-12-09 09:31:48 +04:00
|
|
|
]
|
|
|
|
|
2014-09-27 03:21:57 +04:00
|
|
|
IPDL_SOURCES += [
|
|
|
|
'PBackgroundIDBCursor.ipdl',
|
|
|
|
'PBackgroundIDBDatabase.ipdl',
|
|
|
|
'PBackgroundIDBDatabaseFile.ipdl',
|
2015-09-09 14:15:05 +03:00
|
|
|
'PBackgroundIDBDatabaseRequest.ipdl',
|
2014-09-27 03:21:57 +04:00
|
|
|
'PBackgroundIDBFactory.ipdl',
|
|
|
|
'PBackgroundIDBFactoryRequest.ipdl',
|
|
|
|
'PBackgroundIDBRequest.ipdl',
|
|
|
|
'PBackgroundIDBSharedTypes.ipdlh',
|
|
|
|
'PBackgroundIDBTransaction.ipdl',
|
|
|
|
'PBackgroundIDBVersionChangeTransaction.ipdl',
|
2015-11-22 12:44:33 +03:00
|
|
|
'PBackgroundIndexedDBUtils.ipdl',
|
2014-09-27 03:21:57 +04:00
|
|
|
]
|
2013-08-22 10:55:59 +04:00
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2014-07-23 03:37:51 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2014-09-27 03:21:57 +04:00
|
|
|
|
2017-12-08 00:09:15 +03:00
|
|
|
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
2014-08-05 00:59:57 +04:00
|
|
|
# Suppress gcc warning about a comparison being always false due to the
|
|
|
|
# range of the data type
|
|
|
|
SOURCES['Key.cpp'].flags += ['-Wno-error=type-limits']
|
2016-05-11 10:00:01 +03:00
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|
2014-08-05 00:59:57 +04:00
|
|
|
|
2013-11-11 12:04:11 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/dom/base',
|
2014-08-31 08:43:46 +04:00
|
|
|
'/dom/storage',
|
2014-09-27 03:21:57 +04:00
|
|
|
'/ipc/glue',
|
2019-05-29 13:16:29 +03:00
|
|
|
'/third_party/sqlite3/src',
|
2013-11-11 12:04:11 +04:00
|
|
|
'/xpcom/build',
|
|
|
|
]
|
2018-05-30 05:58:50 +03:00
|
|
|
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIIDBPermissionsRequest.idl',
|
|
|
|
]
|
|
|
|
|
|
|
|
XPIDL_MODULE = 'dom_indexeddb'
|