summaryrefslogtreecommitdiffstats
path: root/cc/cc.gyp
blob: 95ac454feaa2ff68ee034e704c7301dca5800364 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
# 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_source_files': [
      'BitmapCanvasLayerTextureUpdater.cpp',
      'BitmapCanvasLayerTextureUpdater.h',
      'BitmapSkPictureCanvasLayerTextureUpdater.cpp',
      'BitmapSkPictureCanvasLayerTextureUpdater.h',
      'CCActiveAnimation.cpp',
      'CCActiveAnimation.h',
      'CCAppendQuadsData.h',
      'CCAnimationCurve.cpp',
      'CCAnimationCurve.h',
      'CCAnimationEvents.h',
      'CCCheckerboardDrawQuad.cpp',
      'CCCheckerboardDrawQuad.h',
      'CCCompletionEvent.h',
      'CCDamageTracker.cpp',
      'CCDamageTracker.h',
      'CCDebugBorderDrawQuad.cpp',
      'CCDebugBorderDrawQuad.h',
      'CCDebugRectHistory.cpp',
      'CCDebugRectHistory.h',
      'CCDelayBasedTimeSource.cpp',
      'CCDelayBasedTimeSource.h',
      'CCDirectRenderer.cpp',
      'CCDirectRenderer.h',
      'CCDrawQuad.cpp',
      'CCDrawQuad.h',
      'CCFontAtlas.cpp',
      'CCFontAtlas.h',
      'CCFrameRateController.cpp',
      'CCFrameRateController.h',
      'CCFrameRateCounter.cpp',
      'CCFrameRateCounter.h',
      'CCGraphicsContext.h',
      'CCHeadsUpDisplayLayerImpl.cpp',
      'CCHeadsUpDisplayLayerImpl.h',
      'CCIOSurfaceDrawQuad.cpp',
      'CCIOSurfaceDrawQuad.h',
      'CCIOSurfaceLayerImpl.cpp',
      'CCIOSurfaceLayerImpl.h',
      'CCInputHandler.h',
      'CCKeyframedAnimationCurve.cpp',
      'CCKeyframedAnimationCurve.h',
      'CCLayerAnimationController.cpp',
      'CCLayerAnimationController.h',
      'CCLayerImpl.cpp',
      'CCLayerImpl.h',
      'CCLayerIterator.cpp',
      'CCLayerIterator.h',
      'CCLayerQuad.cpp',
      'CCLayerQuad.h',
      'CCLayerSorter.cpp',
      'CCLayerSorter.h',
      'CCLayerTilingData.cpp',
      'CCLayerTilingData.h',
      'CCLayerTreeHost.cpp',
      'CCLayerTreeHost.h',
      'CCLayerTreeHostClient.h',
      'CCLayerTreeHostCommon.cpp',
      'CCLayerTreeHostCommon.h',
      'CCLayerTreeHostImpl.cpp',
      'CCLayerTreeHostImpl.h',
      'CCMathUtil.cpp',
      'CCMathUtil.h',
      'CCOcclusionTracker.cpp',
      'CCOcclusionTracker.h',
      'CCOverdrawMetrics.cpp',
      'CCOverdrawMetrics.h',
      'CCPageScaleAnimation.cpp',
      'CCPageScaleAnimation.h',
      'CCPrioritizedTexture.cpp',
      'CCPrioritizedTexture.h',
      'CCPrioritizedTextureManager.cpp',
      'CCPrioritizedTextureManager.h',
      'CCPriorityCalculator.cpp',
      'CCPriorityCalculator.h',
      'CCProxy.cpp',
      'CCProxy.h',
      'CCQuadCuller.cpp',
      'CCQuadCuller.h',
      'CCQuadSink.h',
      'CCRenderPass.cpp',
      'CCRenderPass.h',
      'CCRenderPassDrawQuad.cpp',
      'CCRenderPassDrawQuad.h',
      'CCRenderPassSink.h',
      'CCRenderSurface.cpp',
      'CCRenderSurface.h',
      'CCRenderSurfaceFilters.cpp',
      'CCRenderSurfaceFilters.h',
      'CCRenderer.h',
      'CCRendererGL.cpp',
      'CCRendererGL.h',
      'CCRenderingStats.h',
      'CCResourceProvider.cpp',
      'CCResourceProvider.h',
      'CCScheduler.cpp',
      'CCScheduler.h',
      'CCSchedulerStateMachine.cpp',
      'CCSchedulerStateMachine.h',
      'CCScopedTexture.cpp',
      'CCScopedTexture.h',
      'CCScopedThreadProxy.h',
      'CCScrollbarAnimationController.cpp',
      'CCScrollbarAnimationController.h',
      'CCScrollbarAnimationControllerLinearFade.cpp',
      'CCScrollbarAnimationControllerLinearFade.h',
      'CCScrollbarLayerImpl.cpp',
      'CCScrollbarLayerImpl.h',
      'CCScrollbarGeometryFixedThumb.cpp',
      'CCScrollbarGeometryFixedThumb.h',
      'CCScrollbarGeometryStub.cpp',
      'CCScrollbarGeometryStub.h',
      'CCSettings.cpp',
      'CCSettings.h',
      'CCSharedQuadState.cpp',
      'CCSharedQuadState.h',
      'CCSingleThreadProxy.cpp',
      'CCSingleThreadProxy.h',
      'CCSolidColorDrawQuad.cpp',
      'CCSolidColorDrawQuad.h',
      'CCSolidColorLayerImpl.cpp',
      'CCSolidColorLayerImpl.h',
      'CCStreamVideoDrawQuad.cpp',
      'CCStreamVideoDrawQuad.h',
      'CCTexture.cpp',
      'CCTexture.h',
      'CCTextureDrawQuad.cpp',
      'CCTextureDrawQuad.h',
      'CCTextureLayerImpl.cpp',
      'CCTextureLayerImpl.h',
      'CCTextureUpdateController.cpp',
      'CCTextureUpdateController.h',
      'CCTextureUpdateQueue.cpp',
      'CCTextureUpdateQueue.h',
      'CCThread.h',
      'CCThreadProxy.cpp',
      'CCThreadProxy.h',
      'CCThreadTask.h',
      'CCTileDrawQuad.cpp',
      'CCTileDrawQuad.h',
      'CCTiledLayerImpl.cpp',
      'CCTiledLayerImpl.h',
      'CCTimeSource.h',
      'CCTimer.cpp',
      'CCTimer.h',
      'CCTimingFunction.cpp',
      'CCTimingFunction.h',
      'CCVideoLayerImpl.cpp',
      'CCVideoLayerImpl.h',
      'CCYUVVideoDrawQuad.cpp',
      'CCYUVVideoDrawQuad.h',
      'CanvasLayerTextureUpdater.cpp',
      'CanvasLayerTextureUpdater.h',
      'ContentLayerChromium.cpp',
      'ContentLayerChromium.h',
      'ContentLayerChromiumClient.h',
      'FrameBufferSkPictureCanvasLayerTextureUpdater.cpp',
      'FrameBufferSkPictureCanvasLayerTextureUpdater.h',
      'GeometryBinding.cpp',
      'GeometryBinding.h',
      'HeadsUpDisplayLayerChromium.cpp',
      'HeadsUpDisplayLayerChromium.h',
      'IOSurfaceLayerChromium.cpp',
      'IOSurfaceLayerChromium.h',
      'ImageLayerChromium.cpp',
      'ImageLayerChromium.h',
      'LayerChromium.cpp',
      'LayerChromium.h',
      'LayerPainterChromium.h',
      'LayerTextureSubImage.cpp',
      'LayerTextureSubImage.h',
      'LayerTextureUpdater.h',
      'PlatformColor.h',
      'ProgramBinding.cpp',
      'ProgramBinding.h',
      'RateLimiter.cpp',
      'RateLimiter.h',
      'RenderSurfaceChromium.cpp',
      'RenderSurfaceChromium.h',
      'ScrollbarLayerChromium.cpp',
      'ScrollbarLayerChromium.h',
      'ShaderChromium.cpp',
      'ShaderChromium.h',
      'SkPictureCanvasLayerTextureUpdater.cpp',
      'SkPictureCanvasLayerTextureUpdater.h',
      'SolidColorLayerChromium.cpp',
      'SolidColorLayerChromium.h',
      'TextureCopier.cpp',
      'TextureCopier.h',
      'TextureLayerChromium.cpp',
      'TextureLayerChromium.h',
      'TextureLayerChromiumClient.h',
      'TextureUploader.h',
      'ThrottledTextureUploader.cpp',
      'ThrottledTextureUploader.h',
      'UnthrottledTextureUploader.h',
      'TiledLayerChromium.cpp',
      'TiledLayerChromium.h',
      'TreeSynchronizer.cpp',
      'TreeSynchronizer.h',
      'VideoLayerChromium.cpp',
      'VideoLayerChromium.h',
    ],
  },
  'targets': [
    {
      'target_name': 'cc',
      'type': 'static_library',
      'includes': [
        'cc.gypi',
      ],
      'conditions': [
        ['use_libcc_for_compositor==1', {
          'dependencies': [
            '<(DEPTH)/base/base.gyp:base',
            '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
            '<(DEPTH)/skia/skia.gyp:skia',
            '<(DEPTH)/ui/gl/gl.gyp:gl',
            '<(DEPTH)/ui/ui.gyp:ui',
            '<(webkit_src_dir)/Source/WTF/WTF.gyp/WTF.gyp:wtf',
            '<(webkit_src_dir)/Source/WebCore/WebCore.gyp/WebCore.gyp:webcore_platform_geometry',
            '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit_wtf_support',
          ],
          'defines': [
            'WTF_USE_ACCELERATED_COMPOSITING=1',
          ],
          'include_dirs': [
            '<(webkit_src_dir)/Source/Platform/chromium',
            '<@(cc_stubs_dirs)',
          ],
          'sources': [
            '<@(cc_source_files)',
            'stubs/Extensions3D.h',
            'stubs/Extensions3DChromium.h',
            'stubs/FloatPoint.h',
            'stubs/FloatPoint3D.h',
            'stubs/FloatQuad.h',
            'stubs/FloatRect.h',
            'stubs/FloatSize.h',
            'stubs/GraphicsContext3D.h',
            'stubs/GraphicsTypes3D.h',
            'stubs/IntPoint.h',
            'stubs/IntRect.h',
            'stubs/IntSize.h',
            'stubs/NotImplemented.h',
            'stubs/Region.h',
            'stubs/SkiaUtils.h',
            'stubs/TilingData.h',
            'stubs/TraceEvent.h',
            'stubs/UnitBezier.h',
          ],
        }],
      ],
    },
  ],
}