netwerk/cookie/moz.build

branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
equal deleted inserted replaced
-1:000000000000 0:2e7d4a00a711
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7 # export required interfaces, even if --disable-cookies has been given
8 XPIDL_SOURCES += [
9 'nsICookie.idl',
10 'nsICookie2.idl',
11 'nsICookieManager.idl',
12 'nsICookieManager2.idl',
13 'nsICookiePermission.idl',
14 'nsICookieService.idl',
15 ]
16
17 XPIDL_MODULE = 'necko_cookie'
18
19 if CONFIG['NECKO_COOKIES']:
20 MSVC_ENABLE_PGO = True
21
22 EXPORTS.mozilla.net = [
23 'CookieServiceChild.h',
24 'CookieServiceParent.h',
25 ]
26 UNIFIED_SOURCES += [
27 'CookieServiceChild.cpp',
28 'CookieServiceParent.cpp',
29 'nsCookie.cpp',
30 ]
31 # nsCookieService.cpp can't be unified because it forces NSPR logging.
32 SOURCES += [
33 'nsCookieService.cpp',
34 ]
35 LOCAL_INCLUDES += [
36 '/intl/uconv/src',
37 ]
38
39 XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']
40
41 # FIXME/bug 575918: out-of-process xpcshell is broken on OS X
42 if CONFIG['OS_ARCH'] != 'Darwin':
43 XPCSHELL_TESTS_MANIFESTS += ['test/unit_ipc/xpcshell.ini']
44
45 IPDL_SOURCES = [
46 'PCookieService.ipdl',
47 ]
48
49 FAIL_ON_WARNINGS = True
50
51 include('/ipc/chromium/chromium-config.mozbuild')
52
53 FINAL_LIBRARY = 'necko'

mercurial