security/manager/ssl/src/moz.build
author David Keeler <dkeeler@mozilla.com>
Thu, 14 Aug 2014 09:38:42 -0700
changeset 221184 68499003df5ed29ba5cc594aeac3b166f4730de7
parent 219898 6b285759568cb0b743cb9497e021f6552cc7e349
child 226018 fea4ac1165f99364b6c997c8e4e1e825c399c3f9
child 226535 a34dfd7c025d70c27e1ed02e63d9b8716d08d8a1
permissions -rw-r--r--
bug 1030963 - remove non-standard window.crypto functions/properties r=jst r=briansmith r=glandium

# -*- 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/.

EXPORTS += [
    'CryptoTask.h',
    'nsCrypto.h',
    'nsNSSShutDown.h',
    'nsRandomGenerator.h',
    'NSSErrorsService.h',
    'ScopedNSSTypes.h',
]

EXPORTS.mozilla += [
    'PublicSSL.h',
]

SOURCES += [
    'CryptoTask.cpp',
    'nsCertificatePrincipal.cpp',
    'nsCertOverrideService.cpp',
    'nsCertPicker.cpp',
    'nsCertVerificationThread.cpp',
    'nsClientAuthRemember.cpp',
    'nsCrypto.cpp',
    'nsDataSignatureVerifier.cpp',
    'nsKeygenHandler.cpp',
    'nsKeygenThread.cpp',
    'nsKeyModule.cpp',
    'nsNSSASN1Object.cpp',
    'nsNSSCallbacks.cpp',
    'nsNSSCertCache.cpp',
    'nsNSSCertHelper.cpp',
    'nsNSSCertificate.cpp',
    'nsNSSCertificateFakeTransport.cpp',
    'nsNSSCertTrust.cpp',
    'nsNSSCertValidity.cpp',
    'nsNSSCleaner.cpp',
    'nsNSSErrors.cpp',
    'nsNSSIOLayer.cpp',
    'nsNSSModule.cpp',
    'nsNSSShutDown.cpp',
    'nsNTLMAuthModule.cpp',
    'nsPK11TokenDB.cpp',
    'nsPKCS11Slot.cpp',
    'nsPKCS12Blob.cpp',
    'nsProtectedAuthThread.cpp',
    'nsPSMBackgroundThread.cpp',
    'nsRandomGenerator.cpp',
    'nsSDR.cpp',
    'NSSErrorsService.cpp',
    'nsSSLSocketProvider.cpp',
    'nsSSLStatus.cpp',
    'nsStreamCipher.cpp',
    'nsTLSSocketProvider.cpp',
    'nsUsageArrayHelper.cpp',
    'PSMRunnable.cpp',
    'SharedSSLState.cpp',
    'SSLServerCertVerification.cpp',
    'TransportSecurityInfo.cpp',
]

# nsNSSCertificateDB.cpp needs to include nscert.h before everything else.
# The rest cannot be built in unified mode because they want to force NSPR
# logging.
SOURCES += [
    'nsCryptoHash.cpp',
    'nsNSSCertificateDB.cpp',
    'nsNSSComponent.cpp',
    'nsNSSVersion.cpp',
    'PSMContentListener.cpp',
]

if not CONFIG['MOZ_NO_SMART_CARDS']:
    SOURCES += [
        'nsSmartCardMonitor.cpp',
    ]

if CONFIG['MOZ_XUL']:
    SOURCES += [
        'nsCertTree.cpp',
    ]

SOURCES += [
    'md4.c',
]

FAIL_ON_WARNINGS = True

FINAL_LIBRARY = 'xul'

LOCAL_INCLUDES += [
    '../../../certverifier',
    '../../../pkix/include',
]

if CONFIG['NSS_DISABLE_DBM']:
    DEFINES['NSS_DISABLE_DBM'] = '1'

DEFINES['SSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES'] = 'True'
DEFINES['NSS_ENABLE_ECC'] = 'True'
for var in ('DLL_PREFIX', 'DLL_SUFFIX'):
    DEFINES[var] = '"%s"' % CONFIG[var]

USE_LIBS += [
    'crmf',
]