toolkit/components/downloads/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/components/downloads/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,63 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']
    1.11 +
    1.12 +if not CONFIG['MOZ_JSDOWNLOADS']:
    1.13 +    XPCSHELL_TESTS_MANIFESTS += ['test/schema_migration/xpcshell.ini']
    1.14 +    BROWSER_CHROME_MANIFESTS += ['test/browser/browser.ini']
    1.15 +    MOCHITEST_MANIFESTS += ['test/browser/mochitest.ini']
    1.16 +
    1.17 +XPIDL_SOURCES += [
    1.18 +    'nsIApplicationReputation.idl',
    1.19 +    'nsIDownload.idl',
    1.20 +    'nsIDownloadManager.idl',
    1.21 +    'nsIDownloadManagerUI.idl',
    1.22 +    'nsIDownloadProgressListener.idl',
    1.23 +]
    1.24 +
    1.25 +XPIDL_MODULE = 'downloads'
    1.26 +
    1.27 +UNIFIED_SOURCES += [
    1.28 +    'nsDownloadManager.cpp',
    1.29 +]
    1.30 +
    1.31 +# SQLFunctions.cpp cannot be built in unified mode because of Windows headers.
    1.32 +SOURCES += [
    1.33 +    'SQLFunctions.cpp',
    1.34 +]
    1.35 +
    1.36 +if CONFIG['MOZ_URL_CLASSIFIER']:
    1.37 +    UNIFIED_SOURCES += [
    1.38 +        'ApplicationReputation.cpp',
    1.39 +        'csd.pb.cc'
    1.40 +    ]
    1.41 +
    1.42 +if CONFIG['OS_ARCH'] == 'WINNT':
    1.43 +    # Can't build unified because we need CreateEvent which some IPC code
    1.44 +    # included in LoadContext ends up undefining.
    1.45 +    SOURCES += [
    1.46 +        'nsDownloadScanner.cpp',
    1.47 +    ]
    1.48 +
    1.49 +# XXX - Until Suite builds off XULRunner we can't guarantee our implementation
    1.50 +# of nsIDownloadManagerUI overrides toolkit's.
    1.51 +if not CONFIG['MOZ_SUITE']:
    1.52 +    EXTRA_COMPONENTS += [
    1.53 +        'nsDownloadManagerUI.js',
    1.54 +        'nsDownloadManagerUI.manifest',
    1.55 +    ]
    1.56 +
    1.57 +FAIL_ON_WARNINGS = True
    1.58 +
    1.59 +FINAL_LIBRARY = 'toolkitcomps'
    1.60 +
    1.61 +LOCAL_INCLUDES += [
    1.62 +    '../protobuf',
    1.63 +    '/ipc/chromium/src'
    1.64 +]
    1.65 +
    1.66 +DEFINES['GOOGLE_PROTOBUF_NO_RTTI'] = True

mercurial