2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:24 +00:00
|
|
|
# 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-04-26 15:29:00 +00:00
|
|
|
TEST_DIRS += [ 'tests' ]
|
2015-05-26 17:30:46 +00:00
|
|
|
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIASN1Object.idl',
|
|
|
|
'nsIASN1PrintableItem.idl',
|
|
|
|
'nsIASN1Sequence.idl',
|
|
|
|
'nsIAssociatedContentSecurity.idl',
|
|
|
|
'nsIBadCertListener2.idl',
|
2015-05-26 17:31:25 +00:00
|
|
|
'nsIBufEntropyCollector.idl',
|
|
|
|
'nsICertBlocklist.idl',
|
2015-05-26 17:30:46 +00:00
|
|
|
'nsICertificateDialogs.idl',
|
|
|
|
'nsICertOverrideService.idl',
|
|
|
|
'nsICertPickDialogs.idl',
|
|
|
|
'nsIClientAuthDialogs.idl',
|
|
|
|
'nsIDataSignatureVerifier.idl',
|
|
|
|
'nsIGenKeypairInfoDlg.idl',
|
|
|
|
'nsIKeygenThread.idl',
|
|
|
|
'nsIKeyModule.idl',
|
|
|
|
'nsINSSVersion.idl',
|
|
|
|
'nsIPK11Token.idl',
|
|
|
|
'nsIPK11TokenDB.idl',
|
|
|
|
'nsIPKCS11.idl',
|
|
|
|
'nsIPKCS11Module.idl',
|
|
|
|
'nsIPKCS11ModuleDB.idl',
|
|
|
|
'nsIPKCS11Slot.idl',
|
|
|
|
'nsIProtectedAuthThread.idl',
|
2015-05-26 17:31:25 +00:00
|
|
|
'nsISecurityUITelemetry.idl',
|
2015-05-26 17:31:30 +00:00
|
|
|
'nsISiteSecurityService.idl',
|
2015-05-26 17:30:46 +00:00
|
|
|
'nsISSLStatus.idl',
|
2015-05-26 17:31:25 +00:00
|
|
|
'nsISSLStatusProvider.idl',
|
2015-05-26 17:30:46 +00:00
|
|
|
'nsITokenDialogs.idl',
|
|
|
|
'nsITokenPasswordDialogs.idl',
|
|
|
|
'nsIUserCertPicker.idl',
|
|
|
|
'nsIX509Cert.idl',
|
|
|
|
'nsIX509CertDB.idl',
|
|
|
|
'nsIX509CertList.idl',
|
|
|
|
'nsIX509CertValidity.idl',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_XUL']:
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsICertTree.idl',
|
|
|
|
]
|
|
|
|
|
|
|
|
XPIDL_MODULE = 'pipnss'
|
2015-05-26 17:31:23 +00:00
|
|
|
|
|
|
|
EXPORTS += [
|
|
|
|
'CryptoTask.h',
|
|
|
|
'nsClientAuthRemember.h',
|
|
|
|
'nsCrypto.h',
|
|
|
|
'nsNSSCallbacks.h',
|
|
|
|
'nsNSSCertificate.h',
|
|
|
|
'nsNSSComponent.h',
|
|
|
|
'nsNSSHelper.h',
|
|
|
|
'nsNSSShutDown.h',
|
|
|
|
'nsRandomGenerator.h',
|
|
|
|
'NSSErrorsService.h',
|
|
|
|
'ScopedNSSTypes.h',
|
|
|
|
'SharedCertVerifier.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
2015-05-26 17:31:25 +00:00
|
|
|
'DataStorage.h',
|
2015-05-26 17:31:23 +00:00
|
|
|
'PublicSSL.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.psm += [
|
|
|
|
'PSMContentListener.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
UNIFIED_SOURCES += [
|
2015-05-26 17:31:25 +00:00
|
|
|
'CertBlocklist.cpp',
|
2015-05-26 17:31:23 +00:00
|
|
|
'CryptoTask.cpp',
|
2015-05-26 17:31:25 +00:00
|
|
|
'DataStorage.cpp',
|
2015-05-26 17:31:23 +00:00
|
|
|
'nsCertOverrideService.cpp',
|
|
|
|
'nsCertPicker.cpp',
|
|
|
|
'nsCertVerificationThread.cpp',
|
|
|
|
'nsClientAuthRemember.cpp',
|
|
|
|
'nsCrypto.cpp',
|
|
|
|
'nsCryptoHash.cpp',
|
|
|
|
'nsDataSignatureVerifier.cpp',
|
2015-05-26 17:31:25 +00:00
|
|
|
'nsEntropyCollector.cpp',
|
2015-05-26 17:31:23 +00:00
|
|
|
'nsKeygenHandler.cpp',
|
|
|
|
'nsKeygenHandlerContent.cpp',
|
|
|
|
'nsKeygenThread.cpp',
|
|
|
|
'nsKeyModule.cpp',
|
|
|
|
'nsNSSASN1Object.cpp',
|
|
|
|
'nsNSSCallbacks.cpp',
|
|
|
|
'nsNSSCertHelper.cpp',
|
|
|
|
'nsNSSCertificate.cpp',
|
|
|
|
'nsNSSCertificateFakeTransport.cpp',
|
|
|
|
'nsNSSCertTrust.cpp',
|
|
|
|
'nsNSSCertValidity.cpp',
|
|
|
|
'nsNSSComponent.cpp',
|
|
|
|
'nsNSSErrors.cpp',
|
|
|
|
'nsNSSIOLayer.cpp',
|
|
|
|
'nsNSSModule.cpp',
|
|
|
|
'nsNSSShutDown.cpp',
|
|
|
|
'nsNSSVersion.cpp',
|
|
|
|
'nsNTLMAuthModule.cpp',
|
|
|
|
'nsPK11TokenDB.cpp',
|
|
|
|
'nsPKCS11Slot.cpp',
|
|
|
|
'nsPKCS12Blob.cpp',
|
|
|
|
'nsProtectedAuthThread.cpp',
|
|
|
|
'nsPSMBackgroundThread.cpp',
|
|
|
|
'nsRandomGenerator.cpp',
|
|
|
|
'nsSDR.cpp',
|
2015-05-26 17:31:25 +00:00
|
|
|
'nsSecureBrowserUIImpl.cpp',
|
|
|
|
'nsSecurityHeaderParser.cpp',
|
2015-05-26 17:31:23 +00:00
|
|
|
'NSSErrorsService.cpp',
|
2015-05-26 17:31:25 +00:00
|
|
|
'nsSiteSecurityService.cpp',
|
2015-05-26 17:31:23 +00:00
|
|
|
'nsSSLSocketProvider.cpp',
|
|
|
|
'nsSSLStatus.cpp',
|
|
|
|
'nsTLSSocketProvider.cpp',
|
|
|
|
'nsUsageArrayHelper.cpp',
|
|
|
|
'PSMContentListener.cpp',
|
|
|
|
'PSMRunnable.cpp',
|
2015-05-26 17:31:25 +00:00
|
|
|
'PublicKeyPinningService.cpp',
|
|
|
|
'RootCertificateTelemetryUtils.cpp',
|
2015-05-26 17:31:23 +00:00
|
|
|
'SharedSSLState.cpp',
|
|
|
|
'SSLServerCertVerification.cpp',
|
|
|
|
'TransportSecurityInfo.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
# nsNSSCertificateDB.cpp needs to include nscert.h before everything else.
|
|
|
|
SOURCES += [
|
|
|
|
'nsNSSCertificateDB.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
IPDL_SOURCES += [
|
|
|
|
'PPSMContentDownloader.ipdl',
|
|
|
|
]
|
|
|
|
|
|
|
|
if not CONFIG['MOZ_NO_SMART_CARDS']:
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'nsSmartCardMonitor.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_XUL']:
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'nsCertTree.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'md4.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
|
|
|
FINAL_LIBRARY = 'xul'
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/dom/base',
|
|
|
|
'/security/certverifier',
|
|
|
|
'/security/pkix/include',
|
|
|
|
]
|
|
|
|
|
2015-05-26 17:31:25 +00:00
|
|
|
GENERATED_INCLUDES += [
|
|
|
|
'/dist/public/nss',
|
|
|
|
]
|
|
|
|
|
2015-05-26 17:31:23 +00:00
|
|
|
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',
|
|
|
|
]
|
|
|
|
|
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|