dom/indexedDB/moz.build
author Dave Townsend <dtownsend@oxymoronical.com>
Fri, 26 Sep 2014 08:32:55 -0700
changeset 230683 8f7dd750e75fafc6460edd7f9fe6455029419f6c
parent 229139 00f11fa87d80199e1e4a8cc3ec976dc3580f6b4d
child 230786 8892214038df24332f83c99a5203af332e8035c9
permissions -rw-r--r--
Bug 1068440: Uplift Add-on SDK to Firefox. https://github.com/mozilla/addon-sdk/compare/cc3242d1ca8c...cbf6cdd0d630

# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.

DIRS += ['ipc']
TEST_DIRS += ['test/extensions']

EXPORTS.mozilla.dom.indexedDB += [
    'Client.h',
    'DatabaseInfo.h',
    'FileInfo.h',
    'FileManager.h',
    'FileSnapshot.h',
    'IDBCursor.h',
    'IDBDatabase.h',
    'IDBEvents.h',
    'IDBFactory.h',
    'IDBFileHandle.h',
    'IDBFileRequest.h',
    'IDBIndex.h',
    'IDBKeyRange.h',
    'IDBMutableFile.h',
    'IDBObjectStore.h',
    'IDBRequest.h',
    'IDBTransaction.h',
    'IDBWrapperCache.h',
    'IndexedDatabase.h',
    'IndexedDatabaseManager.h',
    'Key.h',
    'KeyPath.h',
]

UNIFIED_SOURCES += [
    'AsyncConnectionHelper.cpp',
    'CheckPermissionsHelper.cpp',
    'Client.cpp',
    'DatabaseInfo.cpp',
    'FileInfo.cpp',
    'FileManager.cpp',
    'FileSnapshot.cpp',
    'IDBDatabase.cpp',
    'IDBEvents.cpp',
    'IDBFactory.cpp',
    'IDBFileHandle.cpp',
    'IDBFileRequest.cpp',
    'IDBKeyRange.cpp',
    'IDBMutableFile.cpp',
    'IDBRequest.cpp',
    'IDBTransaction.cpp',
    'IDBWrapperCache.cpp',
    'IndexedDatabaseManager.cpp',
    'Key.cpp',
    'KeyPath.cpp',
    'OpenDatabaseHelper.cpp',
    'TransactionThreadPool.cpp',
]

# These files cannot be built in unified mode because of name collisions
SOURCES += [
    'IDBCursor.cpp',
    'IDBIndex.cpp',
    'IDBObjectStore.cpp',
    'ReportInternalError.cpp',
]

FAIL_ON_WARNINGS = True

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
    '/caps',
    '/content/base/src',
    '/db/sqlite3/src',
    '/dom/base',
    '/dom/quota',
    '/dom/storage',
    '/xpcom/build',
]

MOCHITEST_MANIFESTS += [
    'test/mochitest.ini',
    'test/unit/mochitest.ini',
]
BROWSER_CHROME_MANIFESTS += ['test/browser.ini']
MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']