|
1 # -*- Mode: python; c-basic-offset: 4; 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 TEST_TOOL_DIRS += ['tests'] |
|
8 |
|
9 XPIDL_SOURCES += [ |
|
10 'nsIUrlClassifierDBService.idl', |
|
11 'nsIUrlClassifierHashCompleter.idl', |
|
12 'nsIUrlClassifierPrefixSet.idl', |
|
13 'nsIUrlClassifierStreamUpdater.idl', |
|
14 'nsIUrlClassifierUtils.idl', |
|
15 'nsIUrlListManager.idl', |
|
16 ] |
|
17 |
|
18 XPIDL_MODULE = 'url-classifier' |
|
19 |
|
20 UNIFIED_SOURCES += [ |
|
21 'ChunkSet.cpp', |
|
22 'Classifier.cpp', |
|
23 'LookupCache.cpp', |
|
24 'nsCheckSummedOutputStream.cpp', |
|
25 'nsUrlClassifierDBService.cpp', |
|
26 'nsUrlClassifierProxies.cpp', |
|
27 'nsUrlClassifierUtils.cpp', |
|
28 'ProtocolParser.cpp', |
|
29 ] |
|
30 |
|
31 # define conflicting LOG() macros |
|
32 SOURCES += [ |
|
33 'nsUrlClassifierPrefixSet.cpp', |
|
34 'nsUrlClassifierStreamUpdater.cpp', |
|
35 ] |
|
36 |
|
37 # contains variables that conflict with LookupCache.cpp |
|
38 SOURCES += [ |
|
39 'HashStore.cpp', |
|
40 ] |
|
41 |
|
42 EXTRA_COMPONENTS += [ |
|
43 'nsURLClassifier.manifest', |
|
44 'nsUrlClassifierHashCompleter.js', |
|
45 ] |
|
46 |
|
47 # Same as JS components that are run through the pre-processor. |
|
48 EXTRA_PP_COMPONENTS += [ |
|
49 'nsUrlClassifierLib.js', |
|
50 'nsUrlClassifierListManager.js', |
|
51 ] |
|
52 |
|
53 EXTRA_JS_MODULES += [ |
|
54 'SafeBrowsing.jsm', |
|
55 ] |
|
56 |
|
57 EXPORTS += [ |
|
58 'Entries.h', |
|
59 'LookupCache.h', |
|
60 'nsUrlClassifierPrefixSet.h', |
|
61 ] |
|
62 |
|
63 FAIL_ON_WARNINGS = True |
|
64 |
|
65 MSVC_ENABLE_PGO = True |
|
66 |
|
67 FINAL_LIBRARY = 'toolkitcomps' |
|
68 |
|
69 LOCAL_INCLUDES += [ |
|
70 '../build', |
|
71 '/ipc/chromium/src', |
|
72 ] |
|
73 |