michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini'] michael@0: michael@0: if not CONFIG['MOZ_JSDOWNLOADS']: michael@0: XPCSHELL_TESTS_MANIFESTS += ['test/schema_migration/xpcshell.ini'] michael@0: BROWSER_CHROME_MANIFESTS += ['test/browser/browser.ini'] michael@0: MOCHITEST_MANIFESTS += ['test/browser/mochitest.ini'] michael@0: michael@0: XPIDL_SOURCES += [ michael@0: 'nsIApplicationReputation.idl', michael@0: 'nsIDownload.idl', michael@0: 'nsIDownloadManager.idl', michael@0: 'nsIDownloadManagerUI.idl', michael@0: 'nsIDownloadProgressListener.idl', michael@0: ] michael@0: michael@0: XPIDL_MODULE = 'downloads' michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'nsDownloadManager.cpp', michael@0: ] michael@0: michael@0: # SQLFunctions.cpp cannot be built in unified mode because of Windows headers. michael@0: SOURCES += [ michael@0: 'SQLFunctions.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_URL_CLASSIFIER']: michael@0: UNIFIED_SOURCES += [ michael@0: 'ApplicationReputation.cpp', michael@0: 'csd.pb.cc' michael@0: ] michael@0: michael@0: if CONFIG['OS_ARCH'] == 'WINNT': michael@0: # Can't build unified because we need CreateEvent which some IPC code michael@0: # included in LoadContext ends up undefining. michael@0: SOURCES += [ michael@0: 'nsDownloadScanner.cpp', michael@0: ] michael@0: michael@0: # XXX - Until Suite builds off XULRunner we can't guarantee our implementation michael@0: # of nsIDownloadManagerUI overrides toolkit's. michael@0: if not CONFIG['MOZ_SUITE']: michael@0: EXTRA_COMPONENTS += [ michael@0: 'nsDownloadManagerUI.js', michael@0: 'nsDownloadManagerUI.manifest', michael@0: ] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: FINAL_LIBRARY = 'toolkitcomps' michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '../protobuf', michael@0: '/ipc/chromium/src' michael@0: ] michael@0: michael@0: DEFINES['GOOGLE_PROTOBUF_NO_RTTI'] = True