Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
michael@0 | 2 | # vim: set filetype=python: |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | |
michael@0 | 7 | TEST_TOOL_DIRS += ['tests'] |
michael@0 | 8 | |
michael@0 | 9 | XPIDL_SOURCES += [ |
michael@0 | 10 | 'nsIUrlClassifierDBService.idl', |
michael@0 | 11 | 'nsIUrlClassifierHashCompleter.idl', |
michael@0 | 12 | 'nsIUrlClassifierPrefixSet.idl', |
michael@0 | 13 | 'nsIUrlClassifierStreamUpdater.idl', |
michael@0 | 14 | 'nsIUrlClassifierUtils.idl', |
michael@0 | 15 | 'nsIUrlListManager.idl', |
michael@0 | 16 | ] |
michael@0 | 17 | |
michael@0 | 18 | XPIDL_MODULE = 'url-classifier' |
michael@0 | 19 | |
michael@0 | 20 | UNIFIED_SOURCES += [ |
michael@0 | 21 | 'ChunkSet.cpp', |
michael@0 | 22 | 'Classifier.cpp', |
michael@0 | 23 | 'LookupCache.cpp', |
michael@0 | 24 | 'nsCheckSummedOutputStream.cpp', |
michael@0 | 25 | 'nsUrlClassifierDBService.cpp', |
michael@0 | 26 | 'nsUrlClassifierProxies.cpp', |
michael@0 | 27 | 'nsUrlClassifierUtils.cpp', |
michael@0 | 28 | 'ProtocolParser.cpp', |
michael@0 | 29 | ] |
michael@0 | 30 | |
michael@0 | 31 | # define conflicting LOG() macros |
michael@0 | 32 | SOURCES += [ |
michael@0 | 33 | 'nsUrlClassifierPrefixSet.cpp', |
michael@0 | 34 | 'nsUrlClassifierStreamUpdater.cpp', |
michael@0 | 35 | ] |
michael@0 | 36 | |
michael@0 | 37 | # contains variables that conflict with LookupCache.cpp |
michael@0 | 38 | SOURCES += [ |
michael@0 | 39 | 'HashStore.cpp', |
michael@0 | 40 | ] |
michael@0 | 41 | |
michael@0 | 42 | EXTRA_COMPONENTS += [ |
michael@0 | 43 | 'nsURLClassifier.manifest', |
michael@0 | 44 | 'nsUrlClassifierHashCompleter.js', |
michael@0 | 45 | ] |
michael@0 | 46 | |
michael@0 | 47 | # Same as JS components that are run through the pre-processor. |
michael@0 | 48 | EXTRA_PP_COMPONENTS += [ |
michael@0 | 49 | 'nsUrlClassifierLib.js', |
michael@0 | 50 | 'nsUrlClassifierListManager.js', |
michael@0 | 51 | ] |
michael@0 | 52 | |
michael@0 | 53 | EXTRA_JS_MODULES += [ |
michael@0 | 54 | 'SafeBrowsing.jsm', |
michael@0 | 55 | ] |
michael@0 | 56 | |
michael@0 | 57 | EXPORTS += [ |
michael@0 | 58 | 'Entries.h', |
michael@0 | 59 | 'LookupCache.h', |
michael@0 | 60 | 'nsUrlClassifierPrefixSet.h', |
michael@0 | 61 | ] |
michael@0 | 62 | |
michael@0 | 63 | FAIL_ON_WARNINGS = True |
michael@0 | 64 | |
michael@0 | 65 | MSVC_ENABLE_PGO = True |
michael@0 | 66 | |
michael@0 | 67 | FINAL_LIBRARY = 'toolkitcomps' |
michael@0 | 68 | |
michael@0 | 69 | LOCAL_INCLUDES += [ |
michael@0 | 70 | '../build', |
michael@0 | 71 | '/ipc/chromium/src', |
michael@0 | 72 | ] |
michael@0 | 73 |