2014-01-27 07:36:28 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2014-06-17 09:57:55 +04:00
|
|
|
SOURCES += [
|
2014-01-27 07:36:28 +04:00
|
|
|
'CertVerifier.cpp',
|
2014-01-21 10:10:33 +04:00
|
|
|
'NSSCertDBTrustDomain.cpp',
|
2014-03-13 00:08:48 +04:00
|
|
|
'OCSPCache.cpp',
|
2014-05-02 02:07:55 +04:00
|
|
|
'OCSPRequestor.cpp',
|
2014-01-27 07:36:28 +04:00
|
|
|
]
|
|
|
|
|
2014-02-24 10:15:53 +04:00
|
|
|
if not CONFIG['NSS_NO_EV_CERTS']:
|
2014-06-17 09:57:55 +04:00
|
|
|
SOURCES += [
|
2014-01-27 07:36:28 +04:00
|
|
|
'ExtendedValidation.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
2014-02-06 02:49:10 +04:00
|
|
|
'../manager/boot/src',
|
2014-05-02 02:07:55 +04:00
|
|
|
'../manager/ssl/src',
|
2014-03-21 01:29:21 +04:00
|
|
|
'../pkix/include',
|
2014-01-27 07:36:28 +04:00
|
|
|
]
|
|
|
|
|
2014-03-11 01:04:31 +04:00
|
|
|
DIRS += [
|
2014-03-21 01:29:21 +04:00
|
|
|
'../pkix',
|
2014-03-11 01:04:31 +04:00
|
|
|
]
|
|
|
|
|
2014-05-16 08:56:23 +04:00
|
|
|
CXXFLAGS += ['-Wall']
|
|
|
|
if CONFIG['_MSC_VER']:
|
|
|
|
# -Wall with Visual C++ enables too many problematic warnings
|
|
|
|
CXXFLAGS += [
|
2014-06-17 09:57:55 +04:00
|
|
|
'-wd4480', # nonstandard extension used: specifying underlying type for
|
|
|
|
# enum 'enum'
|
2014-07-18 22:48:49 +04:00
|
|
|
'-wd4481', # nonstandard extension used: override specifier 'keyword'
|
2014-05-16 08:56:23 +04:00
|
|
|
'-wd4510', # default constructor could not be generated
|
|
|
|
'-wd4512', # assignment operator could not be generated
|
|
|
|
'-wd4514', # 'function': unreferenced inline function has been removed
|
|
|
|
'-wd4610', # struct 'symbol' can never be instantiated - user defined
|
|
|
|
# constructor required
|
|
|
|
'-wd4619', # pragma warning: there is no warning 'warning'
|
|
|
|
'-wd4625', # copy constructor could not be generated because a base
|
|
|
|
# class copy constructor is inaccessible or deleted
|
|
|
|
'-wd4626', # assignment operator could not be generated because a base
|
|
|
|
# class assignment operator is inaccessible or deleted
|
2014-08-04 22:29:25 +04:00
|
|
|
'-wd4640', # construction of local static object is not thread-safe
|
2014-05-16 08:56:23 +04:00
|
|
|
'-wd4710', # 'function': function not inlined
|
|
|
|
'-wd4711', # function 'function' selected for inline expansion
|
|
|
|
'-wd4820', # 'bytes' bytes padding added after construct 'member_name'
|
|
|
|
]
|
|
|
|
|
|
|
|
# MSVC 2010's headers trigger these
|
|
|
|
CXXFLAGS += [
|
|
|
|
'-wd4548', # expression before comma has no effect; ...
|
|
|
|
'-wd4668', # 'symbol' is not defined as a preprocessor macro...
|
|
|
|
'-wd4987', # nonstandard extension used
|
|
|
|
]
|
|
|
|
|
|
|
|
# Gecko headers aren't warning-free enough for us to enable these warnings
|
|
|
|
CXXFLAGS += [
|
|
|
|
'-wd4100', # 'symbol' : unreferenced formal parameter
|
|
|
|
'-wd4127', # conditional expression is constant
|
|
|
|
'-wd4946', # reinterpret_cast used between related types
|
|
|
|
]
|
|
|
|
|
2014-02-06 10:11:24 +04:00
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2014-01-27 07:36:28 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|