1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/storage/src/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,66 @@ 1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- 1.5 +# vim: set filetype=python: 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +EXPORTS.mozilla.storage += [ 1.11 + 'Variant.h', 1.12 + 'Variant_inl.h', 1.13 +] 1.14 + 1.15 +UNIFIED_SOURCES += [ 1.16 + 'FileSystemModule.cpp', 1.17 + 'mozStorageArgValueArray.cpp', 1.18 + 'mozStorageAsyncStatement.cpp', 1.19 + 'mozStorageAsyncStatementExecution.cpp', 1.20 + 'mozStorageAsyncStatementJSHelper.cpp', 1.21 + 'mozStorageAsyncStatementParams.cpp', 1.22 + 'mozStorageBindingParamsArray.cpp', 1.23 + 'mozStorageError.cpp', 1.24 + 'mozStoragePrivateHelpers.cpp', 1.25 + 'mozStorageResultSet.cpp', 1.26 + 'mozStorageRow.cpp', 1.27 + 'mozStorageService.cpp', 1.28 + 'mozStorageSQLFunctions.cpp', 1.29 + 'mozStorageStatement.cpp', 1.30 + 'mozStorageStatementJSHelper.cpp', 1.31 + 'mozStorageStatementParams.cpp', 1.32 + 'mozStorageStatementRow.cpp', 1.33 + 'SQLCollations.cpp', 1.34 + 'StorageBaseStatementInternal.cpp', 1.35 + 'TelemetryVFS.cpp', 1.36 + 'VacuumManager.cpp', 1.37 +] 1.38 + 1.39 +# These files need to be built separately because they #include variantToSQLiteT_impl.h. 1.40 +SOURCES += [ 1.41 + 'mozStorageBindingParams.cpp', 1.42 + 'mozStorageConnection.cpp', 1.43 +] 1.44 + 1.45 +FINAL_LIBRARY = 'storagecomps' 1.46 + 1.47 +# Don't use the jemalloc allocator on Android, because we can't guarantee 1.48 +# that Gecko will configure sqlite before it is first used (bug 730495). 1.49 +# 1.50 +# Don't use the jemalloc allocator when using system sqlite. Linked in libraries 1.51 +# (such as NSS) might trigger an initialization of sqlite and allocation 1.52 +# of memory using the default allocator, prior to the storage service 1.53 +# registering its allocator, causing memory management failures (bug 938730). 1.54 +# 1.55 +# Note: On Windows our sqlite build assumes we use jemalloc. If you disable 1.56 +# MOZ_STORAGE_MEMORY on Windows, you will also need to change the "ifdef 1.57 +# MOZ_MEMORY" options in db/sqlite3/src/Makefile.in. 1.58 +if CONFIG['MOZ_MEMORY'] and not CONFIG['MOZ_NATIVE_SQLITE']: 1.59 + if CONFIG['OS_TARGET'] != 'Android': 1.60 + DEFINES['MOZ_STORAGE_MEMORY'] = True 1.61 + 1.62 +# This is the default value. If we ever change it when compiling sqlite, we 1.63 +# will need to change it here as well. 1.64 +DEFINES['SQLITE_MAX_LIKE_PATTERN_LENGTH'] = 50000 1.65 + 1.66 +LOCAL_INCLUDES += [ 1.67 + '/db/sqlite3/src', 1.68 + '/dom/base', 1.69 +]