2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-09-20 13:11:25 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2017-02-02 14:33:47 +03:00
|
|
|
with Files('**'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Networking: Cache')
|
|
|
|
|
2013-09-20 13:11:25 +04:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsICacheEntry.idl',
|
|
|
|
'nsICacheEntryDoomCallback.idl',
|
|
|
|
'nsICacheEntryOpenCallback.idl',
|
|
|
|
'nsICacheStorage.idl',
|
|
|
|
'nsICacheStorageService.idl',
|
|
|
|
'nsICacheStorageVisitor.idl',
|
2015-10-22 13:11:00 +03:00
|
|
|
'nsICacheTesting.idl',
|
2013-09-20 13:11:25 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
XPIDL_MODULE = 'necko_cache2'
|
|
|
|
|
|
|
|
EXPORTS += [
|
|
|
|
'CacheObserver.h',
|
|
|
|
'CacheStorageService.h',
|
|
|
|
]
|
|
|
|
|
2017-06-01 23:31:37 +03:00
|
|
|
SOURCES += [
|
2017-03-31 21:00:10 +03:00
|
|
|
'AppCacheStorage.cpp',
|
2017-06-01 23:31:37 +03:00
|
|
|
'CacheStorage.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
UNIFIED_SOURCES += [
|
2013-09-20 13:11:25 +04:00
|
|
|
'CacheEntry.cpp',
|
|
|
|
'CacheFile.cpp',
|
|
|
|
'CacheFileChunk.cpp',
|
2014-04-10 14:47:20 +04:00
|
|
|
'CacheFileContextEvictor.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'CacheFileInputStream.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'CacheFileIOManager.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'CacheFileMetadata.cpp',
|
2013-09-20 13:11:25 +04:00
|
|
|
'CacheFileOutputStream.cpp',
|
2014-02-18 21:26:48 +04:00
|
|
|
'CacheFileUtils.cpp',
|
2014-12-16 20:52:47 +03:00
|
|
|
'CacheHashUtils.cpp',
|
2014-02-18 19:05:07 +04:00
|
|
|
'CacheIndex.cpp',
|
2014-04-10 14:47:20 +04:00
|
|
|
'CacheIndexContextIterator.cpp',
|
|
|
|
'CacheIndexIterator.cpp',
|
2014-12-16 20:52:47 +03:00
|
|
|
'CacheIOThread.cpp',
|
2013-09-20 13:11:25 +04:00
|
|
|
'CacheLog.cpp',
|
2014-12-16 20:52:47 +03:00
|
|
|
'CacheObserver.cpp',
|
2013-09-20 13:11:25 +04:00
|
|
|
'CacheStorageService.cpp',
|
|
|
|
'OldWrappers.cpp',
|
|
|
|
]
|
|
|
|
|
2013-10-03 11:10:00 +04:00
|
|
|
LOCAL_INCLUDES += [
|
2015-01-16 13:11:06 +03:00
|
|
|
'/netwerk/base',
|
|
|
|
'/netwerk/cache',
|
2013-10-03 11:10:00 +04:00
|
|
|
]
|
|
|
|
|
2014-07-23 03:37:51 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2016-05-11 10:00:01 +03:00
|
|
|
|
2017-12-08 00:09:15 +03:00
|
|
|
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
2016-05-11 10:00:01 +03:00
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|