summaryrefslogtreecommitdiff
path: root/components/downloads/moz.build
blob: ffd526570c8cab8f83bf14037e0c248642152aae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DEFINES['GOOGLE_PROTOBUF_NO_RTTI'] = True
DEFINES['GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER'] = True

CXXFLAGS += CONFIG['TK_CFLAGS']

if CONFIG['GNU_CXX']:
    CXXFLAGS += ['-Wno-shadow']

XPIDL_SOURCES += [
    'public/nsIDownload.idl',
    'public/nsIDownloadManager.idl',
    'public/nsIDownloadManagerUI.idl',
    'public/nsIDownloadProgressListener.idl',
]

SOURCES += [
    'src/nsDownloadManager.cpp',
    'src/SQLFunctions.cpp',
]

if CONFIG['OS_ARCH'] == 'WINNT':
    SOURCES += ['src/nsDownloadScanner.cpp']

EXTRA_COMPONENTS += ['nsHelperAppDlg.manifest']

EXTRA_PP_COMPONENTS += ['src/nsHelperAppDlg.js']

# The Communicator Downloads Manager uses its own DownloadManagerUI
# component and it can't be guaranteed that its implementation will override
# toolkit's so don't include toolkit's
if not CONFIG['BINOC_DOWNLOADS']:
    EXTRA_COMPONENTS += [
        'nsDownloadManagerUI.manifest',
        'src/nsDownloadManagerUI.js',
    ]

EXTRA_JS_MODULES += [
    'src/DownloadLastDir.jsm',
    'src/DownloadPaths.jsm',
    'src/DownloadUtils.jsm',
]

EXTRA_PP_JS_MODULES += ['src/DownloadTaskbarProgress.jsm']

LOCAL_INCLUDES += [
    '/ipc/chromium/src',
    '/libs/protobuf',
]

XPIDL_MODULE = 'downloads'
FINAL_LIBRARY = 'xul'
JAR_MANIFESTS += ['jar.mn']