OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 if (current_cpu == "arm") { | 8 if (current_cpu == "arm") { |
9 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
10 } | 10 } |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 # assembly code contains flow control(jmp or jcc) statements. | 244 # assembly code contains flow control(jmp or jcc) statements. |
245 "/wd4800", # forcing value to bool 'true/false'(assigning int to bool). | 245 "/wd4800", # forcing value to bool 'true/false'(assigning int to bool). |
246 ] | 246 ] |
247 } | 247 } |
248 } | 248 } |
249 | 249 |
250 component("skia") { | 250 component("skia") { |
251 sources = [ | 251 sources = [ |
252 # Chrome sources. | 252 # Chrome sources. |
253 "config/SkUserConfig.h", | 253 "config/SkUserConfig.h", |
| 254 "ext/SkDiscardableMemory_chrome.cc", |
| 255 "ext/SkDiscardableMemory_chrome.h", |
| 256 "ext/SkMemory_new_handler.cpp", |
254 "ext/analysis_canvas.cc", | 257 "ext/analysis_canvas.cc", |
255 "ext/analysis_canvas.h", | 258 "ext/analysis_canvas.h", |
256 "ext/benchmarking_canvas.cc", | 259 "ext/benchmarking_canvas.cc", |
257 "ext/benchmarking_canvas.h", | 260 "ext/benchmarking_canvas.h", |
258 "ext/bitmap_platform_device.h", | 261 "ext/bitmap_platform_device.h", |
259 "ext/convolver.cc", | 262 "ext/convolver.cc", |
260 "ext/convolver.h", | 263 "ext/convolver.h", |
261 "ext/event_tracer_impl.cc", | 264 "ext/event_tracer_impl.cc", |
262 "ext/event_tracer_impl.h", | 265 "ext/event_tracer_impl.h", |
263 "ext/fontmgr_default_win.cc", | 266 "ext/fontmgr_default_win.cc", |
264 "ext/fontmgr_default_win.h", | 267 "ext/fontmgr_default_win.h", |
265 "ext/google_logging.cc", | 268 "ext/google_logging.cc", |
266 "ext/image_operations.cc", | 269 "ext/image_operations.cc", |
267 "ext/image_operations.h", | 270 "ext/image_operations.h", |
268 "ext/opacity_draw_filter.cc", | 271 "ext/opacity_draw_filter.cc", |
269 "ext/opacity_draw_filter.h", | 272 "ext/opacity_draw_filter.h", |
270 "ext/pixel_ref_utils.cc", | 273 "ext/pixel_ref_utils.cc", |
271 "ext/pixel_ref_utils.h", | 274 "ext/pixel_ref_utils.h", |
272 "ext/platform_canvas.cc", | 275 "ext/platform_canvas.cc", |
273 "ext/platform_canvas.h", | 276 "ext/platform_canvas.h", |
274 "ext/platform_device.cc", | 277 "ext/platform_device.cc", |
275 "ext/platform_device.h", | 278 "ext/platform_device.h", |
276 "ext/platform_device_linux.cc", | 279 "ext/platform_device_linux.cc", |
277 "ext/platform_device_mac.cc", | 280 "ext/platform_device_mac.cc", |
278 "ext/platform_device_win.cc", | 281 "ext/platform_device_win.cc", |
279 "ext/recursive_gaussian_convolution.cc", | 282 "ext/recursive_gaussian_convolution.cc", |
280 "ext/recursive_gaussian_convolution.h", | 283 "ext/recursive_gaussian_convolution.h", |
281 "ext/refptr.h", | 284 "ext/refptr.h", |
282 "ext/SkDiscardableMemory_chrome.h", | |
283 "ext/SkDiscardableMemory_chrome.cc", | |
284 "ext/SkMemory_new_handler.cpp", | |
285 "ext/skia_utils_base.cc", | 285 "ext/skia_utils_base.cc", |
286 "ext/skia_utils_base.h", | 286 "ext/skia_utils_base.h", |
| 287 "ext/skia_utils_ios.h", |
287 "ext/skia_utils_ios.mm", | 288 "ext/skia_utils_ios.mm", |
288 "ext/skia_utils_ios.h", | 289 "ext/skia_utils_mac.h", |
289 "ext/skia_utils_mac.mm", | 290 "ext/skia_utils_mac.mm", |
290 "ext/skia_utils_mac.h", | |
291 "ext/skia_utils_win.cc", | 291 "ext/skia_utils_win.cc", |
292 "ext/skia_utils_win.h", | 292 "ext/skia_utils_win.h", |
293 ] | 293 ] |
294 | 294 |
295 # The skia gypi values are relative to the skia_dir, so we need to rebase. | 295 # The skia gypi values are relative to the skia_dir, so we need to rebase. |
296 sources += gypi_skia_core.sources | 296 sources += gypi_skia_core.sources |
297 sources += gypi_skia_effects.sources | 297 sources += gypi_skia_effects.sources |
298 sources += gypi_skia_utils.sources | 298 sources += gypi_skia_utils.sources |
299 sources += gypi_values.skia_library_sources | 299 sources += gypi_values.skia_library_sources |
300 | 300 |
301 # This and skia_opts are really the same conceptual target so share headers. | 301 # This and skia_opts are really the same conceptual target so share headers. |
302 allow_circular_includes_from = [ ":skia_opts" ] | 302 allow_circular_includes_from = [ ":skia_opts" ] |
303 | 303 |
304 if (current_cpu == "arm") { | 304 if (current_cpu == "arm") { |
305 sources += [ | 305 sources += [ |
306 "//third_party/skia/src/core/SkUtilsArm.cpp", | 306 "//third_party/skia/src/core/SkUtilsArm.cpp", |
307 "//third_party/skia/src/core/SkUtilsArm.h", | 307 "//third_party/skia/src/core/SkUtilsArm.h", |
308 ] | 308 ] |
309 } | 309 } |
310 | 310 |
311 # GPU | 311 # GPU |
312 if (skia_support_gpu) { | 312 if (skia_support_gpu) { |
313 sources += gypi_skia_gpu.skgpu_sources | 313 sources += gypi_skia_gpu.skgpu_sources |
314 sources += gypi_skia_gpu.skgpu_null_gl_sources | 314 sources += gypi_skia_gpu.skgpu_null_gl_sources |
315 } | 315 } |
316 | 316 |
317 # Remove unused util files include in utils.gypi | 317 # Remove unused util files include in utils.gypi |
318 sources -= [ | 318 sources -= [ |
319 "//third_party/skia/include/utils/SkBoundaryPatch.h", | 319 "//third_party/skia/include/utils/SkBoundaryPatch.h", |
320 "//third_party/skia/include/utils/SkFrontBufferedStream.h", | |
321 "//third_party/skia/include/utils/SkCamera.h", | 320 "//third_party/skia/include/utils/SkCamera.h", |
322 "//third_party/skia/include/utils/SkCanvasStateUtils.h", | 321 "//third_party/skia/include/utils/SkCanvasStateUtils.h", |
323 "//third_party/skia/include/utils/SkCubicInterval.h", | 322 "//third_party/skia/include/utils/SkCubicInterval.h", |
324 "//third_party/skia/include/utils/SkCullPoints.h", | 323 "//third_party/skia/include/utils/SkCullPoints.h", |
325 "//third_party/skia/include/utils/SkDebugUtils.h", | 324 "//third_party/skia/include/utils/SkDebugUtils.h", |
326 "//third_party/skia/include/utils/SkDumpCanvas.h", | 325 "//third_party/skia/include/utils/SkDumpCanvas.h", |
327 "//third_party/skia/include/utils/SkEventTracer.h", | 326 "//third_party/skia/include/utils/SkEventTracer.h", |
| 327 "//third_party/skia/include/utils/SkFrontBufferedStream.h", |
328 "//third_party/skia/include/utils/SkInterpolator.h", | 328 "//third_party/skia/include/utils/SkInterpolator.h", |
329 "//third_party/skia/include/utils/SkLayer.h", | 329 "//third_party/skia/include/utils/SkLayer.h", |
330 "//third_party/skia/include/utils/SkMeshUtils.h", | 330 "//third_party/skia/include/utils/SkMeshUtils.h", |
331 "//third_party/skia/include/utils/SkNinePatch.h", | 331 "//third_party/skia/include/utils/SkNinePatch.h", |
332 "//third_party/skia/include/utils/SkParse.h", | |
333 "//third_party/skia/include/utils/SkParsePaint.h", | 332 "//third_party/skia/include/utils/SkParsePaint.h", |
334 "//third_party/skia/include/utils/SkParsePath.h", | 333 "//third_party/skia/include/utils/SkParsePath.h", |
335 "//third_party/skia/include/utils/SkRandom.h", | 334 "//third_party/skia/include/utils/SkRandom.h", |
336 "//third_party/skia/src/utils/SkBitmapHasher.cpp", | 335 "//third_party/skia/src/utils/SkBitmapHasher.cpp", |
337 "//third_party/skia/src/utils/SkBitmapHasher.h", | 336 "//third_party/skia/src/utils/SkBitmapHasher.h", |
338 "//third_party/skia/src/utils/SkBoundaryPatch.cpp", | 337 "//third_party/skia/src/utils/SkBoundaryPatch.cpp", |
339 "//third_party/skia/src/utils/SkFrontBufferedStream.cpp", | |
340 "//third_party/skia/src/utils/SkCamera.cpp", | 338 "//third_party/skia/src/utils/SkCamera.cpp", |
341 "//third_party/skia/src/utils/SkCanvasStack.h", | 339 "//third_party/skia/src/utils/SkCanvasStack.h", |
342 "//third_party/skia/src/utils/SkCubicInterval.cpp", | 340 "//third_party/skia/src/utils/SkCubicInterval.cpp", |
343 "//third_party/skia/src/utils/SkCullPoints.cpp", | 341 "//third_party/skia/src/utils/SkCullPoints.cpp", |
344 "//third_party/skia/src/utils/SkDumpCanvas.cpp", | 342 "//third_party/skia/src/utils/SkDumpCanvas.cpp", |
345 "//third_party/skia/src/utils/SkFloatUtils.h", | 343 "//third_party/skia/src/utils/SkFloatUtils.h", |
| 344 "//third_party/skia/src/utils/SkFrontBufferedStream.cpp", |
346 "//third_party/skia/src/utils/SkInterpolator.cpp", | 345 "//third_party/skia/src/utils/SkInterpolator.cpp", |
347 "//third_party/skia/src/utils/SkLayer.cpp", | 346 "//third_party/skia/src/utils/SkLayer.cpp", |
348 "//third_party/skia/src/utils/SkMD5.cpp", | 347 "//third_party/skia/src/utils/SkMD5.cpp", |
349 "//third_party/skia/src/utils/SkMD5.h", | 348 "//third_party/skia/src/utils/SkMD5.h", |
350 "//third_party/skia/src/utils/SkMeshUtils.cpp", | 349 "//third_party/skia/src/utils/SkMeshUtils.cpp", |
351 "//third_party/skia/src/utils/SkNinePatch.cpp", | 350 "//third_party/skia/src/utils/SkNinePatch.cpp", |
352 "//third_party/skia/src/utils/SkOSFile.cpp", | 351 "//third_party/skia/src/utils/SkOSFile.cpp", |
353 "//third_party/skia/src/utils/SkParse.cpp", | |
354 "//third_party/skia/src/utils/SkParseColor.cpp", | |
355 "//third_party/skia/src/utils/SkParsePath.cpp", | 352 "//third_party/skia/src/utils/SkParsePath.cpp", |
356 "//third_party/skia/src/utils/SkPathUtils.cpp", | 353 "//third_party/skia/src/utils/SkPathUtils.cpp", |
357 "//third_party/skia/src/utils/SkSHA1.cpp", | 354 "//third_party/skia/src/utils/SkSHA1.cpp", |
358 "//third_party/skia/src/utils/SkSHA1.h", | 355 "//third_party/skia/src/utils/SkSHA1.h", |
359 "//third_party/skia/src/utils/SkTFitsIn.h", | 356 "//third_party/skia/src/utils/SkTFitsIn.h", |
360 "//third_party/skia/src/utils/SkTLogic.h", | 357 "//third_party/skia/src/utils/SkTLogic.h", |
361 | 358 |
362 # We don't currently need to change thread affinity, so leave out this compl
exity for now. | 359 # We don't currently need to change thread affinity, so leave out this compl
exity for now. |
| 360 "//third_party/skia/src/utils/SkThreadUtils_pthread_linux.cpp", |
363 "//third_party/skia/src/utils/SkThreadUtils_pthread_mach.cpp", | 361 "//third_party/skia/src/utils/SkThreadUtils_pthread_mach.cpp", |
364 "//third_party/skia/src/utils/SkThreadUtils_pthread_linux.cpp", | |
365 | 362 |
366 #testing | 363 #testing |
367 "//third_party/skia/src/fonts/SkGScalerContext.cpp", | 364 "//third_party/skia/src/fonts/SkGScalerContext.cpp", |
368 "//third_party/skia/src/fonts/SkGScalerContext.h", | 365 "//third_party/skia/src/fonts/SkGScalerContext.h", |
369 ] | 366 ] |
370 | 367 |
371 if (is_win) { | 368 if (is_win) { |
372 sources -= [ | 369 sources -= [ |
373 # Keeping _win.cpp | 370 # Keeping _win.cpp |
374 "//third_party/skia/src/utils/SkThreadUtils_pthread.cpp", | 371 "//third_party/skia/src/utils/SkThreadUtils_pthread.cpp", |
(...skipping 22 matching lines...) Expand all Loading... |
397 } | 394 } |
398 | 395 |
399 if (is_android && (!enable_basic_printing && !enable_print_preview)) { | 396 if (is_android && (!enable_basic_printing && !enable_print_preview)) { |
400 sources -= [ "ext/skia_utils_base.cc" ] | 397 sources -= [ "ext/skia_utils_base.cc" ] |
401 } | 398 } |
402 | 399 |
403 # Fixup skia library sources. | 400 # Fixup skia library sources. |
404 if (is_win) { | 401 if (is_win) { |
405 sources -= [ | 402 sources -= [ |
406 "//third_party/skia/src/ports/SkOSFile_posix.cpp", | 403 "//third_party/skia/src/ports/SkOSFile_posix.cpp", |
| 404 "//third_party/skia/src/ports/SkTLS_pthread.cpp", |
407 "//third_party/skia/src/ports/SkTime_Unix.cpp", | 405 "//third_party/skia/src/ports/SkTime_Unix.cpp", |
408 "//third_party/skia/src/ports/SkTLS_pthread.cpp", | |
409 ] | 406 ] |
410 } else { | 407 } else { |
411 sources -= [ | 408 sources -= [ |
412 "//third_party/skia/src/ports/SkFontHost_win.cpp", | 409 "//third_party/skia/src/ports/SkFontHost_win.cpp", |
413 "//third_party/skia/src/ports/SkFontMgr_win_dw.cpp", | 410 "//third_party/skia/src/ports/SkFontMgr_win_dw.cpp", |
414 "//third_party/skia/src/ports/SkOSFile_win.cpp", | 411 "//third_party/skia/src/ports/SkOSFile_win.cpp", |
415 "//third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp", | 412 "//third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp", |
416 "//third_party/skia/src/ports/SkScalerContext_win_dw.cpp", | 413 "//third_party/skia/src/ports/SkScalerContext_win_dw.cpp", |
417 "//third_party/skia/src/ports/SkScalerContext_win_dw.h", | 414 "//third_party/skia/src/ports/SkScalerContext_win_dw.h", |
418 "//third_party/skia/src/ports/SkTLS_win.cpp", | 415 "//third_party/skia/src/ports/SkTLS_win.cpp", |
419 "//third_party/skia/src/ports/SkTypeface_win_dw.cpp", | 416 "//third_party/skia/src/ports/SkTypeface_win_dw.cpp", |
420 "//third_party/skia/src/ports/SkTypeface_win_dw.h", | 417 "//third_party/skia/src/ports/SkTypeface_win_dw.h", |
421 ] | 418 ] |
422 } | 419 } |
423 if (!is_android) { | 420 if (!is_android) { |
424 sources -= [ | 421 sources -= [ |
425 "//third_party/skia/src/ports/SkFontConfigParser_android.cpp", | 422 "//third_party/skia/src/ports/SkFontConfigParser_android.cpp", |
426 "//third_party/skia/src/ports/SkFontMgr_android.cpp", | 423 "//third_party/skia/src/ports/SkFontMgr_android.cpp", |
427 ] | 424 ] |
428 } | 425 } |
429 if (!is_mac) { | 426 if (!is_mac) { |
430 sources -= [ "//third_party/skia/src/ports/SkFontHost_mac.cpp" ] | 427 sources -= [ "//third_party/skia/src/ports/SkFontHost_mac.cpp" ] |
431 } | 428 } |
432 | 429 |
433 if (!is_linux) { | 430 if (!is_linux) { |
434 sources -= [ | 431 sources -= [ |
435 "//third_party/skia/src/ports/SkFontHost_fontconfig.cpp", | |
436 "//third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp", | 432 "//third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp", |
437 "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp", | 433 "//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp", |
| 434 "//third_party/skia/src/ports/SkFontHost_fontconfig.cpp", |
438 ] | 435 ] |
439 } | 436 } |
440 | 437 |
441 if (!is_linux && !is_android) { | 438 if (!is_linux && !is_android) { |
442 sources -= [ | 439 sources -= [ |
| 440 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", |
443 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", | 441 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", |
444 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", | |
445 ] | 442 ] |
446 } | 443 } |
447 | 444 |
448 # Select the right BitmapPlatformDevice. | 445 # Select the right BitmapPlatformDevice. |
449 if (is_win) { | 446 if (is_win) { |
450 sources += [ | 447 sources += [ |
451 "ext/bitmap_platform_device_win.cc", | 448 "ext/bitmap_platform_device_win.cc", |
452 "ext/bitmap_platform_device_win.h", | 449 "ext/bitmap_platform_device_win.h", |
453 ] | 450 ] |
454 } else if (is_mac) { | 451 } else if (is_mac) { |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 deps = [ | 610 deps = [ |
614 ":skia", | 611 ":skia", |
615 "//base", | 612 "//base", |
616 "//base/test:run_all_unittests", | 613 "//base/test:run_all_unittests", |
617 "//cc:test_support", # TODO: Fix this test to not depend on cc. | 614 "//cc:test_support", # TODO: Fix this test to not depend on cc. |
618 "//testing/gtest", | 615 "//testing/gtest", |
619 "//ui/gfx", | 616 "//ui/gfx", |
620 "//ui/gfx/geometry", | 617 "//ui/gfx/geometry", |
621 ] | 618 ] |
622 } | 619 } |
OLD | NEW |