DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (d1ed7de67f5a)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
# -*- 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/.

SOURCES += [
    'CertVerifier.cpp',
    'NSSCertDBTrustDomain.cpp',
    'OCSPCache.cpp',
    'OCSPRequestor.cpp',
]

if not CONFIG['NSS_NO_EV_CERTS']:
    SOURCES += [
        'ExtendedValidation.cpp',
    ]

LOCAL_INCLUDES += [
    '../manager/boot/src',
    '../manager/ssl/src',
    '../pkix/include',
]

DIRS += [
    '../pkix',
]

CXXFLAGS += ['-Wall']
if CONFIG['_MSC_VER']:
  # -Wall with Visual C++ enables too many problematic warnings
  CXXFLAGS += [
    '-wd4480', # nonstandard extension used: specifying underlying type for
               # enum 'enum'
    '-wd4481', # nonstandard extension used: override specifier 'keyword'
    '-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
    '-wd4640', # construction of local static object is not thread-safe
    '-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
  ]

FAIL_ON_WARNINGS = True

FINAL_LIBRARY = 'xul'