security/manager/ssl/src/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/manager/ssl/src/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,107 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +EXPORTS += [
    1.11 +    'CryptoTask.h',
    1.12 +    'nsCrypto.h',
    1.13 +    'nsNSSShutDown.h',
    1.14 +    'nsRandomGenerator.h',
    1.15 +    'ScopedNSSTypes.h',
    1.16 +]
    1.17 +
    1.18 +EXPORTS.mozilla += [
    1.19 +    'PublicSSL.h',
    1.20 +]
    1.21 +
    1.22 +UNIFIED_SOURCES += [
    1.23 +    'CryptoTask.cpp',
    1.24 +    'nsCertificatePrincipal.cpp',
    1.25 +    'nsCertOverrideService.cpp',
    1.26 +    'nsCertPicker.cpp',
    1.27 +    'nsCertVerificationThread.cpp',
    1.28 +    'nsClientAuthRemember.cpp',
    1.29 +    'nsCMS.cpp',
    1.30 +    'nsCMSSecureMessage.cpp',
    1.31 +    'nsCrypto.cpp',
    1.32 +    'nsDataSignatureVerifier.cpp',
    1.33 +    'nsKeygenHandler.cpp',
    1.34 +    'nsKeygenThread.cpp',
    1.35 +    'nsKeyModule.cpp',
    1.36 +    'nsNSSASN1Object.cpp',
    1.37 +    'nsNSSCallbacks.cpp',
    1.38 +    'nsNSSCertCache.cpp',
    1.39 +    'nsNSSCertHelper.cpp',
    1.40 +    'nsNSSCertificate.cpp',
    1.41 +    'nsNSSCertificateFakeTransport.cpp',
    1.42 +    'nsNSSCertTrust.cpp',
    1.43 +    'nsNSSCertValidity.cpp',
    1.44 +    'nsNSSCleaner.cpp',
    1.45 +    'nsNSSErrors.cpp',
    1.46 +    'nsNSSIOLayer.cpp',
    1.47 +    'nsNSSModule.cpp',
    1.48 +    'nsNSSShutDown.cpp',
    1.49 +    'nsNTLMAuthModule.cpp',
    1.50 +    'nsPK11TokenDB.cpp',
    1.51 +    'nsPKCS11Slot.cpp',
    1.52 +    'nsPKCS12Blob.cpp',
    1.53 +    'nsProtectedAuthThread.cpp',
    1.54 +    'nsPSMBackgroundThread.cpp',
    1.55 +    'nsRandomGenerator.cpp',
    1.56 +    'nsRecentBadCerts.cpp',
    1.57 +    'nsSDR.cpp',
    1.58 +    'NSSErrorsService.cpp',
    1.59 +    'nsSSLSocketProvider.cpp',
    1.60 +    'nsSSLStatus.cpp',
    1.61 +    'nsStreamCipher.cpp',
    1.62 +    'nsTLSSocketProvider.cpp',
    1.63 +    'nsUsageArrayHelper.cpp',
    1.64 +    'PSMRunnable.cpp',
    1.65 +    'SharedSSLState.cpp',
    1.66 +    'SSLServerCertVerification.cpp',
    1.67 +    'TransportSecurityInfo.cpp',
    1.68 +]
    1.69 +
    1.70 +# nsNSSCertificateDB.cpp needs to include nscert.h before everything else.
    1.71 +# The rest cannot be built in unified mode because they want to force NSPR
    1.72 +# logging.
    1.73 +SOURCES += [
    1.74 +    'nsCryptoHash.cpp',
    1.75 +    'nsNSSCertificateDB.cpp',
    1.76 +    'nsNSSComponent.cpp',
    1.77 +    'nsNSSVersion.cpp',
    1.78 +    'PSMContentListener.cpp',
    1.79 +]
    1.80 +
    1.81 +if not CONFIG['MOZ_DISABLE_CRYPTOLEGACY']:
    1.82 +    UNIFIED_SOURCES += [
    1.83 +        'nsSmartCardMonitor.cpp',
    1.84 +    ]
    1.85 +
    1.86 +if CONFIG['MOZ_XUL']:
    1.87 +    UNIFIED_SOURCES += [
    1.88 +        'nsCertTree.cpp',
    1.89 +    ]
    1.90 +
    1.91 +UNIFIED_SOURCES += [
    1.92 +    'md4.c',
    1.93 +]
    1.94 +
    1.95 +FAIL_ON_WARNINGS = True
    1.96 +
    1.97 +FINAL_LIBRARY = 'xul'
    1.98 +
    1.99 +LOCAL_INCLUDES += [
   1.100 +    '../../../certverifier',
   1.101 +    '../../../pkix/include',
   1.102 +]
   1.103 +
   1.104 +if CONFIG['NSS_DISABLE_DBM']:
   1.105 +    DEFINES['NSS_DISABLE_DBM'] = '1'
   1.106 +
   1.107 +DEFINES['SSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES'] = 'True'
   1.108 +DEFINES['NSS_ENABLE_ECC'] = 'True'
   1.109 +for var in ('DLL_PREFIX', 'DLL_SUFFIX'):
   1.110 +    DEFINES[var] = '"%s"' % CONFIG[var]

mercurial