michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: XPIDL_SOURCES += [ michael@0: 'nsICacheEntry.idl', michael@0: 'nsICacheEntryDoomCallback.idl', michael@0: 'nsICacheEntryOpenCallback.idl', michael@0: 'nsICacheStorage.idl', michael@0: 'nsICacheStorageService.idl', michael@0: 'nsICacheStorageVisitor.idl', michael@0: ] michael@0: michael@0: XPIDL_MODULE = 'necko_cache2' michael@0: michael@0: EXPORTS += [ michael@0: 'CacheObserver.h', michael@0: 'CacheStorageService.h', michael@0: ] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'CacheHashUtils.cpp', michael@0: 'CacheIOThread.cpp', michael@0: 'CacheObserver.cpp', michael@0: ] michael@0: michael@0: # AppCacheStorage.cpp cannot be built in unified mode because it uses plarena.h. michael@0: # The rest of these files cannot be built in unified mode because they rely oni michael@0: # including prlog.h after nsCache.h. michael@0: SOURCES += [ michael@0: 'AppCacheStorage.cpp', michael@0: 'CacheEntry.cpp', michael@0: 'CacheFile.cpp', michael@0: 'CacheFileChunk.cpp', michael@0: 'CacheFileContextEvictor.cpp', michael@0: 'CacheFileInputStream.cpp', michael@0: 'CacheFileIOManager.cpp', michael@0: 'CacheFileMetadata.cpp', michael@0: 'CacheFileOutputStream.cpp', michael@0: 'CacheFileUtils.cpp', michael@0: 'CacheIndex.cpp', michael@0: 'CacheIndexContextIterator.cpp', michael@0: 'CacheIndexIterator.cpp', michael@0: 'CacheLog.cpp', michael@0: 'CacheStorage.cpp', michael@0: 'CacheStorageService.cpp', michael@0: 'OldWrappers.cpp', michael@0: ] michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '../base/src', michael@0: '../cache', michael@0: ] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: MSVC_ENABLE_PGO = True michael@0: michael@0: FINAL_LIBRARY = 'necko'