Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
michael@0 | 2 | # vim: set filetype=python: |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | |
michael@0 | 7 | XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini'] |
michael@0 | 8 | |
michael@0 | 9 | if not CONFIG['MOZ_JSDOWNLOADS']: |
michael@0 | 10 | XPCSHELL_TESTS_MANIFESTS += ['test/schema_migration/xpcshell.ini'] |
michael@0 | 11 | BROWSER_CHROME_MANIFESTS += ['test/browser/browser.ini'] |
michael@0 | 12 | MOCHITEST_MANIFESTS += ['test/browser/mochitest.ini'] |
michael@0 | 13 | |
michael@0 | 14 | XPIDL_SOURCES += [ |
michael@0 | 15 | 'nsIApplicationReputation.idl', |
michael@0 | 16 | 'nsIDownload.idl', |
michael@0 | 17 | 'nsIDownloadManager.idl', |
michael@0 | 18 | 'nsIDownloadManagerUI.idl', |
michael@0 | 19 | 'nsIDownloadProgressListener.idl', |
michael@0 | 20 | ] |
michael@0 | 21 | |
michael@0 | 22 | XPIDL_MODULE = 'downloads' |
michael@0 | 23 | |
michael@0 | 24 | UNIFIED_SOURCES += [ |
michael@0 | 25 | 'nsDownloadManager.cpp', |
michael@0 | 26 | ] |
michael@0 | 27 | |
michael@0 | 28 | # SQLFunctions.cpp cannot be built in unified mode because of Windows headers. |
michael@0 | 29 | SOURCES += [ |
michael@0 | 30 | 'SQLFunctions.cpp', |
michael@0 | 31 | ] |
michael@0 | 32 | |
michael@0 | 33 | if CONFIG['MOZ_URL_CLASSIFIER']: |
michael@0 | 34 | UNIFIED_SOURCES += [ |
michael@0 | 35 | 'ApplicationReputation.cpp', |
michael@0 | 36 | 'csd.pb.cc' |
michael@0 | 37 | ] |
michael@0 | 38 | |
michael@0 | 39 | if CONFIG['OS_ARCH'] == 'WINNT': |
michael@0 | 40 | # Can't build unified because we need CreateEvent which some IPC code |
michael@0 | 41 | # included in LoadContext ends up undefining. |
michael@0 | 42 | SOURCES += [ |
michael@0 | 43 | 'nsDownloadScanner.cpp', |
michael@0 | 44 | ] |
michael@0 | 45 | |
michael@0 | 46 | # XXX - Until Suite builds off XULRunner we can't guarantee our implementation |
michael@0 | 47 | # of nsIDownloadManagerUI overrides toolkit's. |
michael@0 | 48 | if not CONFIG['MOZ_SUITE']: |
michael@0 | 49 | EXTRA_COMPONENTS += [ |
michael@0 | 50 | 'nsDownloadManagerUI.js', |
michael@0 | 51 | 'nsDownloadManagerUI.manifest', |
michael@0 | 52 | ] |
michael@0 | 53 | |
michael@0 | 54 | FAIL_ON_WARNINGS = True |
michael@0 | 55 | |
michael@0 | 56 | FINAL_LIBRARY = 'toolkitcomps' |
michael@0 | 57 | |
michael@0 | 58 | LOCAL_INCLUDES += [ |
michael@0 | 59 | '../protobuf', |
michael@0 | 60 | '/ipc/chromium/src' |
michael@0 | 61 | ] |
michael@0 | 62 | |
michael@0 | 63 | DEFINES['GOOGLE_PROTOBUF_NO_RTTI'] = True |