Bug 1782289 [wpt PR 35277] - Move mojojs support out of fedcm-helper.js, a=testonly
[gecko.git] / storage / moz.build
blob3bc8442035774f63dae449d9afd124c1420864bb
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 = ("Toolkit", "Storage")
10 DIRS += ["build"]
12 TEST_DIRS += ["test"]
14 XPIDL_SOURCES += [
15     "mozIStorageAsyncConnection.idl",
16     "mozIStorageAsyncStatement.idl",
17     "mozIStorageBaseStatement.idl",
18     "mozIStorageBindingParams.idl",
19     "mozIStorageBindingParamsArray.idl",
20     "mozIStorageCompletionCallback.idl",
21     "mozIStorageConnection.idl",
22     "mozIStorageError.idl",
23     "mozIStorageFunction.idl",
24     "mozIStoragePendingStatement.idl",
25     "mozIStorageProgressHandler.idl",
26     "mozIStorageResultSet.idl",
27     "mozIStorageRow.idl",
28     "mozIStorageService.idl",
29     "mozIStorageStatement.idl",
30     "mozIStorageStatementCallback.idl",
31     "mozIStorageVacuumParticipant.idl",
32     "mozIStorageValueArray.idl",
35 XPIDL_MODULE = "storage"
37 EXPORTS += [
38     "mozStorageHelper.h",
41 EXPORTS.mozilla += [
42     "storage.h",
45 # NOTE When adding something to this list, you probably need to add it to the
46 #      storage.h file too.
47 EXPORTS.mozilla.storage += [
48     "mozStorageAsyncStatementParams.h",
49     "mozStorageStatementParams.h",
50     "mozStorageStatementRow.h",
51     "SQLiteMutex.h",
52     "StatementCache.h",
53     "Variant.h",
54     "Variant_inl.h",
56 # SEE ABOVE NOTE!
58 UNIFIED_SOURCES += [
59     "FileSystemModule.cpp",
60     "mozStorageArgValueArray.cpp",
61     "mozStorageAsyncStatement.cpp",
62     "mozStorageAsyncStatementExecution.cpp",
63     "mozStorageAsyncStatementJSHelper.cpp",
64     "mozStorageAsyncStatementParams.cpp",
65     "mozStorageBindingParamsArray.cpp",
66     "mozStorageError.cpp",
67     "mozStoragePrivateHelpers.cpp",
68     "mozStorageResultSet.cpp",
69     "mozStorageRow.cpp",
70     "mozStorageService.cpp",
71     "mozStorageSQLFunctions.cpp",
72     "mozStorageStatement.cpp",
73     "mozStorageStatementJSHelper.cpp",
74     "mozStorageStatementParams.cpp",
75     "mozStorageStatementRow.cpp",
76     "ObfuscatingVFS.cpp",
77     "SQLCollations.cpp",
78     "StorageBaseStatementInternal.cpp",
79     "TelemetryVFS.cpp",
80     "VacuumManager.cpp",
81     "Variant.cpp",
84 # These files need to be built separately because they #include variantToSQLiteT_impl.h.
85 SOURCES += [
86     "mozStorageBindingParams.cpp",
87     "mozStorageConnection.cpp",
90 include("/ipc/chromium/chromium-config.mozbuild")
92 FINAL_LIBRARY = "xul"
94 # Thunderbird needs the 2-argument version of fts3_tokenizer()
95 if CONFIG["MOZ_THUNDERBIRD"] or CONFIG["MOZ_SUITE"]:
96     DEFINES["MOZ_SQLITE_FTS3_TOKENIZER"] = 1
98 # This is the default value.  If we ever change it when compiling sqlite, we
99 # will need to change it here as well.
100 DEFINES["SQLITE_MAX_LIKE_PATTERN_LENGTH"] = 50000
102 LOCAL_INCLUDES += [
103     "/dom/base",
104     "/third_party/sqlite3/src",
107 CXXFLAGS += CONFIG["SQLITE_CFLAGS"]
109 REQUIRES_UNIFIED_BUILD = True