| 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 import("//third_party/skia/gn/shared_sources.gni") | 8 import("//third_party/skia/gn/shared_sources.gni") |
| 9 | 9 |
| 10 if (current_cpu == "arm") { | 10 if (current_cpu == "arm") { |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 "ext/SkMemory_new_handler.cpp", | 206 "ext/SkMemory_new_handler.cpp", |
| 207 "ext/analysis_canvas.cc", | 207 "ext/analysis_canvas.cc", |
| 208 "ext/benchmarking_canvas.cc", | 208 "ext/benchmarking_canvas.cc", |
| 209 "ext/convolver.cc", | 209 "ext/convolver.cc", |
| 210 "ext/event_tracer_impl.cc", | 210 "ext/event_tracer_impl.cc", |
| 211 "ext/fontmgr_default_win.cc", | 211 "ext/fontmgr_default_win.cc", |
| 212 "ext/google_logging.cc", | 212 "ext/google_logging.cc", |
| 213 "ext/image_operations.cc", | 213 "ext/image_operations.cc", |
| 214 "ext/opacity_filter_canvas.cc", | 214 "ext/opacity_filter_canvas.cc", |
| 215 "ext/platform_device.cc", | 215 "ext/platform_device.cc", |
| 216 "ext/platform_device_linux.cc", | |
| 217 "ext/platform_device_mac.cc", | 216 "ext/platform_device_mac.cc", |
| 218 "ext/platform_device_win.cc", | 217 "ext/platform_device_win.cc", |
| 219 "ext/recursive_gaussian_convolution.cc", | 218 "ext/recursive_gaussian_convolution.cc", |
| 220 "ext/skia_histogram.cc", | 219 "ext/skia_histogram.cc", |
| 221 "ext/skia_memory_dump_provider.cc", | 220 "ext/skia_memory_dump_provider.cc", |
| 222 "ext/skia_trace_memory_dump_impl.cc", | 221 "ext/skia_trace_memory_dump_impl.cc", |
| 223 "ext/skia_utils_base.cc", | 222 "ext/skia_utils_base.cc", |
| 224 "ext/skia_utils_ios.mm", | 223 "ext/skia_utils_ios.mm", |
| 225 "ext/skia_utils_mac.mm", | 224 "ext/skia_utils_mac.mm", |
| 226 "ext/skia_utils_win.cc", | 225 "ext/skia_utils_win.cc", |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 ] | 377 ] |
| 379 } | 378 } |
| 380 | 379 |
| 381 if (!is_linux && !is_android) { | 380 if (!is_linux && !is_android) { |
| 382 sources -= [ | 381 sources -= [ |
| 383 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", | 382 "//third_party/skia/src/ports/SkFontHost_FreeType.cpp", |
| 384 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", | 383 "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", |
| 385 ] | 384 ] |
| 386 } | 385 } |
| 387 | 386 |
| 388 # Select the right BitmapPlatformDevice. | 387 # Select the right LayerAllocator. |
| 388 # (Platforms which only have Skia for a 'native' graphics system |
| 389 # don't get one.) |
| 389 if (is_win) { | 390 if (is_win) { |
| 390 sources += [ "ext/bitmap_platform_device_win.cc" ] | 391 sources += [ |
| 392 "ext/bitmap_platform_device_win.cc", |
| 393 "ext/layer_allocator_win.cc", |
| 394 ] |
| 391 } else if (is_mac) { | 395 } else if (is_mac) { |
| 392 sources += [ "ext/bitmap_platform_device_mac.cc" ] | 396 sources += [ "ext/bitmap_platform_device_mac.cc" ] |
| 393 } else if (use_cairo) { | 397 } else if (use_cairo) { |
| 394 sources += [ "ext/bitmap_platform_device_cairo.cc" ] | 398 sources += [ "ext/layer_allocator_cairo.cc" ] |
| 395 } else if (!is_ios) { | |
| 396 sources += [ "ext/bitmap_platform_device_skia.cc" ] | |
| 397 } | 399 } |
| 398 | 400 |
| 399 if (is_clang && !is_nacl) { | 401 if (is_clang && !is_nacl) { |
| 400 # Skia won't compile with some of the more strict clang warnings. | 402 # Skia won't compile with some of the more strict clang warnings. |
| 401 # e.g. it does: | 403 # e.g. it does: |
| 402 # SkASSERT(!"sk_out_of_memory"); | 404 # SkASSERT(!"sk_out_of_memory"); |
| 403 configs -= [ "//build/config/clang:extra_warnings" ] | 405 configs -= [ "//build/config/clang:extra_warnings" ] |
| 404 } | 406 } |
| 405 | 407 |
| 406 configs -= [ "//build/config/compiler:chromium_code" ] | 408 configs -= [ "//build/config/compiler:chromium_code" ] |
| (...skipping 17 matching lines...) Expand all Loading... |
| 424 deps += [ | 426 deps += [ |
| 425 "//build/linux:fontconfig", | 427 "//build/linux:fontconfig", |
| 426 "//build/linux:freetype2", | 428 "//build/linux:freetype2", |
| 427 "//third_party/expat", | 429 "//third_party/expat", |
| 428 "//third_party/icu:icuuc", | 430 "//third_party/icu:icuuc", |
| 429 ] | 431 ] |
| 430 } | 432 } |
| 431 | 433 |
| 432 if (is_android) { | 434 if (is_android) { |
| 433 set_sources_assignment_filter([]) | 435 set_sources_assignment_filter([]) |
| 434 sources += [ "ext/platform_device_linux.cc" ] | |
| 435 set_sources_assignment_filter(sources_assignment_filter) | 436 set_sources_assignment_filter(sources_assignment_filter) |
| 436 deps += [ | 437 deps += [ |
| 437 "//third_party/android_tools:cpu_features", | 438 "//third_party/android_tools:cpu_features", |
| 438 "//third_party/expat", | 439 "//third_party/expat", |
| 439 "//third_party/freetype-android:freetype", | 440 "//third_party/freetype-android:freetype", |
| 440 ] | 441 ] |
| 441 } | 442 } |
| 442 | 443 |
| 443 if (skia_support_pdf) { | 444 if (skia_support_pdf) { |
| 444 deps += [ | 445 deps += [ |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 | 717 |
| 717 deps = [ | 718 deps = [ |
| 718 ":skia", | 719 ":skia", |
| 719 "//base", | 720 "//base", |
| 720 "//base/test:test_support", | 721 "//base/test:test_support", |
| 721 "//build/config/sanitizers:deps", | 722 "//build/config/sanitizers:deps", |
| 722 "//build/win:default_exe_manifest", | 723 "//build/win:default_exe_manifest", |
| 723 ] | 724 ] |
| 724 } | 725 } |
| 725 } | 726 } |
| OLD | NEW |