2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-03-11 22:47:40 +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/.
|
|
|
|
|
2013-11-28 23:10:33 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-24 03:05:43 +04:00
|
|
|
'gfxSurfaceRefCountTest.cpp',
|
2017-02-05 20:50:00 +03:00
|
|
|
'MockWidget.cpp',
|
2016-10-04 02:35:52 +03:00
|
|
|
'PolygonTestUtils.cpp',
|
2015-09-28 14:49:33 +03:00
|
|
|
'TestArena.cpp',
|
2016-03-24 04:20:41 +03:00
|
|
|
'TestArrayView.cpp',
|
2016-08-11 00:30:29 +03:00
|
|
|
'TestBSPTree.cpp',
|
2013-10-24 02:59:50 +04:00
|
|
|
'TestBufferRotation.cpp',
|
|
|
|
'TestColorNames.cpp',
|
2015-05-15 17:42:10 +03:00
|
|
|
'TestGfxWidgets.cpp',
|
2015-09-28 14:49:43 +03:00
|
|
|
'TestJobScheduler.cpp',
|
2013-10-24 02:59:50 +04:00
|
|
|
'TestLayers.cpp',
|
2019-09-06 20:12:06 +03:00
|
|
|
'TestMatrix.cpp',
|
2015-06-04 21:34:46 +03:00
|
|
|
'TestMoz2D.cpp',
|
2016-10-04 02:35:52 +03:00
|
|
|
'TestPolygon.cpp',
|
2015-06-05 02:30:52 +03:00
|
|
|
'TestQcms.cpp',
|
2013-10-24 02:59:50 +04:00
|
|
|
'TestRegion.cpp',
|
2014-01-10 13:42:04 +04:00
|
|
|
'TestSkipChars.cpp',
|
2017-02-12 17:28:43 +03:00
|
|
|
'TestSwizzle.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'TestTextures.cpp',
|
2015-11-16 21:54:12 +03:00
|
|
|
'TestTreeTraversal.cpp',
|
2013-06-22 18:33:31 +04:00
|
|
|
]
|
|
|
|
|
2019-04-23 03:21:37 +03:00
|
|
|
# skip the test on windows10-aarch64 due to perma-crash - bug 1544961
|
2019-04-18 02:12:19 +03:00
|
|
|
if not(CONFIG['OS_TARGET'] == 'WINNT' and CONFIG['CPU_ARCH'] == 'aarch64'):
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'TestVsync.cpp',
|
|
|
|
]
|
|
|
|
|
2019-04-08 23:58:21 +03:00
|
|
|
if CONFIG['OS_TARGET'] != 'Android':
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'TestCompositor.cpp',
|
|
|
|
'TestRect.cpp',
|
|
|
|
'TestTextureCompatibility.cpp',
|
|
|
|
]
|
|
|
|
|
2015-06-04 21:34:46 +03:00
|
|
|
UNIFIED_SOURCES += [ '/gfx/2d/unittest/%s' % p for p in [
|
|
|
|
'TestBase.cpp',
|
|
|
|
'TestBugs.cpp',
|
|
|
|
'TestCairo.cpp',
|
|
|
|
'TestPoint.cpp',
|
|
|
|
'TestScaling.cpp',
|
|
|
|
]]
|
2013-08-22 10:56:00 +04:00
|
|
|
|
2017-07-26 23:09:18 +03:00
|
|
|
# not UNIFIED_SOURCES because layout_common_table_test.cc has classes
|
|
|
|
# in an anonymous namespace which result in a GCC error when used in
|
|
|
|
# tests (e g. "error: 'ScriptListTableTest_TestSuccess_Test' has a field
|
|
|
|
# 'ScriptListTableTest_TestSuccess_Test::<anonymous>' whose type uses
|
|
|
|
# the anonymous namespace").
|
|
|
|
SOURCES += [ '/gfx/ots/tests/%s' % p for p in [
|
2019-09-13 12:47:50 +03:00
|
|
|
'cff_charstring_test.cc',
|
2017-07-26 23:09:18 +03:00
|
|
|
'layout_common_table_test.cc',
|
|
|
|
]]
|
|
|
|
|
2019-06-12 22:50:55 +03:00
|
|
|
# ICC profiles used for verifying QCMS transformations. The copyright
|
|
|
|
# notice embedded in the profiles should be reviewed to ensure there are
|
|
|
|
# no known restrictions on distribution.
|
|
|
|
TEST_HARNESS_FILES.gtest += [
|
|
|
|
'icc_profiles/lcms_samsung_syncmaster.icc',
|
|
|
|
'icc_profiles/lcms_thinkpad_w540.icc',
|
|
|
|
]
|
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-28 18:10:38 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/gfx/2d',
|
|
|
|
'/gfx/2d/unittest',
|
2017-02-13 19:51:00 +03:00
|
|
|
'/gfx/config',
|
2013-11-28 18:10:38 +04:00
|
|
|
'/gfx/layers',
|
2017-07-26 23:09:18 +03:00
|
|
|
'/gfx/ots/src',
|
2015-06-05 02:30:52 +03:00
|
|
|
'/gfx/qcms',
|
2013-11-28 18:10:38 +04:00
|
|
|
]
|
|
|
|
|
2014-03-31 15:21:38 +04:00
|
|
|
FINAL_LIBRARY = 'xul-gtest'
|
2014-07-24 19:55:33 +04:00
|
|
|
|
|
|
|
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
2016-05-11 10:00:01 +03:00
|
|
|
|
2017-12-08 00:09:15 +03:00
|
|
|
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
2016-05-11 10:00:01 +03:00
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|