2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 12:47:17 -08: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-02 22:10:54 -07:00
|
|
|
CppUnitTests([
|
2014-07-22 21:29:44 -07:00
|
|
|
'TestArrayUtils',
|
|
|
|
'TestAtomics',
|
|
|
|
'TestBinarySearch',
|
|
|
|
'TestBloomFilter',
|
|
|
|
'TestCasting',
|
|
|
|
'TestCeilingFloor',
|
|
|
|
'TestCheckedInt',
|
|
|
|
'TestCountPopulation',
|
|
|
|
'TestCountZeroes',
|
|
|
|
'TestEndian',
|
|
|
|
'TestEnumSet',
|
|
|
|
'TestFloatingPoint',
|
|
|
|
'TestIntegerPrintfMacros',
|
2014-09-14 23:36:18 -07:00
|
|
|
'TestJSONWriter',
|
2014-07-22 21:29:44 -07:00
|
|
|
'TestMacroArgs',
|
|
|
|
'TestMacroForEach',
|
2014-08-22 00:43:02 -07:00
|
|
|
'TestMaybe',
|
2014-07-22 21:29:44 -07:00
|
|
|
'TestPair',
|
2014-07-30 06:59:52 -07:00
|
|
|
'TestRefPtr',
|
2014-07-22 21:29:44 -07:00
|
|
|
'TestRollingMean',
|
2014-12-08 14:45:13 -08:00
|
|
|
'TestSegmentedVector',
|
2014-07-22 21:29:44 -07:00
|
|
|
'TestSHA1',
|
2014-07-30 15:53:40 -07:00
|
|
|
'TestSplayTree',
|
2014-07-22 21:29:44 -07:00
|
|
|
'TestTypedEnum',
|
|
|
|
'TestTypeTraits',
|
|
|
|
'TestUniquePtr',
|
2014-11-26 13:01:19 -08:00
|
|
|
'TestVector',
|
2014-07-22 21:29:44 -07:00
|
|
|
'TestWeakPtr',
|
2014-09-02 22:10:54 -07:00
|
|
|
])
|
2013-07-24 00:23:06 -07:00
|
|
|
|
|
|
|
if not CONFIG['MOZ_ASAN']:
|
2014-09-02 22:10:54 -07:00
|
|
|
CppUnitTests([
|
2014-07-22 21:29:44 -07:00
|
|
|
'TestPoisonArea',
|
2014-09-02 22:10:54 -07:00
|
|
|
])
|
2013-11-27 05:55:07 -08:00
|
|
|
|
|
|
|
# Since we link directly with MFBT object files, define IMPL_MFBT
|
|
|
|
DEFINES['IMPL_MFBT'] = True
|
2014-03-04 16:39:06 -08:00
|
|
|
|
|
|
|
DISABLE_STL_WRAPPING = True
|
2014-06-14 12:47:01 -07: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
|
|
|
|
]
|
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|
2014-07-22 21:30:52 -07:00
|
|
|
|
|
|
|
USE_LIBS += [
|
|
|
|
'mfbt',
|
|
|
|
]
|