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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 'test/CompositorFakeWebGraphicsContext3D.h', | 57 'test/CompositorFakeWebGraphicsContext3D.h', |
58 'test/FakeCCGraphicsContext.h', | 58 'test/FakeCCGraphicsContext.h', |
59 'test/FakeCCLayerTreeHostClient.h', | 59 'test/FakeCCLayerTreeHostClient.h', |
60 'test/FakeGraphicsContext3DTest.cpp', | 60 'test/FakeGraphicsContext3DTest.cpp', |
61 'test/FakeWebCompositorOutputSurface.h', | 61 'test/FakeWebCompositorOutputSurface.h', |
62 'test/FakeWebGraphicsContext3D.h', | 62 'test/FakeWebGraphicsContext3D.h', |
63 'test/FakeWebScrollbarThemeGeometry.h', | 63 'test/FakeWebScrollbarThemeGeometry.h', |
64 'test/MockCCQuadCuller.h', | 64 'test/MockCCQuadCuller.h', |
65 ], | 65 ], |
66 }, | 66 }, |
67 'conditions': [ | 67 'targets': [ |
68 ['use_libcc_for_compositor==1 and component!="shared_library"', { | 68 { |
69 'targets': [ | 69 'target_name': 'cc_unittests', |
70 { | 70 'type': 'executable', |
71 'target_name': 'cc_unittests', | 71 'dependencies': [ |
72 'type': 'executable', | 72 '../base/base.gyp:test_support_base', |
| 73 '../testing/gtest.gyp:gtest', |
| 74 '../testing/gmock.gyp:gmock', |
| 75 '../webkit/support/webkit_support.gyp:webkit_support', |
| 76 ], |
| 77 'sources': [ |
| 78 'test/run_all_unittests.cc', |
| 79 ], |
| 80 'conditions': [ |
| 81 ['use_libcc_for_compositor==1 and component!="shared_library"', { |
73 'dependencies': [ | 82 'dependencies': [ |
74 '../base/base.gyp:test_support_base', | |
75 '../testing/gtest.gyp:gtest', | |
76 '../testing/gmock.gyp:gmock', | |
77 '../webkit/support/webkit_support.gyp:webkit_support', | |
78 '../skia/skia.gyp:skia', | 83 '../skia/skia.gyp:skia', |
79 # We have to depend on WTF directly to pick up the correct defines f
or WTF headers - for instance USE_SYSTEM_MALLOC. | 84 # We have to depend on WTF directly to pick up the correct defines f
or WTF headers - for instance USE_SYSTEM_MALLOC. |
80 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', | 85 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', |
81 '../third_party/WebKit/Source/Platform/Platform.gyp/Platform.gyp:web
kit_platform', | 86 '../third_party/WebKit/Source/Platform/Platform.gyp/Platform.gyp:web
kit_platform', |
82 'cc.gyp:cc', | 87 'cc.gyp:cc', |
83 'cc_test_support', | 88 'cc_test_support', |
84 ], | 89 ], |
85 'defines': [ | 90 'defines': [ |
86 'WTF_USE_ACCELERATED_COMPOSITING=1', | 91 'WTF_USE_ACCELERATED_COMPOSITING=1', |
87 ], | 92 ], |
88 'include_dirs': [ | 93 'include_dirs': [ |
89 'stubs', | 94 'stubs', |
90 'test', | 95 'test', |
91 '.', | 96 '.', |
92 ], | 97 ], |
93 'sources': [ | 98 'sources': [ |
94 '<@(cc_tests_source_files)', | 99 '<@(cc_tests_source_files)', |
95 'test/run_all_unittests.cc', | |
96 ], | 100 ], |
97 }, | 101 }], |
| 102 ], |
| 103 }, |
| 104 ], |
| 105 'conditions': [ |
| 106 ['use_libcc_for_compositor==1 and component!="shared_library"', { |
| 107 'targets': [ |
98 { | 108 { |
99 'target_name': 'cc_test_support', | 109 'target_name': 'cc_test_support', |
100 'type': 'static_library', | 110 'type': 'static_library', |
101 'defines': [ | 111 'defines': [ |
102 'WTF_USE_ACCELERATED_COMPOSITING=1', | 112 'WTF_USE_ACCELERATED_COMPOSITING=1', |
103 ], | 113 ], |
104 'include_dirs': [ | 114 'include_dirs': [ |
105 'stubs', | 115 'stubs', |
106 'test', | 116 'test', |
107 '.', | 117 '.', |
108 '..', | 118 '..', |
109 ], | 119 ], |
110 'dependencies': [ | 120 'dependencies': [ |
111 '../ui/gl/gl.gyp:gl', | 121 '../ui/gl/gl.gyp:gl', |
112 '../testing/gtest.gyp:gtest', | 122 '../testing/gtest.gyp:gtest', |
113 '../testing/gmock.gyp:gmock', | 123 '../testing/gmock.gyp:gmock', |
114 '../skia/skia.gyp:skia', | 124 '../skia/skia.gyp:skia', |
115 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', | 125 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', |
116 '../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', |
117 ], | 127 ], |
118 'sources': [ | 128 'sources': [ |
119 '<@(cc_tests_support_files)', | 129 '<@(cc_tests_support_files)', |
120 ], | 130 ], |
121 }, | 131 }, |
122 ], | 132 ], |
123 }, { | |
124 'targets': [ | |
125 { | |
126 'target_name': 'cc_unittests', | |
127 'type': 'none', | |
128 } | |
129 ] | |
130 }], | 133 }], |
131 ], | 134 ], |
132 } | 135 } |
133 | 136 |
OLD | NEW |