summaryrefslogtreecommitdiff
path: root/components/downloads/moz.build
diff options
context:
space:
mode:
Diffstat (limited to 'components/downloads/moz.build')
-rw-r--r--components/downloads/moz.build57
1 files changed, 57 insertions, 0 deletions
diff --git a/components/downloads/moz.build b/components/downloads/moz.build
new file mode 100644
index 000000000..ffd526570
--- /dev/null
+++ b/components/downloads/moz.build
@@ -0,0 +1,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'] \ No newline at end of file