Bug 1635304 [wpt PR 23392] - Remove erroneous named properties object test, a=testonly
[gecko.git] / storage / moz.build
blob7dbaae925331c52639f680423bbe90c01bf863b0
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     'mozIStorageAggregateFunction.idl',
16     'mozIStorageAsyncConnection.idl',
17     'mozIStorageAsyncStatement.idl',
18     'mozIStorageBaseStatement.idl',
19     'mozIStorageBindingParams.idl',
20     'mozIStorageBindingParamsArray.idl',
21     'mozIStorageCompletionCallback.idl',
22     'mozIStorageConnection.idl',
23     'mozIStorageError.idl',
24     'mozIStorageFunction.idl',
25     'mozIStoragePendingStatement.idl',
26     'mozIStorageProgressHandler.idl',
27     'mozIStorageResultSet.idl',
28     'mozIStorageRow.idl',
29     'mozIStorageService.idl',
30     'mozIStorageStatement.idl',
31     'mozIStorageStatementCallback.idl',
32     'mozIStorageVacuumParticipant.idl',
33     'mozIStorageValueArray.idl',
36 XPIDL_MODULE = 'storage'
38 EXPORTS += [
39     'mozStorageHelper.h',
42 EXPORTS.mozilla += [
43     'storage.h',
46 # NOTE When adding something to this list, you probably need to add it to the
47 #      storage.h file too.
48 EXPORTS.mozilla.storage += [
49     'mozStorageAsyncStatementParams.h',
50     'mozStorageStatementParams.h',
51     'mozStorageStatementRow.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     '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']