Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Side by Side Diff: skia/SConscript

Issue 53121: Remove the checked-in scons configuration files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdch/using_sdch.scons ('k') | skia/using_skia.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 Import('env')
6
7 env = env.Clone()
8
9 env.Prepend(
10 CPPPATH = [
11 'include',
12 'include/corecg',
13 'corecg',
14 'sgl',
15 'picture',
16 '$CHROME_SRC_DIR',
17 ],
18 )
19
20 env.Append(
21 CPPDEFINES = [
22 'SK_BUILD_NO_IMAGE_ENCODE',
23 ],
24 )
25
26 if env.Bit('windows'):
27 env.Append(
28 CCFLAGS = [
29 '/TP',
30
31 '/wd4244',
32 '/wd4267',
33 '/wd4345',
34 '/wd4390',
35 '/wd4554',
36 '/wd4800',
37 ],
38 )
39 elif env.Bit('posix'):
40 env.Append(CCFLAGS = ['-Wno-unused'])
41
42 input_files = ChromeFileList([
43 # TODO(sgk):
44 # We're deliberately mis-indenting the MSVSFilter() calls here
45 # so we don't have to re-indent the file name entries when the
46 # MSVSFilter() calls go away in (favor of automated generation
47 # of the heirarchy).
48 MSVSFilter('Header files', [
49 'include/Sk1DPathEffect.h',
50 'include/Sk2DPathEffect.h',
51 'include/corecg/Sk64.h',
52 'include/SkAnimator.h',
53 'include/SkAnimatorView.h',
54 'include/SkApplication.h',
55 'include/SkAvoidXfermode.h',
56 'include/SkBGViewArtist.h',
57 'include/SkBitmap.h',
58 'include/SkBlurDrawLooper.h',
59 'include/SkBlurMaskFilter.h',
60 'include/SkBML_WXMLParser.h',
61 'include/SkBML_XMLParser.h',
62 'include/SkBorderView.h',
63 'include/SkBounder.h',
64 'include/corecg/SkBuffer.h',
65 'include/SkCamera.h',
66 'include/SkCanvas.h',
67 'include/corecg/SkChunkAlloc.h',
68 'include/SkColor.h',
69 'include/SkColorFilter.h',
70 'include/SkColorMatrix.h',
71 'include/SkColorPriv.h',
72 'include/SkColorShader.h',
73 'include/SkCornerPathEffect.h',
74 'include/SkCullPoints.h',
75 'include/SkDashPathEffect.h',
76 'include/SkDeque.h',
77 'include/SkDescriptor.h',
78 'include/SkDevice.h',
79 'include/SkDiscretePathEffect.h',
80 'include/SkDither.h',
81 'include/SkDOM.h',
82 'include/SkDraw.h',
83 'include/SkDrawExtraPathEffect.h',
84 'include/SkDrawFilter.h',
85 'include/SkDrawLooper.h',
86 'include/SkEmbossMaskFilter.h',
87 'include/corecg/SkEndian.h',
88 'include/SkEvent.h',
89 'include/SkEventSink.h',
90 'include/corecg/SkFDot6.h',
91 'include/corecg/SkFixed.h',
92 'include/SkFlattenable.h',
93 'include/SkFlipPixelRef.h',
94 'include/corecg/SkFloatBits.h',
95 'include/corecg/SkFloatingPoint.h',
96 'include/SkFontCodec.h',
97 'include/SkFontHost.h',
98 'include/SkGlobals.h',
99 'include/SkGradientShader.h',
100 'include/SkGraphics.h',
101 'include/SkImageDecoder.h',
102 'include/SkImageRef.h',
103 'include/SkImageView.h',
104 'include/corecg/SkInterpolator.h',
105 'include/SkJS.h',
106 'include/SkKernel33MaskFilter.h',
107 'include/SkKey.h',
108 'include/SkLayerDrawLooper.h',
109 'include/SkLayerRasterizer.h',
110 'include/SkMallocPixelRef.h',
111 'include/SkMask.h',
112 'include/SkMaskFilter.h',
113 'include/corecg/SkMath.h',
114 'include/corecg/SkMatrix.h',
115 'include/SkMetaData.h',
116 'include/SkMMapStream.h',
117 'include/SkMovie.h',
118 'include/SkNinePatch.h',
119 'include/SkOSFile.h',
120 'include/SkOSMenu.h',
121 'include/SkOSSound.h',
122 'include/SkOSWindow_Mac.h',
123 'include/SkOSWindow_Unix.h',
124 'include/SkOSWindow_Win.h',
125 'include/SkOSWindow_wxwidgets.h',
126 'include/SkPackBits.h',
127 'include/corecg/SkPageFlipper.h',
128 'include/SkPaint.h',
129 'include/SkPaintFlagsDrawFilter.h',
130 'include/SkParse.h',
131 'include/SkParsePaint.h',
132 'include/SkPath.h',
133 'include/SkPathEffect.h',
134 'include/SkPathMeasure.h',
135 'include/corecg/SkPerspIter.h',
136 'include/SkPicture.h',
137 'include/SkPixelRef.h',
138 'include/SkPixelXorXfermode.h',
139 'include/corecg/SkPoint.h',
140 'include/SkPorterDuff.h',
141 'include/corecg/SkPostConfig.h',
142 'include/corecg/SkPreConfig.h',
143 'include/SkProgressBarView.h',
144 'include/SkPtrRecorder.h',
145 'include/corecg/SkRandom.h',
146 'include/SkRasterizer.h',
147 'include/SkReader32.h',
148 'include/corecg/SkRect.h',
149 'include/SkRefCnt.h',
150 'include/corecg/SkRegion.h',
151 'include/corecg/SkScalar.h',
152 'include/corecg/SkScalarCompare.h',
153 'include/SkScalerContext.h',
154 'include/SkScrollBarView.h',
155 'include/SkShader.h',
156 'include/SkShaderExtras.h',
157 'include/SkStackViewLayout.h',
158 'include/SkStream.h',
159 'include/SkStream_Win.h',
160 'include/SkString.h',
161 'include/SkStroke.h',
162 'include/SkSVGAttribute.h',
163 'include/SkSVGBase.h',
164 'include/SkSVGPaintState.h',
165 'include/SkSVGParser.h',
166 'include/SkSVGTypes.h',
167 'include/SkSystemEventTypes.h',
168 'include/SkTDArray.h',
169 'include/SkTDict.h',
170 'include/SkTDStack.h',
171 'include/corecg/SkTemplates.h',
172 'include/SkTextBox.h',
173 'include/corecg/SkThread.h',
174 'include/corecg/SkThread_platform.h',
175 'include/SkTime.h',
176 'include/SkTransparentShader.h',
177 'include/corecg/SkTSearch.h',
178 'include/SkTypeface.h',
179 'include/corecg/SkTypes.h',
180 'include/SkUnitMapper.h',
181 'include/SkUnitMappers.h',
182 'include/SkUnPreMultiply.h',
183 'include/corecg/SkUserConfig.h',
184 'include/SkUtils.h',
185 'include/SkView.h',
186 'include/SkViewInflate.h',
187 'include/SkWidget.h',
188 'include/SkWidgetViews.h',
189 'include/SkWindow.h',
190 'include/SkWriter32.h',
191 'include/SkXfermode.h',
192 'include/SkXMLParser.h',
193 'include/SkXMLWriter.h',
194 ]),
195
196 MSVSFilter('corecg', [
197 'corecg/Sk64.cpp',
198 'corecg/SkBuffer.cpp',
199 'corecg/SkChunkAlloc.cpp',
200 'corecg/SkCordic.cpp',
201 'corecg/SkCordic.h',
202 'corecg/SkDebug.cpp',
203 'corecg/SkDebug_stdio.cpp',
204 'corecg/SkFloat.cpp',
205 'corecg/SkFloat.h',
206 'corecg/SkFloatBits.cpp',
207 'corecg/SkInterpolator.cpp',
208 'corecg/SkMath.cpp',
209 'corecg/SkMatrix.cpp',
210 'corecg/SkMemory_stdlib.cpp',
211 'corecg/SkPageFlipper.cpp',
212 'corecg/SkPoint.cpp',
213 'corecg/SkRect.cpp',
214 'corecg/SkRegion.cpp',
215 'corecg/SkRegionPriv.h',
216 'corecg/SkSinTable.h',
217 'corecg/SkTSort.h',
218 ]),
219
220 MSVSFilter('sgl', [
221 'sgl/SkAlphaRuns.cpp',
222 'sgl/SkAntiRun.h',
223 'sgl/SkAutoKern.h',
224 'sgl/SkBitmap.cpp',
225 'sgl/SkBitmapProcShader.cpp',
226 'sgl/SkBitmapProcShader.h',
227 'sgl/SkBitmapProcState.cpp',
228 'sgl/SkBitmapProcState.h',
229 'sgl/SkBitmapProcState_matrix.h',
230 'sgl/SkBitmapProcState_matrixProcs.cpp',
231 'sgl/SkBitmapSampler.cpp',
232 'sgl/SkBitmapSampler.h',
233 'sgl/SkBitmapSamplerTemplate.h',
234 'sgl/SkBitmapShader.cpp',
235 'sgl/SkBitmapShader.h',
236 'sgl/SkBitmapShader16BilerpTemplate.h',
237 'sgl/SkBitmapShaderTemplate.h',
238 'sgl/SkBlitBWMaskTemplate.h',
239 'sgl/SkBlitRow.h',
240 'sgl/SkBlitRow_D16.cpp',
241 'sgl/SkBlitRow_D4444.cpp',
242 'sgl/SkBlitter.cpp',
243 'sgl/SkBlitter.h',
244 'sgl/SkBlitter_4444.cpp',
245 'sgl/SkBlitter_A1.cpp',
246 'sgl/SkBlitter_A8.cpp',
247 'sgl/SkBlitter_ARGB32.cpp',
248 'sgl/SkBlitter_RGB16.cpp',
249 'sgl/SkBlitter_Sprite.cpp',
250 'sgl/SkCanvas.cpp',
251 'sgl/SkColor.cpp',
252 'sgl/SkColorFilter.cpp',
253 'sgl/SkColorTable.cpp',
254 'sgl/SkCoreBlitters.h',
255 'sgl/SkDeque.cpp',
256 'sgl/SkDevice.cpp',
257 'sgl/SkDither.cpp',
258 'sgl/SkDraw.cpp',
259 'sgl/SkDraw.h',
260 'sgl/SkEdge.cpp',
261 'sgl/SkEdge.h',
262 'sgl/SkFilterProc.cpp',
263 'sgl/SkFilterProc.h',
264 'sgl/SkFlattenable.cpp',
265 'sgl/SkFP.h',
266 'sgl/SkGeometry.cpp',
267 'sgl/SkGeometry.h',
268 'sgl/SkGlobals.cpp',
269 'sgl/SkGlyphCache.cpp',
270 'sgl/SkGlyphCache.h',
271 'sgl/SkGraphics.cpp',
272 'sgl/SkMask.cpp',
273 'sgl/SkMaskFilter.cpp',
274 'sgl/SkPackBits.cpp',
275 'sgl/SkPaint.cpp',
276 'sgl/SkPath.cpp',
277 'sgl/SkPathEffect.cpp',
278 'sgl/SkPathMeasure.cpp',
279 'sgl/SkPixelRef.cpp',
280 'sgl/SkProcSpriteBlitter.cpp',
281 'sgl/SkPtrRecorder.cpp',
282 'sgl/SkRasterizer.cpp',
283 'sgl/SkRefCnt.cpp',
284 'sgl/SkRegion_path.cpp',
285 'sgl/SkScalerContext.cpp',
286 'sgl/SkScan.cpp',
287 'sgl/SkScan.h',
288 'sgl/SkScan_Antihair.cpp',
289 'sgl/SkScan_AntiPath.cpp',
290 'sgl/SkScan_Hairline.cpp',
291 'sgl/SkScan_Path.cpp',
292 'sgl/SkScanPriv.h',
293 'sgl/SkShader.cpp',
294 'sgl/SkSpriteBlitter.h',
295 'sgl/SkSpriteBlitter_ARGB32.cpp',
296 'sgl/SkSpriteBlitter_RGB16.cpp',
297 'sgl/SkSpriteBlitterTemplate.h',
298 'sgl/SkString.cpp',
299 'sgl/SkStroke.cpp',
300 'sgl/SkStrokerPriv.cpp',
301 'sgl/SkStrokerPriv.h',
302 'sgl/SkTemplatesPriv.h',
303 'sgl/SkTSearch.cpp',
304 'sgl/SkTSort.h',
305 'sgl/SkTypeface_fake.cpp',
306 #'sgl/SkUnPreMultiply.cpp',
307 'sgl/SkUtils.cpp',
308 'sgl/SkWriter32.cpp',
309 'sgl/SkXfermode.cpp',
310 ]),
311
312 MSVSFilter('ports', [
313 'ports/sk_predefined_gamma.h',
314 'ports/SkFontHost_none.cpp',
315 'ports/SkGlobals_global.cpp',
316 'ports/SkImageDecoder_Factory.cpp',
317 'ports/SkOSFile_stdio.cpp',
318 'ports/SkThread_win.cpp',
319 ]),
320
321 MSVSFilter('images', [
322 'images/SkImageDecoder.cpp',
323 'images/SkImageRef.cpp',
324 'images/SkScaledBitmapSampler.h',
325 'images/SkStream.cpp',
326 ]),
327
328 MSVSFilter('effects', [
329 'effects/Sk1DPathEffect.cpp',
330 'effects/Sk2DPathEffect.cpp',
331 'effects/SkAvoidXfermode.cpp',
332 'effects/SkBlurDrawLooper.cpp',
333 'effects/SkBlurMask.cpp',
334 'effects/SkBlurMaskFilter.cpp',
335 'effects/SkCamera.cpp',
336 'effects/SkColorFilters.cpp',
337 'effects/SkColorMatrix.cpp',
338 'effects/SkColorMatrixFilter.cpp',
339 'effects/SkCornerPathEffect.cpp',
340 'effects/SkCullPoints.cpp',
341 'effects/SkDashPathEffect.cpp',
342 'effects/SkDiscretePathEffect.cpp',
343 'effects/SkEmbossMask.cpp',
344 'effects/SkEmbossMaskFilter.cpp',
345 'effects/SkGradientShader.cpp',
346 'effects/SkKernel33MaskFilter.cpp',
347 'effects/SkLayerRasterizer.cpp',
348 'effects/SkPaintFlagsDrawFilter.cpp',
349 'effects/SkPixelXorXfermode.cpp',
350 'effects/SkRadialGradient_Table.h',
351 'effects/SkShaderExtras.cpp',
352 'effects/SkTransparentShader.cpp',
353 'effects/SkUnitMappers.cpp',
354 ]),
355
356 MSVSFilter('animator', [
357 'animator/SkTime.cpp',
358 ]),
359
360 MSVSFilter('picture', [
361 'picture/SkPathHeap.cpp',
362 'picture/SkPathHeap.h',
363 'picture/SkPicture.cpp',
364 'picture/SkPictureFlat.cpp',
365 'picture/SkPictureFlat.h',
366 'picture/SkPicturePlayback.cpp',
367 'picture/SkPicturePlayback.h',
368 'picture/SkPictureRecord.cpp',
369 'picture/SkPictureRecord.h',
370 ]),
371
372 MSVSFilter('ext', [
373 'ext/bitmap_platform_device.h',
374 'ext/bitmap_platform_device_win.cc',
375 'ext/bitmap_platform_device_win.h',
376 'ext/convolver.cc',
377 'ext/convolver.h',
378 'ext/google_logging.cc',
379 'ext/image_operations.cc',
380 'ext/image_operations.h',
381 'ext/platform_canvas.h',
382 'ext/platform_canvas_win.cc',
383 'ext/platform_canvas_win.h',
384 'ext/platform_device.h',
385 'ext/platform_device_win.cc',
386 'ext/platform_device_win.h',
387 'ext/skia_utils.cc',
388 'ext/skia_utils.h',
389 'ext/skia_utils_win.cc',
390 'ext/skia_utils_win.h',
391 'ext/vector_canvas.cc',
392 'ext/vector_canvas.h',
393 'ext/vector_device.cc',
394 'ext/vector_device.h',
395 ]),
396
397 'precompiled.cc',
398 ])
399
400 if env.Bit('linux'):
401 input_files.append('ext/bitmap_platform_device_linux.cc')
402 input_files.append('ext/platform_canvas_linux.cc')
403 input_files.append('ext/platform_device_linux.cc')
404
405 # On Linux we use Skia to render fonts with FreeType and fontconfig
406 input_files.Remove('sgl/SkTypeface_fake.cpp')
407 input_files.Remove('ports/SkFontHost_none.cpp')
408 input_files.append('sgl/SkTypeface.cpp')
409 input_files.append('ports/SkFontHost_FreeType.cpp')
410 input_files.append('ports/SkFontHost_TrueType_Tables.cpp')
411 input_files.append('ports/SkFontHost_gamma_none.cpp')
412 input_files.append('ports/SkFontHost_fontconfig.cpp')
413 input_files.append('images/SkMMapStream.cpp')
414
415 env.Append(CCFLAGS = ['-Wno-unused-function'])
416
417 if not env['COMPONENT_STATIC']:
418 # SkUnPreMultiply is commented out in the sgl list above, but we need to link
419 # it into the shared library.
420 input_files.append('sgl/SkUnPreMultiply.cpp')
421
422 if env.Bit('posix'):
423 input_files.append('ports/SkThread_pthread.cpp')
424 input_files.append('ports/SkTime_Unix.cpp')
425
426 if env.Bit('mac'):
427 input_files.append('ext/bitmap_platform_device_mac.cc')
428 input_files.append('ext/platform_canvas_mac.cc')
429 input_files.append('ext/platform_device_mac.cc')
430
431 if not env.Bit('windows'):
432 input_files.Remove(
433 'ext/bitmap_platform_device_win.cc',
434 'ext/bitmap_platform_device_win.h',
435 'ext/platform_canvas_win.cc',
436 'ext/platform_canvas_win.h',
437 'ext/platform_device_win.cc',
438 'ext/platform_device_win.h',
439 'ext/skia_utils_win.cc',
440 'ext/skia_utils_win.h',
441 'ext/vector_canvas.cc',
442 'ext/vector_canvas.h',
443 'ext/vector_device.cc',
444 'ext/vector_device.h',
445
446 'ports/SkThread_win.cpp',
447 )
448
449 if env.Bit('windows'):
450 env_p = env.Clone(
451 PCHSTOP = 'SkTypes.h',
452 PDB = 'vc80.pdb',
453 )
454
455 # TODO(rspangler): This step forces -Zi, but doesn't actually use it. Need to
456 # fix so it doesn't override our -Z7. -Zi also causes vc80.pdb to be created
457 # in the skia directory.
458 # TODO(bradnelson): This step creates a skia.pch.ib_tag file to be created.
459 # It's a 0-length file so likely harmless. Is this a side effect of having
460 # IncrediBuild installed on the build machine?
461 pch, obj = env_p.PCH(['skia.pch', 'precompiled.obj'], 'precompiled.cc')
462 env_p['PCH'] = pch
463 input_files.Replace('precompiled.cc', obj)
464
465 env.ChromeLibrary('skia', input_files)
466
467 p = env.ChromeMSVSProject('skia.vcproj',
468 dest='$CHROME_SRC_DIR/skia/skia.vcproj',
469 guid='{CD9CA56E-4E94-444C-87D4-58CA1E6F300D}',
470 keyword='Win32Proj',
471 files=input_files,
472 relative_path_prefix=r'./',
473 tools = [
474 'VCPreBuildEventTool',
475 'VCCustomBuildTool',
476 'VCXMLDataGeneratorTool',
477 'VCWebServiceProxyGeneratorTool',
478 'VCMIDLTool',
479 'VCCLCompilerTool',
480 'VCManagedResourceCompilerTool',
481 'VCResourceCompilerTool',
482 'VCPreLinkEventTool',
483 'VCLibrarianTool',
484 'VCALinkTool',
485 'VCXDCMakeTool',
486 'VCBscMakeTool',
487 'VCFxCopTool',
488 'VCPostBuildEventTool',
489 ])
490
491 p.AddConfig('Debug|Win32',
492 ConfigurationType = '4',
493 InheritedPropertySheets = [
494 '$(SolutionDir)../build/debug.vsprops',
495 './skia.vsprops',
496 './precompiled.vsprops',
497 ])
498
499 p.AddConfig('Release|Win32',
500 ConfigurationType = '4',
501 InheritedPropertySheets = [
502 '$(SolutionDir)../build/release.vsprops',
503 './skia.vsprops',
504 ])
505
506 p.AddFileConfig(
507 'precompiled.cc',
508 'Debug|Win32',
509 tools=[
510 MSVSTool('VCCLCompilerTool', UsePrecompiledHeader='1'),
511 ])
512
513 p.AddFileConfig(
514 'precompiled.cc',
515 'Release|Win32',
516 ExcludedFromBuild='true',
517 tools=[
518 MSVSTool('VCCLCompilerTool'),
519 ])
OLDNEW
« no previous file with comments | « sdch/using_sdch.scons ('k') | skia/using_skia.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698