2014-03-27 03:00:03 +04:00
|
|
|
# -*- 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 += [
|
2014-07-06 09:14:25 +04:00
|
|
|
'pkixbuild_tests.cpp',
|
|
|
|
'pkixcert_extension_tests.cpp',
|
2014-10-08 20:48:15 +04:00
|
|
|
'pkixcert_signature_algorithm_tests.cpp',
|
2014-06-19 11:13:20 +04:00
|
|
|
'pkixcheck_CheckKeyUsage_tests.cpp',
|
2014-07-04 03:59:42 +04:00
|
|
|
'pkixcheck_CheckValidity_tests.cpp',
|
2014-07-06 09:14:25 +04:00
|
|
|
|
|
|
|
# The naming conventions are described in ./README.txt.
|
|
|
|
|
2014-03-27 03:00:03 +04:00
|
|
|
'pkixder_input_tests.cpp',
|
|
|
|
'pkixder_pki_types_tests.cpp',
|
|
|
|
'pkixder_universal_types_tests.cpp',
|
2014-09-01 07:42:28 +04:00
|
|
|
'pkixgtest.cpp',
|
2014-10-01 01:41:39 +04:00
|
|
|
'pkixnames_tests.cpp',
|
2014-07-06 09:14:25 +04:00
|
|
|
'pkixocsp_CreateEncodedOCSPRequest_tests.cpp',
|
2014-07-15 10:09:36 +04:00
|
|
|
'pkixocsp_VerifyEncodedOCSPResponse.cpp',
|
2014-03-27 03:00:03 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../../include',
|
|
|
|
'../../lib',
|
2014-05-14 21:05:32 +04:00
|
|
|
'../lib',
|
2014-03-27 03:00:03 +04:00
|
|
|
]
|
|
|
|
|
2014-05-14 21:05:32 +04:00
|
|
|
FINAL_LIBRARY = 'xul-gtest'
|
2014-03-27 03:00:03 +04:00
|
|
|
|
2015-02-08 01:38:40 +03:00
|
|
|
include('../../warnings.mozbuild')
|
2014-05-18 07:12:10 +04:00
|
|
|
|
2015-02-08 01:38:40 +03:00
|
|
|
# These warnings are disabled in order to minimize the amount of boilerplate
|
|
|
|
# required to implement tests, and/or because they originate in the GTest
|
|
|
|
# framework in a way we cannot otherwise work around.
|
|
|
|
if CONFIG['CLANG_CXX']:
|
2014-05-18 07:12:10 +04:00
|
|
|
CXXFLAGS += [
|
2015-02-08 01:38:40 +03:00
|
|
|
'-Wno-exit-time-destructors',
|
|
|
|
'-Wno-global-constructors',
|
|
|
|
'-Wno-old-style-cast',
|
|
|
|
'-Wno-used-but-marked-unused',
|
|
|
|
]
|
|
|
|
elif CONFIG['_MSC_VER']:
|
|
|
|
CXXFLAGS += [
|
|
|
|
'-wd4350', # behavior change: 'std::_Wrap_alloc<std::allocator<_Ty>>::...
|
2014-05-18 07:12:10 +04:00
|
|
|
'-wd4275', # non dll-interface class used as base for dll-interface class
|
2015-02-08 01:38:40 +03:00
|
|
|
'-wd4548', # Expression before comma has no effect
|
|
|
|
'-wd4625', # copy constructor could not be generated.
|
|
|
|
'-wd4626', # assugment operator could not be generated.
|
|
|
|
'-wd4640', # construction of local static object is not thread safe.
|
2014-05-18 07:12:10 +04:00
|
|
|
]
|