netwerk/cookie/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/cookie/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,53 @@
     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 +# export required interfaces, even if --disable-cookies has been given
    1.11 +XPIDL_SOURCES += [
    1.12 +    'nsICookie.idl',
    1.13 +    'nsICookie2.idl',
    1.14 +    'nsICookieManager.idl',
    1.15 +    'nsICookieManager2.idl',
    1.16 +    'nsICookiePermission.idl',
    1.17 +    'nsICookieService.idl',
    1.18 +]
    1.19 +
    1.20 +XPIDL_MODULE = 'necko_cookie'
    1.21 +
    1.22 +if CONFIG['NECKO_COOKIES']:
    1.23 +    MSVC_ENABLE_PGO = True
    1.24 +
    1.25 +    EXPORTS.mozilla.net = [
    1.26 +        'CookieServiceChild.h',
    1.27 +        'CookieServiceParent.h',
    1.28 +    ]
    1.29 +    UNIFIED_SOURCES += [
    1.30 +        'CookieServiceChild.cpp',
    1.31 +        'CookieServiceParent.cpp',
    1.32 +        'nsCookie.cpp',
    1.33 +    ]
    1.34 +    # nsCookieService.cpp can't be unified because it forces NSPR logging.
    1.35 +    SOURCES += [
    1.36 +        'nsCookieService.cpp',
    1.37 +    ]
    1.38 +    LOCAL_INCLUDES += [
    1.39 +        '/intl/uconv/src',
    1.40 +    ]
    1.41 +
    1.42 +    XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']
    1.43 +
    1.44 +    # FIXME/bug 575918: out-of-process xpcshell is broken on OS X
    1.45 +    if CONFIG['OS_ARCH'] != 'Darwin':
    1.46 +        XPCSHELL_TESTS_MANIFESTS += ['test/unit_ipc/xpcshell.ini']
    1.47 +
    1.48 +IPDL_SOURCES = [
    1.49 +    'PCookieService.ipdl',
    1.50 +]
    1.51 +
    1.52 +FAIL_ON_WARNINGS = True
    1.53 +
    1.54 +include('/ipc/chromium/chromium-config.mozbuild')
    1.55 +
    1.56 +FINAL_LIBRARY = 'necko'

mercurial