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