toolkit/components/url-classifier/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/components/url-classifier/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,73 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +TEST_TOOL_DIRS += ['tests']
    1.11 +
    1.12 +XPIDL_SOURCES += [
    1.13 +    'nsIUrlClassifierDBService.idl',
    1.14 +    'nsIUrlClassifierHashCompleter.idl',
    1.15 +    'nsIUrlClassifierPrefixSet.idl',
    1.16 +    'nsIUrlClassifierStreamUpdater.idl',
    1.17 +    'nsIUrlClassifierUtils.idl',
    1.18 +    'nsIUrlListManager.idl',
    1.19 +]
    1.20 +
    1.21 +XPIDL_MODULE = 'url-classifier'
    1.22 +
    1.23 +UNIFIED_SOURCES += [
    1.24 +    'ChunkSet.cpp',
    1.25 +    'Classifier.cpp',
    1.26 +    'LookupCache.cpp',
    1.27 +    'nsCheckSummedOutputStream.cpp',
    1.28 +    'nsUrlClassifierDBService.cpp',
    1.29 +    'nsUrlClassifierProxies.cpp',
    1.30 +    'nsUrlClassifierUtils.cpp',
    1.31 +    'ProtocolParser.cpp',
    1.32 +]
    1.33 +
    1.34 +# define conflicting LOG() macros
    1.35 +SOURCES += [
    1.36 +    'nsUrlClassifierPrefixSet.cpp',
    1.37 +    'nsUrlClassifierStreamUpdater.cpp',
    1.38 +]
    1.39 +
    1.40 +# contains variables that conflict with LookupCache.cpp
    1.41 +SOURCES += [
    1.42 +    'HashStore.cpp',
    1.43 +]
    1.44 +
    1.45 +EXTRA_COMPONENTS += [
    1.46 +    'nsURLClassifier.manifest',
    1.47 +    'nsUrlClassifierHashCompleter.js',
    1.48 +]
    1.49 +
    1.50 +# Same as JS components that are run through the pre-processor.
    1.51 +EXTRA_PP_COMPONENTS += [
    1.52 +    'nsUrlClassifierLib.js',
    1.53 +    'nsUrlClassifierListManager.js',
    1.54 +]
    1.55 +
    1.56 +EXTRA_JS_MODULES += [
    1.57 +    'SafeBrowsing.jsm',
    1.58 +]
    1.59 +
    1.60 +EXPORTS += [
    1.61 +    'Entries.h',
    1.62 +    'LookupCache.h',
    1.63 +    'nsUrlClassifierPrefixSet.h',
    1.64 +]
    1.65 +
    1.66 +FAIL_ON_WARNINGS = True
    1.67 +
    1.68 +MSVC_ENABLE_PGO = True
    1.69 +
    1.70 +FINAL_LIBRARY = 'toolkitcomps'
    1.71 +
    1.72 +LOCAL_INCLUDES += [
    1.73 +    '../build',
    1.74 +    '/ipc/chromium/src',
    1.75 +]
    1.76 +

mercurial