Bug 1673965 [wpt PR 26319] - Update interfaces/resize-observer.idl, a=testonly
[gecko.git] / storage / moz.build
blob2b111f929732b9b3fc48b2057edf37188975185a
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     "StatementCache.h",
52     "Variant.h",
53     "Variant_inl.h",
55 # SEE ABOVE NOTE!
57 UNIFIED_SOURCES += [
58     "FileSystemModule.cpp",
59     "mozStorageArgValueArray.cpp",
60     "mozStorageAsyncStatement.cpp",
61     "mozStorageAsyncStatementExecution.cpp",
62     "mozStorageAsyncStatementJSHelper.cpp",
63     "mozStorageAsyncStatementParams.cpp",
64     "mozStorageBindingParamsArray.cpp",
65     "mozStorageError.cpp",
66     "mozStoragePrivateHelpers.cpp",
67     "mozStorageResultSet.cpp",
68     "mozStorageRow.cpp",
69     "mozStorageService.cpp",
70     "mozStorageSQLFunctions.cpp",
71     "mozStorageStatement.cpp",
72     "mozStorageStatementJSHelper.cpp",
73     "mozStorageStatementParams.cpp",
74     "mozStorageStatementRow.cpp",
75     "ObfuscatingVFS.cpp",
76     "SQLCollations.cpp",
77     "StorageBaseStatementInternal.cpp",
78     "TelemetryVFS.cpp",
79     "VacuumManager.cpp",
80     "Variant.cpp",
83 # These files need to be built separately because they #include variantToSQLiteT_impl.h.
84 SOURCES += [
85     "mozStorageBindingParams.cpp",
86     "mozStorageConnection.cpp",
89 include("/ipc/chromium/chromium-config.mozbuild")
91 FINAL_LIBRARY = "xul"
93 # Thunderbird needs the 2-argument version of fts3_tokenizer()
94 if CONFIG["MOZ_THUNDERBIRD"] or CONFIG["MOZ_SUITE"]:
95     DEFINES["MOZ_SQLITE_FTS3_TOKENIZER"] = 1
97 # This is the default value.  If we ever change it when compiling sqlite, we
98 # will need to change it here as well.
99 DEFINES["SQLITE_MAX_LIKE_PATTERN_LENGTH"] = 50000
101 LOCAL_INCLUDES += [
102     "/dom/base",
103     "/third_party/sqlite3/src",
106 CXXFLAGS += CONFIG["SQLITE_CFLAGS"]