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

Side by Side Diff: skia/BUILD.gn

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
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 if (cpu_arch == "arm") { 8 if (cpu_arch == "arm") {
8 import("//build/config/arm.gni") 9 import("//build/config/arm.gni")
9 } 10 }
10 if (is_android) {
11 import("//build/config/android/rules.gni")
12 }
13 11
14 skia_support_gpu = !is_ios 12 skia_support_gpu = !is_ios
15 skia_support_pdf = !is_ios && (enable_basic_printing || enable_print_preview) 13 skia_support_pdf = !is_ios && (enable_basic_printing || enable_print_preview)
16 14
17 # The list of Skia defines that are to be set for chromium. 15 # The list of Skia defines that are to be set for chromium.
18 gypi_skia_defines = 16 gypi_skia_defines =
19 exec_script("//build/gypi_to_gn.py", 17 exec_script("//build/gypi_to_gn.py",
20 [ 18 [
21 rebase_path( 19 rebase_path(
22 "//third_party/skia/gyp/skia_for_chromium_defines.gypi"), 20 "//third_party/skia/gyp/skia_for_chromium_defines.gypi"),
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 if (is_win) { 470 if (is_win) {
473 sources += [ 471 sources += [
474 "ext/bitmap_platform_device_win.cc", 472 "ext/bitmap_platform_device_win.cc",
475 "ext/bitmap_platform_device_win.h", 473 "ext/bitmap_platform_device_win.h",
476 ] 474 ]
477 } else if (is_mac) { 475 } else if (is_mac) {
478 sources += [ 476 sources += [
479 "ext/bitmap_platform_device_mac.cc", 477 "ext/bitmap_platform_device_mac.cc",
480 "ext/bitmap_platform_device_mac.h", 478 "ext/bitmap_platform_device_mac.h",
481 ] 479 ]
480 } else if (use_cairo) {
481 sources += [
482 "ext/bitmap_platform_device_cairo.cc",
483 "ext/bitmap_platform_device_cairo.h",
484 ]
482 } else { 485 } else {
483 sources += [ 486 sources += [
484 "ext/bitmap_platform_device_skia.cc", 487 "ext/bitmap_platform_device_skia.cc",
485 "ext/bitmap_platform_device_skia.h", 488 "ext/bitmap_platform_device_skia.h",
486 ] 489 ]
487 } 490 }
488 491
489 if (is_clang) { 492 if (is_clang) {
490 # Skia won't compile with some of the more strict clang warnings. 493 # Skia won't compile with some of the more strict clang warnings.
491 # e.g. it does: 494 # e.g. it does:
(...skipping 20 matching lines...) Expand all
512 # Some files define WIN32_LEAN_AND_MEAN and we want to avoid a duplicate 515 # Some files define WIN32_LEAN_AND_MEAN and we want to avoid a duplicate
513 # definition warning. 516 # definition warning.
514 "//build/config/win:lean_and_mean", 517 "//build/config/win:lean_and_mean",
515 ] 518 ]
516 } 519 }
517 520
518 if (is_linux) { 521 if (is_linux) {
519 configs += [ 522 configs += [
520 "//build/config/linux:fontconfig", 523 "//build/config/linux:fontconfig",
521 "//build/config/linux:freetype2", 524 "//build/config/linux:freetype2",
525 "//build/config/linux:pangocairo",
522 ] 526 ]
523 deps += [ "//third_party/icu:icuuc" ] 527 deps += [ "//third_party/icu:icuuc" ]
524 } 528 }
525 529
526 if (is_android) { 530 if (is_android) {
527 set_sources_assignment_filter([]) 531 set_sources_assignment_filter([])
528 sources += [ "ext/platform_device_linux.cc" ] 532 sources += [ "ext/platform_device_linux.cc" ]
529 set_sources_assignment_filter(sources_assignment_filter) 533 set_sources_assignment_filter(sources_assignment_filter)
530 deps += [ 534 deps += [
531 "//third_party/expat", 535 "//third_party/expat",
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 724
721 deps = [ 725 deps = [
722 ":skia", 726 ":skia",
723 "//base", 727 "//base",
724 "//base/test:run_all_unittests", 728 "//base/test:run_all_unittests",
725 "//testing/gtest", 729 "//testing/gtest",
726 "//ui/gfx", 730 "//ui/gfx",
727 "//ui/gfx/geometry", 731 "//ui/gfx/geometry",
728 ] 732 ]
729 } 733 }
730
731 if (is_android) {
732 # GYP: //skia/skia_tests.gyp:skia_unittests_apk
733 unittest_apk("skia_unittests_apk") {
734 unittests_dep = ":skia_unittests"
735 deps = [
736 ":skia_unittests",
737 ]
738 }
739 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698