blob: 8b724e7d49138a8002dbdf4d693d3021d1013333 [file] [log] [blame]
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 0,
'use_libcc_for_compositor%': 0,
'cc_tests_source_files': [
'hash_pair_unittest.cc',
'CCActiveAnimationTest.cpp',
'CCDamageTrackerTest.cpp',
'CCDelayBasedTimeSourceTest.cpp',
'CCDrawQuadTest.cpp',
'CCDelegatedRendererLayerImplTest.cpp',
'CCFrameRateControllerTest.cpp',
'CCHeadsUpDisplayTest.cpp',
'CCKeyframedAnimationCurveTest.cpp',
'CCLayerAnimationControllerTest.cpp',
'CCLayerImplTest.cpp',
'CCLayerIteratorTest.cpp',
'CCLayerQuadTest.cpp',
'CCLayerSorterTest.cpp',
'CCLayerTreeHostCommonTest.cpp',
'CCLayerTreeHostImplTest.cpp',
'CCLayerTreeHostTest.cpp',
'CCMathUtilTest.cpp',
'CCOcclusionTrackerTest.cpp',
'CCPrioritizedTextureTest.cpp',
'CCQuadCullerTest.cpp',
'CCRendererSoftwareTest.cpp',
'CCRenderPassTest.cpp',
'CCRenderSurfaceFiltersTest.cpp',
'CCRenderSurfaceTest.cpp',
'CCRendererGLTest.cpp',
'CCResourceProviderTest.cpp',
'CCSchedulerStateMachineTest.cpp',
'CCSchedulerTest.cpp',
'CCScopedTextureTest.cpp',
'CCScrollbarAnimationControllerLinearFadeTest.cpp',
'CCSolidColorLayerImplTest.cpp',
'CCTextureUpdateControllerTest.cpp',
'CCThreadTaskTest.cpp',
'CCThreadedTest.cpp',
'CCThreadedTest.h',
'CCTiledLayerImplTest.cpp',
'CCTimerTest.cpp',
'ContentLayerChromiumTest.cpp',
'FloatQuadTest.cpp',
'LayerChromiumTest.cpp',
'ScrollbarLayerChromiumTest.cpp',
'TextureCopierTest.cpp',
'TextureLayerChromiumTest.cpp',
'ThrottledTextureUploaderTest.cpp',
'TiledLayerChromiumTest.cpp',
'TreeSynchronizerTest.cpp',
],
'cc_tests_support_files': [
'test/CCAnimationTestCommon.cpp',
'test/CCAnimationTestCommon.h',
'test/CCGeometryTestUtils.cpp',
'test/CCGeometryTestUtils.h',
'test/CCLayerTestCommon.cpp',
'test/CCLayerTestCommon.h',
'test/CCOcclusionTrackerTestCommon.h',
'test/CCSchedulerTestCommon.cpp',
'test/CCSchedulerTestCommon.h',
'test/CCRenderPassTestCommon.h',
'test/CCTestCommon.h',
'test/CCTiledLayerTestCommon.cpp',
'test/CCTiledLayerTestCommon.h',
'test/CompositorFakeWebGraphicsContext3D.h',
'test/FakeCCGraphicsContext.h',
'test/FakeCCLayerTreeHostClient.cpp',
'test/FakeCCLayerTreeHostClient.h',
'test/FakeGraphicsContext3DTest.cpp',
'test/FakeWebCompositorSoftwareOutputDevice.h',
'test/FakeWebCompositorOutputSurface.h',
'test/FakeWebGraphicsContext3D.h',
'test/FakeWebScrollbarThemeGeometry.h',
'test/MockCCQuadCuller.cpp',
'test/MockCCQuadCuller.h',
'test/WebCompositorInitializer.h',
],
},
'targets': [
{
'target_name': 'cc_unittests',
'type': 'executable',
'dependencies': [
'../base/base.gyp:test_support_base',
'../testing/gtest.gyp:gtest',
'../testing/gmock.gyp:gmock',
],
'sources': [
'test/run_all_unittests.cc',
],
'conditions': [
['use_libcc_for_compositor==1', {
'dependencies': [
'../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf',
'../skia/skia.gyp:skia',
'cc.gyp:cc',
'cc_test_support',
],
'defines': [
'USE_LIBCC_FOR_COMPOSITOR',
'WTF_USE_ACCELERATED_COMPOSITING=1',
],
'include_dirs': [
'stubs',
'test',
'.',
'../third_party/WebKit/Source/Platform/chromium',
],
'sources': [
'<@(cc_tests_source_files)',
],
}],
],
},
],
'conditions': [
['use_libcc_for_compositor==1', {
'targets': [
{
'target_name': 'cc_test_support',
'type': 'static_library',
'defines': [
'WTF_USE_ACCELERATED_COMPOSITING=1',
],
'include_dirs': [
'stubs',
'test',
'.',
'..',
'../third_party/WebKit/Source/Platform/chromium',
],
'dependencies': [
'../ui/gl/gl.gyp:gl',
'../testing/gtest.gyp:gtest',
'../testing/gmock.gyp:gmock',
'../skia/skia.gyp:skia',
'../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf',
'../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit_wtf_support',
'../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
'../webkit/compositor_bindings/compositor_bindings.gyp:webkit_compositor_support',
'../webkit/support/webkit_support.gyp:glue',
],
'sources': [
'<@(cc_tests_support_files)',
'test/test_webkit_platform.cc',
'test/test_webkit_platform.h',
],
},
],
}],
],
}