2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2014-02-15 02:37:07 +04: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/.
|
|
|
|
|
2017-03-09 13:33:30 +03:00
|
|
|
with Files("**"):
|
|
|
|
BUG_COMPONENT = ("Core", "Security: PSM")
|
|
|
|
|
2014-10-09 00:19:14 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2014-02-15 02:37:07 +04:00
|
|
|
'AppSignatureVerification.cpp',
|
|
|
|
'AppTrustDomain.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
FINAL_LIBRARY = 'xul'
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
2015-05-26 20:31:23 +03:00
|
|
|
'/security/certverifier',
|
|
|
|
'/security/manager/ssl',
|
|
|
|
'/security/pkix/include',
|
2014-02-15 02:37:07 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
DEFINES['NSS_ENABLE_ECC'] = 'True'
|
|
|
|
for var in ('DLL_PREFIX', 'DLL_SUFFIX'):
|
|
|
|
DEFINES[var] = '"%s"' % CONFIG[var]
|
2015-02-27 20:50:49 +03:00
|
|
|
|
2017-04-04 11:56:26 +03:00
|
|
|
if CONFIG['GNU_CXX']:
|
|
|
|
CXXFLAGS += [
|
|
|
|
'-Wextra',
|
|
|
|
]
|
|
|
|
|
|
|
|
# Gecko headers aren't warning-free enough for us to enable these warnings.
|
|
|
|
CXXFLAGS += [
|
|
|
|
'-Wno-unused-parameter',
|
|
|
|
]
|
|
|
|
|
2015-06-02 09:27:14 +03:00
|
|
|
test_ssl_path = '/security/manager/ssl/tests/unit'
|
2015-02-27 20:50:49 +03:00
|
|
|
|
|
|
|
headers_arrays_certs = [
|
2017-10-11 02:55:09 +03:00
|
|
|
('xpcshell.inc', 'xpcshellRoot', test_ssl_path + '/test_signed_apps/xpcshellTestRoot.der'),
|
2015-03-31 21:32:40 +03:00
|
|
|
('addons-public.inc', 'addonsPublicRoot', 'addons-public.crt'),
|
|
|
|
('addons-stage.inc', 'addonsStageRoot', 'addons-stage.crt'),
|
2015-09-07 10:28:21 +03:00
|
|
|
('privileged-package-root.inc', 'privilegedPackageRoot', 'privileged-package-root.der'),
|
2015-02-27 20:50:49 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
for header, array_name, cert in headers_arrays_certs:
|
|
|
|
GENERATED_FILES += [header]
|
|
|
|
h = GENERATED_FILES[header]
|
|
|
|
h.script = 'gen_cert_header.py:' + array_name
|
|
|
|
h.inputs = [cert]
|