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

Side by Side Diff: skia/BUILD.gn

Issue 677513003: Use gypi form of blink_skia_config. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | skia/skia_common.gypi » ('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 10
11 skia_support_gpu = !is_ios 11 skia_support_gpu = !is_ios
12 skia_support_pdf = !is_ios && printing_mode != 0 12 skia_support_pdf = !is_ios && printing_mode != 0
13 13
14 # The list of Skia defines that are to be set for blink.
15 gypi_blink_skia_defines = exec_script(
16 "//build/gypi_to_gn.py",
17 [ rebase_path("//third_party/WebKit/public/blink_skia_config.gypi"),
18 "--replace=<(skia_include_path)=//third_party/skia/include",
19 "--replace=<(skia_src_path)=//third_party/skia/src" ],
20 "scope",
21 [ "//third_party/WebKit/public/blink_skia_config.gypi" ])
22
14 # The list of Skia defines that are to be set for chromium. 23 # The list of Skia defines that are to be set for chromium.
15 gypi_skia_defines = exec_script( 24 gypi_skia_defines = exec_script(
16 "//build/gypi_to_gn.py", 25 "//build/gypi_to_gn.py",
17 [ rebase_path("//third_party/skia/gyp/skia_for_chromium_defines.gypi"), 26 [ rebase_path("//third_party/skia/gyp/skia_for_chromium_defines.gypi"),
18 "--replace=<(skia_include_path)=//third_party/skia/include", 27 "--replace=<(skia_include_path)=//third_party/skia/include",
19 "--replace=<(skia_src_path)=//third_party/skia/src" ], 28 "--replace=<(skia_src_path)=//third_party/skia/src" ],
20 "scope", 29 "scope",
21 [ "//third_party/skia/gyp/skia_for_chromium_defines.gypi" ]) 30 [ "//third_party/skia/gyp/skia_for_chromium_defines.gypi" ])
22 31
23 # The list of Skia core sources that are to be set for chromium. 32 # The list of Skia core sources that are to be set for chromium.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 "//third_party/skia/include/utils", 100 "//third_party/skia/include/utils",
92 "//third_party/skia/src/core", 101 "//third_party/skia/src/core",
93 "//third_party/skia/src/image", 102 "//third_party/skia/src/image",
94 "//third_party/skia/src/opts", 103 "//third_party/skia/src/opts",
95 "//third_party/skia/src/ports", 104 "//third_party/skia/src/ports",
96 "//third_party/skia/src/sfnt", 105 "//third_party/skia/src/sfnt",
97 "//third_party/skia/src/utils", 106 "//third_party/skia/src/utils",
98 "//third_party/skia/src/lazy", 107 "//third_party/skia/src/lazy",
99 ] 108 ]
100 109
101 defines = gypi_skia_defines.skia_for_chromium_defines 110 defines = gypi_blink_skia_defines.blink_skia_defines
111 defines += gypi_skia_defines.skia_for_chromium_defines
102 112
103 defines += [ 113 defines += [
104 "SK_ENABLE_INST_COUNT=0", 114 "SK_ENABLE_INST_COUNT=0",
105 "GR_GL_CUSTOM_SETUP_HEADER=\"GrGLConfig_chrome.h\"", 115 "GR_GL_CUSTOM_SETUP_HEADER=\"GrGLConfig_chrome.h\"",
106 "SK_ENABLE_LEGACY_API_ALIASING=1", 116 "SK_ENABLE_LEGACY_API_ALIASING=1",
107 "SK_ATTR_DEPRECATED=SK_NOTHING_ARG1", 117 "SK_ATTR_DEPRECATED=SK_NOTHING_ARG1",
108 "GR_GL_IGNORE_ES3_MSAA=0", 118 "GR_GL_IGNORE_ES3_MSAA=0",
109 "SK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT", 119 "SK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT",
110 "SK_SUPPORT_LEGACY_GETTOTALCLIP", 120 "SK_SUPPORT_LEGACY_GETTOTALCLIP",
111 ] 121 ]
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 ":skia_library_config", 713 ":skia_library_config",
704 "//build/config/compiler:no_chromium_code" 714 "//build/config/compiler:no_chromium_code"
705 ] 715 ]
706 716
707 deps = [ 717 deps = [
708 "//base", 718 "//base",
709 ] 719 ]
710 720
711 visibility = [ ":skia" ] 721 visibility = [ ":skia" ]
712 } 722 }
OLDNEW
« no previous file with comments | « no previous file | skia/skia_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698