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: TEST_TOOL_DIRS += ['tests'] michael@0: michael@0: XPIDL_SOURCES += [ michael@0: 'nsIUrlClassifierDBService.idl', michael@0: 'nsIUrlClassifierHashCompleter.idl', michael@0: 'nsIUrlClassifierPrefixSet.idl', michael@0: 'nsIUrlClassifierStreamUpdater.idl', michael@0: 'nsIUrlClassifierUtils.idl', michael@0: 'nsIUrlListManager.idl', michael@0: ] michael@0: michael@0: XPIDL_MODULE = 'url-classifier' michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'ChunkSet.cpp', michael@0: 'Classifier.cpp', michael@0: 'LookupCache.cpp', michael@0: 'nsCheckSummedOutputStream.cpp', michael@0: 'nsUrlClassifierDBService.cpp', michael@0: 'nsUrlClassifierProxies.cpp', michael@0: 'nsUrlClassifierUtils.cpp', michael@0: 'ProtocolParser.cpp', michael@0: ] michael@0: michael@0: # define conflicting LOG() macros michael@0: SOURCES += [ michael@0: 'nsUrlClassifierPrefixSet.cpp', michael@0: 'nsUrlClassifierStreamUpdater.cpp', michael@0: ] michael@0: michael@0: # contains variables that conflict with LookupCache.cpp michael@0: SOURCES += [ michael@0: 'HashStore.cpp', michael@0: ] michael@0: michael@0: EXTRA_COMPONENTS += [ michael@0: 'nsURLClassifier.manifest', michael@0: 'nsUrlClassifierHashCompleter.js', michael@0: ] michael@0: michael@0: # Same as JS components that are run through the pre-processor. michael@0: EXTRA_PP_COMPONENTS += [ michael@0: 'nsUrlClassifierLib.js', michael@0: 'nsUrlClassifierListManager.js', michael@0: ] michael@0: michael@0: EXTRA_JS_MODULES += [ michael@0: 'SafeBrowsing.jsm', michael@0: ] michael@0: michael@0: EXPORTS += [ michael@0: 'Entries.h', michael@0: 'LookupCache.h', michael@0: 'nsUrlClassifierPrefixSet.h', michael@0: ] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: MSVC_ENABLE_PGO = True michael@0: michael@0: FINAL_LIBRARY = 'toolkitcomps' michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '../build', michael@0: '/ipc/chromium/src', michael@0: ] michael@0: