moz.build (1583B)
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 "nsICachePurgeLock.idl", 15 "nsICacheStorage.idl", 16 "nsICacheStorageService.idl", 17 "nsICacheStorageVisitor.idl", 18 "nsICacheTesting.idl", 19 ] 20 21 XPIDL_MODULE = "necko_cache2" 22 23 EXPORTS += [ 24 "CacheObserver.h", 25 "CacheStorageService.h", 26 ] 27 28 EXPORTS.mozilla.net += [ 29 "CachePurgeLock.h", 30 "Dictionary.h", 31 ] 32 33 SOURCES += [ 34 "CacheStorage.cpp", 35 ] 36 37 38 UNIFIED_SOURCES += [ 39 "CacheEntry.cpp", 40 "CacheFile.cpp", 41 "CacheFileChunk.cpp", 42 "CacheFileContextEvictor.cpp", 43 "CacheFileInputStream.cpp", 44 "CacheFileIOManager.cpp", 45 "CacheFileMetadata.cpp", 46 "CacheFileOutputStream.cpp", 47 "CacheFileUtils.cpp", 48 "CacheHashUtils.cpp", 49 "CacheIndex.cpp", 50 "CacheIndexContextIterator.cpp", 51 "CacheIndexIterator.cpp", 52 "CacheIOThread.cpp", 53 "CacheLog.cpp", 54 "CacheObserver.cpp", 55 "CacheStorageService.cpp", 56 "Dictionary.cpp", 57 ] 58 59 if CONFIG["MOZ_WIDGET_TOOLKIT"] != "android": 60 UNIFIED_SOURCES += [ 61 "CachePurgeLock.cpp", 62 ] 63 64 LOCAL_INCLUDES += [ 65 "/netwerk/base", 66 ] 67 68 include("/ipc/chromium/chromium-config.mozbuild") 69 70 FINAL_LIBRARY = "xul"