toolkit/components/downloads/moz.build

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:3c7a539fba4c
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 XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']
8
9 if not CONFIG['MOZ_JSDOWNLOADS']:
10 XPCSHELL_TESTS_MANIFESTS += ['test/schema_migration/xpcshell.ini']
11 BROWSER_CHROME_MANIFESTS += ['test/browser/browser.ini']
12 MOCHITEST_MANIFESTS += ['test/browser/mochitest.ini']
13
14 XPIDL_SOURCES += [
15 'nsIApplicationReputation.idl',
16 'nsIDownload.idl',
17 'nsIDownloadManager.idl',
18 'nsIDownloadManagerUI.idl',
19 'nsIDownloadProgressListener.idl',
20 ]
21
22 XPIDL_MODULE = 'downloads'
23
24 UNIFIED_SOURCES += [
25 'nsDownloadManager.cpp',
26 ]
27
28 # SQLFunctions.cpp cannot be built in unified mode because of Windows headers.
29 SOURCES += [
30 'SQLFunctions.cpp',
31 ]
32
33 if CONFIG['MOZ_URL_CLASSIFIER']:
34 UNIFIED_SOURCES += [
35 'ApplicationReputation.cpp',
36 'csd.pb.cc'
37 ]
38
39 if CONFIG['OS_ARCH'] == 'WINNT':
40 # Can't build unified because we need CreateEvent which some IPC code
41 # included in LoadContext ends up undefining.
42 SOURCES += [
43 'nsDownloadScanner.cpp',
44 ]
45
46 # XXX - Until Suite builds off XULRunner we can't guarantee our implementation
47 # of nsIDownloadManagerUI overrides toolkit's.
48 if not CONFIG['MOZ_SUITE']:
49 EXTRA_COMPONENTS += [
50 'nsDownloadManagerUI.js',
51 'nsDownloadManagerUI.manifest',
52 ]
53
54 FAIL_ON_WARNINGS = True
55
56 FINAL_LIBRARY = 'toolkitcomps'
57
58 LOCAL_INCLUDES += [
59 '../protobuf',
60 '/ipc/chromium/src'
61 ]
62
63 DEFINES['GOOGLE_PROTOBUF_NO_RTTI'] = True

mercurial