Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
[gecko.git] / security / certverifier / moz.build
blob0e38c928d3f72260709048e80e785145d024764b
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/.
7 SOURCES += [
8     'CertVerifier.cpp',
9     'NSSCertDBTrustDomain.cpp',
10     'OCSPCache.cpp',
11     'OCSPRequestor.cpp',
14 if not CONFIG['NSS_NO_EV_CERTS']:
15     SOURCES += [
16         'ExtendedValidation.cpp',
17     ]
19 LOCAL_INCLUDES += [
20     '../manager/boot/src',
21     '../manager/ssl/src',
22     '../pkix/include',
25 DIRS += [
26     '../pkix',
29 CXXFLAGS += ['-Wall']
30 if CONFIG['_MSC_VER']:
31   # -Wall with Visual C++ enables too many problematic warnings
32   CXXFLAGS += [
33     '-wd4480', # nonstandard extension used: specifying underlying type for
34                # enum 'enum'
35     '-wd4481', # nonstandard extension used: override specifier 'keyword'
36     '-wd4510', # default constructor could not be generated
37     '-wd4512', # assignment operator could not be generated
38     '-wd4514', # 'function': unreferenced inline function has been removed
39     '-wd4610', # struct 'symbol' can never be instantiated - user defined
40                # constructor required
41     '-wd4619', # pragma warning: there is no warning 'warning'
42     '-wd4625', # copy constructor could not be generated because a base
43                # class copy constructor is inaccessible or deleted
44     '-wd4626', # assignment operator could not be generated because a base
45                # class assignment operator is inaccessible or deleted
46     '-wd4640', # construction of local static object is not thread-safe
47     '-wd4710', # 'function': function not inlined
48     '-wd4711', # function 'function' selected for inline expansion
49     '-wd4820', # 'bytes' bytes padding added after construct 'member_name'
50   ]
52   # MSVC 2010's headers trigger these
53   CXXFLAGS += [
54       '-wd4548', # expression before comma has no effect; ...
55       '-wd4668', # 'symbol' is not defined as a preprocessor macro...
56       '-wd4987', # nonstandard extension used
57   ]
59   # Gecko headers aren't warning-free enough for us to enable these warnings
60   CXXFLAGS += [
61     '-wd4100', # 'symbol' : unreferenced formal parameter
62     '-wd4127', # conditional expression is constant
63     '-wd4946', # reinterpret_cast used between related types
64   ]
66 FAIL_ON_WARNINGS = True
68 FINAL_LIBRARY = 'xul'