diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-25 00:09:14 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-25 00:09:14 +0000 |
commit | 94f206c1c75eb8cc4df2225a1c5c9c7b6fc96679 (patch) | |
tree | 530f51d5c75459999e4adf2a6895884ce1c15ce0 /cc/cc_tests.gyp | |
parent | 56235947f2b023fc63cfad692c56df4e92199848 (diff) | |
download | chromium_src-94f206c1c75eb8cc4df2225a1c5c9c7b6fc96679.zip chromium_src-94f206c1c75eb8cc4df2225a1c5c9c7b6fc96679.tar.gz chromium_src-94f206c1c75eb8cc4df2225a1c5c9c7b6fc96679.tar.bz2 |
Here are gyp targets and stubs for compiling libcc and the webkit_compositor bindings in chromium. Everything is guarded behind the off-by-default use_libcc_for_compositor gyp variable. I haven't included the actual code here, but there are scripts to sync. I plan to land + manually sync the code into place until we're ready to flip the gyp switch.
Snapshot from r126652
BUG=
Review URL: https://chromiumcodereview.appspot.com/10828381
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153354 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/cc_tests.gyp')
-rw-r--r-- | cc/cc_tests.gyp | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/cc/cc_tests.gyp b/cc/cc_tests.gyp new file mode 100644 index 0000000..5e873f8 --- /dev/null +++ b/cc/cc_tests.gyp @@ -0,0 +1,105 @@ +# 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': [ + 'CCActiveAnimationTest.cpp', + 'CCDamageTrackerTest.cpp', + 'CCDelayBasedTimeSourceTest.cpp', + 'CCFrameRateControllerTest.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', + 'CCRenderSurfaceFiltersTest.cpp', + 'CCRenderSurfaceTest.cpp', + 'CCResourceProviderTest.cpp', + 'CCSchedulerStateMachineTest.cpp', + 'CCSchedulerTest.cpp', + 'CCSchedulerTest.cpp', + 'CCScopedTextureTest.cpp', + 'CCScrollbarAnimationControllerLinearFadeTest.cpp', + 'CCSolidColorLayerImplTest.cpp', + 'CCTextureUpdateControllerTest.cpp', + 'CCThreadTaskTest.cpp', + 'CCThreadedTest.cpp', + 'CCThreadedTest.h', + 'CCTiledLayerImplTest.cpp', + 'CCTimerTest.cpp', + 'test/CCAnimationTestCommon.cpp', + 'test/CCAnimationTestCommon.h', + 'test/CCLayerTestCommon.cpp', + 'test/CCLayerTestCommon.h', + 'test/CCLayerTreeTestCommon.h', + 'test/CCLayerTreeTestCommon.h', + 'test/CCOcclusionTrackerTestCommon.h', + 'test/CCSchedulerTestCommon.h', + 'test/CCSchedulerTestCommon.h', + 'test/CCTestCommon.h', + 'test/CCTiledLayerTestCommon.cpp', + 'test/CCTiledLayerTestCommon.h', + 'test/CompositorFakeWebGraphicsContext3D.h', + 'test/FakeCCGraphicsContext.h', + 'test/FakeCCLayerTreeHostClient.h', + 'test/FakeGraphicsContext3DTest.cpp', + 'test/FakeWebCompositorOutputSurface.h', + 'test/FakeWebGraphicsContext3D.h', + 'test/FakeWebScrollbarThemeGeometry.h', + 'test/MockCCQuadCuller.h', + ] + }, + 'conditions': [ + ['use_libcc_for_compositor==1 and component!="shared_library"', { + 'targets': [ + { + 'target_name': 'cc_unittests', + 'type': 'executable', + 'dependencies': [ + '<(DEPTH)/base/base.gyp:test_support_base', + '<(DEPTH)/testing/gtest.gyp:gtest', + '<(DEPTH)/testing/gmock.gyp:gmock', + '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_support', + '<(DEPTH)/skia/skia.gyp:skia', + # We have to depend on WTF directly to pick up the correct defines for WTF headers - for instance USE_SYSTEM_MALLOC. + '<(DEPTH)/third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', + '<(DEPTH)/third_party/WebKit/Source/Platform/Platform.gyp/Platform.gyp:webkit_platform', + 'cc.gyp:cc', + ], + 'defines': [ + 'WTF_USE_ACCELERATED_COMPOSITING=1', + ], + 'include_dirs': [ + 'stubs', + 'test', + '.', + ], + 'sources': [ + '<@(cc_tests_source_files)', + 'test/run_all_unittests.cc', + ], + }, + ], + }, { + 'targets': [ + { + 'target_name': 'cc_unittests', + 'type': 'none', + } + ] + }], + ], +} + |