Source code

Revision control

Other Tools

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/.
6
7
with Files('**'):
8
BUG_COMPONENT = ('Core', 'Networking: Cache')
9
10
XPIDL_SOURCES += [
11
'nsICacheEntry.idl',
12
'nsICacheEntryDoomCallback.idl',
13
'nsICacheEntryOpenCallback.idl',
14
'nsICacheStorage.idl',
15
'nsICacheStorageService.idl',
16
'nsICacheStorageVisitor.idl',
17
'nsICacheTesting.idl',
18
]
19
20
XPIDL_MODULE = 'necko_cache2'
21
22
EXPORTS += [
23
'CacheObserver.h',
24
'CacheStorageService.h',
25
]
26
27
SOURCES += [
28
'AppCacheStorage.cpp',
29
'CacheStorage.cpp',
30
]
31
32
33
UNIFIED_SOURCES += [
34
'CacheEntry.cpp',
35
'CacheFile.cpp',
36
'CacheFileChunk.cpp',
37
'CacheFileContextEvictor.cpp',
38
'CacheFileInputStream.cpp',
39
'CacheFileIOManager.cpp',
40
'CacheFileMetadata.cpp',
41
'CacheFileOutputStream.cpp',
42
'CacheFileUtils.cpp',
43
'CacheHashUtils.cpp',
44
'CacheIndex.cpp',
45
'CacheIndexContextIterator.cpp',
46
'CacheIndexIterator.cpp',
47
'CacheIOThread.cpp',
48
'CacheLog.cpp',
49
'CacheObserver.cpp',
50
'CacheStorageService.cpp',
51
'OldWrappers.cpp',
52
]
53
54
LOCAL_INCLUDES += [
55
'/netwerk/base',
56
'/netwerk/cache',
57
]
58
59
FINAL_LIBRARY = 'xul'
60
61
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
62
CXXFLAGS += ['-Wno-error=shadow']