Bug 939611 - Build storage/src in unified mode; r=asuth

This commit is contained in:
Ehsan Akhgari 2013-11-18 16:26:44 -05:00
parent b95a0cf587
commit 5a34c818a7
2 changed files with 14 additions and 6 deletions

View File

@ -11,16 +11,14 @@ EXPORTS.mozilla.storage += [
'Variant_inl.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'FileSystemModule.cpp',
'mozStorageArgValueArray.cpp',
'mozStorageAsyncStatement.cpp',
'mozStorageAsyncStatementExecution.cpp',
'mozStorageAsyncStatementJSHelper.cpp',
'mozStorageAsyncStatementParams.cpp',
'mozStorageBindingParams.cpp',
'mozStorageBindingParamsArray.cpp',
'mozStorageConnection.cpp',
'mozStorageError.cpp',
'mozStoragePrivateHelpers.cpp',
'mozStorageResultSet.cpp',
@ -37,6 +35,12 @@ SOURCES += [
'VacuumManager.cpp',
]
# These files need to be built separately because they #include variantToSQLiteT_impl.h.
SOURCES += [
'mozStorageBindingParams.cpp',
'mozStorageConnection.cpp',
]
LIBRARY_NAME = 'storage_s'
LIBXUL_LIBRARY = True

View File

@ -35,6 +35,13 @@
#include "nsIPromptService.h"
#include "nsIMemoryReporter.h"
#ifdef MOZ_STORAGE_MEMORY
# include "mozmemory.h"
# ifdef MOZ_DMD
# include "DMD.h"
# endif
#endif
////////////////////////////////////////////////////////////////////////////////
//// Defines
@ -349,7 +356,6 @@ Service::shutdown()
sqlite3_vfs *ConstructTelemetryVFS();
#ifdef MOZ_STORAGE_MEMORY
# include "mozmemory.h"
namespace {
@ -373,8 +379,6 @@ namespace {
#ifdef MOZ_DMD
#include "DMD.h"
// sqlite does its own memory accounting, and we use its numbers in our memory
// reporters. But we don't want sqlite's heap blocks to show up in DMD's
// output as unreported, so we mark them as reported when they're allocated and