2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:17 +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/.
|
|
|
|
|
2014-09-03 09:10:54 +04:00
|
|
|
CppUnitTests([
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestArrayUtils',
|
|
|
|
'TestAtomics',
|
|
|
|
'TestBinarySearch',
|
|
|
|
'TestBloomFilter',
|
|
|
|
'TestCasting',
|
|
|
|
'TestCeilingFloor',
|
|
|
|
'TestCheckedInt',
|
|
|
|
'TestCountPopulation',
|
|
|
|
'TestCountZeroes',
|
|
|
|
'TestEndian',
|
|
|
|
'TestEnumSet',
|
|
|
|
'TestFloatingPoint',
|
2015-09-07 04:43:34 +03:00
|
|
|
'TestFunction',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestIntegerPrintfMacros',
|
2015-07-02 06:31:07 +03:00
|
|
|
'TestIntegerRange',
|
2014-09-15 10:36:18 +04:00
|
|
|
'TestJSONWriter',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestMacroArgs',
|
|
|
|
'TestMacroForEach',
|
2015-09-04 23:33:10 +03:00
|
|
|
'TestMathAlgorithms',
|
2014-08-22 11:43:02 +04:00
|
|
|
'TestMaybe',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestPair',
|
2014-07-30 17:59:52 +04:00
|
|
|
'TestRefPtr',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestRollingMean',
|
2015-07-04 00:20:55 +03:00
|
|
|
'TestScopeExit',
|
2014-12-09 01:45:13 +03:00
|
|
|
'TestSegmentedVector',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestSHA1',
|
2014-07-31 02:53:40 +04:00
|
|
|
'TestSplayTree',
|
2015-05-22 05:33:39 +03:00
|
|
|
'TestTemplateLib',
|
2015-05-22 04:14:25 +03:00
|
|
|
'TestTuple',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestTypedEnum',
|
|
|
|
'TestTypeTraits',
|
|
|
|
'TestUniquePtr',
|
2015-06-30 20:01:00 +03:00
|
|
|
'TestVariant',
|
2014-11-27 00:01:19 +03:00
|
|
|
'TestVector',
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestWeakPtr',
|
2014-09-03 09:10:54 +04:00
|
|
|
])
|
2013-07-24 11:23:06 +04:00
|
|
|
|
|
|
|
if not CONFIG['MOZ_ASAN']:
|
2014-09-03 09:10:54 +04:00
|
|
|
CppUnitTests([
|
2014-07-23 08:29:44 +04:00
|
|
|
'TestPoisonArea',
|
2014-09-03 09:10:54 +04:00
|
|
|
])
|
2013-11-27 17:55:07 +04:00
|
|
|
|
|
|
|
# Since we link directly with MFBT object files, define IMPL_MFBT
|
|
|
|
DEFINES['IMPL_MFBT'] = True
|
2014-03-05 04:39:06 +04:00
|
|
|
|
|
|
|
DISABLE_STL_WRAPPING = True
|
2014-06-14 23:47:01 +04:00
|
|
|
|
|
|
|
if CONFIG['_MSC_VER']:
|
|
|
|
CXXFLAGS += [
|
|
|
|
'-wd4275', # non dll-interface class used as base for dll-interface class
|
|
|
|
'-wd4530', # C++ exception handler used, but unwind semantics are not enabled
|
|
|
|
]
|
|
|
|
|
2014-07-23 08:30:52 +04:00
|
|
|
USE_LIBS += [
|
|
|
|
'mfbt',
|
|
|
|
]
|