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

Side by Side Diff: skia/BUILD.gn

Issue 851503003: Update from https://crrev.com/311076 (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
« no previous file with comments | « sandbox/linux/services/credentials_unittest.cc ('k') | skia/config/SkUserConfig.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 if (cpu_arch == "arm") { 7 if (cpu_arch == "arm") {
8 import("//build/config/arm.gni") 8 import("//build/config/arm.gni")
9 } 9 }
10 if (is_android) {
11 import("//build/config/android/rules.gni")
12 }
10 13
11 skia_support_gpu = !is_ios 14 skia_support_gpu = !is_ios
12 skia_support_pdf = !is_ios && (enable_basic_printing || enable_print_preview) 15 skia_support_pdf = !is_ios && (enable_basic_printing || enable_print_preview)
13 16
14 # The list of Skia defines that are to be set for chromium. 17 # The list of Skia defines that are to be set for chromium.
15 gypi_skia_defines = 18 gypi_skia_defines =
16 exec_script("//build/gypi_to_gn.py", 19 exec_script("//build/gypi_to_gn.py",
17 [ 20 [
18 rebase_path( 21 rebase_path(
19 "//third_party/skia/gyp/skia_for_chromium_defines.gypi"), 22 "//third_party/skia/gyp/skia_for_chromium_defines.gypi"),
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 ":skia_library_config", 693 ":skia_library_config",
691 "//build/config/compiler:no_chromium_code", 694 "//build/config/compiler:no_chromium_code",
692 ] 695 ]
693 696
694 deps = [ 697 deps = [
695 "//base", 698 "//base",
696 ] 699 ]
697 700
698 visibility = [ ":skia" ] 701 visibility = [ ":skia" ]
699 } 702 }
703
704 test("skia_unittests") {
705 sources = [
706 "ext/analysis_canvas_unittest.cc",
707 "ext/bitmap_platform_device_mac_unittest.cc",
708 "ext/convolver_unittest.cc",
709 "ext/image_operations_unittest.cc",
710 "ext/pixel_ref_utils_unittest.cc",
711 "ext/platform_canvas_unittest.cc",
712 "ext/recursive_gaussian_convolution_unittest.cc",
713 "ext/refptr_unittest.cc",
714 "ext/skia_utils_ios_unittest.mm",
715 "ext/skia_utils_mac_unittest.mm",
716 "ext/vector_canvas_unittest.cc",
717 ]
718
719 if (!is_win) {
720 sources -= [ "ext/vector_canvas_unittest.cc" ]
721 }
722
723 if (!is_win && !is_mac) {
724 sources -= [ "ext/platform_canvas_unittest.cc" ]
725 }
726
727 deps = [
728 ":skia",
729 "//base",
730 "//base/test:run_all_unittests",
731 "//testing/gtest",
732 "//ui/gfx",
733 "//ui/gfx/geometry",
734 ]
735 }
736
737 if (is_android) {
738 # GYP: //skia/skia_tests.gyp:skia_unittests_apk
739 unittest_apk("skia_unittests_apk") {
740 unittests_dep = ":skia_unittests"
741 deps = [
742 ":skia_unittests",
743 ]
744 }
745 }
OLDNEW
« no previous file with comments | « sandbox/linux/services/credentials_unittest.cc ('k') | skia/config/SkUserConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698