OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 0, | 7 'chromium_code': 0, |
8 'use_libcc_for_compositor%': 0, | 8 'use_libcc_for_compositor%': 0, |
9 'cc_tests_source_files': [ | 9 'cc_tests_source_files': [ |
10 'CCActiveAnimationTest.cpp', | 10 'CCActiveAnimationTest.cpp', |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 'test/CompositorFakeWebGraphicsContext3D.h', | 56 'test/CompositorFakeWebGraphicsContext3D.h', |
57 'test/FakeCCGraphicsContext.h', | 57 'test/FakeCCGraphicsContext.h', |
58 'test/FakeCCLayerTreeHostClient.h', | 58 'test/FakeCCLayerTreeHostClient.h', |
59 'test/FakeGraphicsContext3DTest.cpp', | 59 'test/FakeGraphicsContext3DTest.cpp', |
60 'test/FakeWebCompositorOutputSurface.h', | 60 'test/FakeWebCompositorOutputSurface.h', |
61 'test/FakeWebGraphicsContext3D.h', | 61 'test/FakeWebGraphicsContext3D.h', |
62 'test/FakeWebScrollbarThemeGeometry.h', | 62 'test/FakeWebScrollbarThemeGeometry.h', |
63 'test/MockCCQuadCuller.h', | 63 'test/MockCCQuadCuller.h', |
64 ], | 64 ], |
65 }, | 65 }, |
66 'conditions': [ | 66 'targets': [ |
67 ['use_libcc_for_compositor==1 and component!="shared_library"', { | 67 { |
68 'targets': [ | 68 'target_name': 'cc_unittests', |
69 { | 69 'type': 'executable', |
70 'target_name': 'cc_unittests', | 70 'dependencies': [ |
71 'type': 'executable', | 71 '../base/base.gyp:test_support_base', |
| 72 '../testing/gtest.gyp:gtest', |
| 73 '../testing/gmock.gyp:gmock', |
| 74 ], |
| 75 'sources': [ |
| 76 'test/run_all_unittests.cc', |
| 77 ], |
| 78 'conditions': [ |
| 79 ['use_libcc_for_compositor==1 and component!="shared_library"', { |
72 'dependencies': [ | 80 'dependencies': [ |
73 '../base/base.gyp:test_support_base', | |
74 '../testing/gtest.gyp:gtest', | |
75 '../testing/gmock.gyp:gmock', | |
76 '../webkit/support/webkit_support.gyp:webkit_support', | |
77 '../skia/skia.gyp:skia', | 81 '../skia/skia.gyp:skia', |
78 # We have to depend on WTF directly to pick up the correct defines f
or WTF headers - for instance USE_SYSTEM_MALLOC. | 82 # We have to depend on WTF directly to pick up the correct defines f
or WTF headers - for instance USE_SYSTEM_MALLOC. |
79 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', | 83 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', |
80 '../third_party/WebKit/Source/Platform/Platform.gyp/Platform.gyp:web
kit_platform', | 84 '../third_party/WebKit/Source/Platform/Platform.gyp/Platform.gyp:web
kit_platform', |
| 85 '../webkit/support/webkit_support.gyp:webkit_support', |
81 'cc.gyp:cc', | 86 'cc.gyp:cc', |
82 'cc_test_support', | 87 'cc_test_support', |
83 ], | 88 ], |
84 'defines': [ | 89 'defines': [ |
| 90 'USE_LIBCC_FOR_COMPOSITOR', |
85 'WTF_USE_ACCELERATED_COMPOSITING=1', | 91 'WTF_USE_ACCELERATED_COMPOSITING=1', |
86 ], | 92 ], |
87 'include_dirs': [ | 93 'include_dirs': [ |
88 'stubs', | 94 'stubs', |
89 'test', | 95 'test', |
90 '.', | 96 '.', |
91 ], | 97 ], |
92 'sources': [ | 98 'sources': [ |
93 '<@(cc_tests_source_files)', | 99 '<@(cc_tests_source_files)', |
94 'test/run_all_unittests.cc', | |
95 ], | 100 ], |
96 }, | 101 }], |
| 102 ], |
| 103 }, |
| 104 ], |
| 105 'conditions': [ |
| 106 ['use_libcc_for_compositor==1 and component!="shared_library"', { |
| 107 'targets': [ |
97 { | 108 { |
98 'target_name': 'cc_test_support', | 109 'target_name': 'cc_test_support', |
99 'type': 'static_library', | 110 'type': 'static_library', |
100 'defines': [ | 111 'defines': [ |
101 'WTF_USE_ACCELERATED_COMPOSITING=1', | 112 'WTF_USE_ACCELERATED_COMPOSITING=1', |
102 ], | 113 ], |
103 'include_dirs': [ | 114 'include_dirs': [ |
104 'stubs', | 115 'stubs', |
105 'test', | 116 'test', |
106 '.', | 117 '.', |
107 '..', | 118 '..', |
108 ], | 119 ], |
109 'dependencies': [ | 120 'dependencies': [ |
110 '../ui/gl/gl.gyp:gl', | 121 '../ui/gl/gl.gyp:gl', |
111 '../testing/gtest.gyp:gtest', | 122 '../testing/gtest.gyp:gtest', |
112 '../testing/gmock.gyp:gmock', | 123 '../testing/gmock.gyp:gmock', |
113 '../skia/skia.gyp:skia', | 124 '../skia/skia.gyp:skia', |
114 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', | 125 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', |
115 '../third_party/WebKit/Source/Platform/Platform.gyp/Platform.gyp:web
kit_platform', | 126 '../third_party/WebKit/Source/Platform/Platform.gyp/Platform.gyp:web
kit_platform', |
116 ], | 127 ], |
117 'sources': [ | 128 'sources': [ |
118 '<@(cc_tests_support_files)', | 129 '<@(cc_tests_support_files)', |
119 ], | 130 ], |
120 }, | 131 }, |
121 ], | 132 ], |
122 }, { | |
123 'targets': [ | |
124 { | |
125 'target_name': 'cc_unittests', | |
126 'type': 'none', | |
127 } | |
128 ] | |
129 }], | 133 }], |
130 ], | 134 ], |
131 } | 135 } |
132 | 136 |
OLD | NEW |