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

Side by Side Diff: skia/BUILD.gn

Issue 327523002: Change skia build files to use a utils.gypi instead of hardcoded files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add excluded files to skia_library Created 6 years, 6 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 | « no previous file | skia/skia_gn_files.gypi » ('j') | skia/skia_library.gypi » ('J')
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
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 # The list of Skia effects that are to be set for chromium. 50 # The list of Skia effects that are to be set for chromium.
51 gypi_skia_effects = exec_script( 51 gypi_skia_effects = exec_script(
52 "//build/gypi_to_gn.py", 52 "//build/gypi_to_gn.py",
53 [ rebase_path("//third_party/skia/gyp/effects.gypi"), 53 [ rebase_path("//third_party/skia/gyp/effects.gypi"),
54 "--replace=<(skia_include_path)=//third_party/skia/include", 54 "--replace=<(skia_include_path)=//third_party/skia/include",
55 "--replace=<(skia_src_path)=//third_party/skia/src" ], 55 "--replace=<(skia_src_path)=//third_party/skia/src" ],
56 "scope", 56 "scope",
57 [ "//third_party/skia/gyp/effects.gypi" ]) 57 [ "//third_party/skia/gyp/effects.gypi" ])
58 58
59 # The list of Skia utilss that are to be set for chromium.
60 gypi_skia_utils = exec_script(
61 "//build/gypi_to_gn.py",
62 [ rebase_path("//third_party/skia/gyp/utils.gypi"),
63 "--replace=<(skia_include_path)=//third_party/skia/include",
64 "--replace=<(skia_src_path)=//third_party/skia/src" ],
65 "scope",
66 [ "//third_party/skia/gyp/utils.gypi" ])
67
59 # The list of Skia files is kept in skia_gn_files.gypi. Read it. 68 # The list of Skia files is kept in skia_gn_files.gypi. Read it.
60 gypi_values = exec_script( 69 gypi_values = exec_script(
61 "//build/gypi_to_gn.py", 70 "//build/gypi_to_gn.py",
62 [ rebase_path("skia_gn_files.gypi"), 71 [ rebase_path("skia_gn_files.gypi"),
63 "--replace=<(skia_include_path)=//third_party/skia/include", 72 "--replace=<(skia_include_path)=//third_party/skia/include",
64 "--replace=<(skia_src_path)=//third_party/skia/src" ], 73 "--replace=<(skia_src_path)=//third_party/skia/src" ],
65 "scope", 74 "scope",
66 [ "skia_gn_files.gypi" ]) 75 [ "skia_gn_files.gypi" ])
67 76
68 # External-facing config for dependent code. 77 # External-facing config for dependent code.
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 "ext/vector_canvas.h", 297 "ext/vector_canvas.h",
289 "ext/vector_platform_device_emf_win.cc", 298 "ext/vector_platform_device_emf_win.cc",
290 "ext/vector_platform_device_emf_win.h", 299 "ext/vector_platform_device_emf_win.h",
291 "ext/vector_platform_device_skia.cc", 300 "ext/vector_platform_device_skia.cc",
292 "ext/vector_platform_device_skia.h", 301 "ext/vector_platform_device_skia.h",
293 ] 302 ]
294 303
295 # The skia gypi values are relative to the skia_dir, so we need to rebase. 304 # The skia gypi values are relative to the skia_dir, so we need to rebase.
296 sources += gypi_skia_core.sources 305 sources += gypi_skia_core.sources
297 sources += gypi_skia_effects.sources 306 sources += gypi_skia_effects.sources
307 sources += gypi_skia_utils.sources
298 sources += gypi_skia_pdf.sources 308 sources += gypi_skia_pdf.sources
299 sources += gypi_values.skia_library_sources 309 sources += gypi_values.skia_library_sources
300 310
301 # GPU 311 # GPU
302 if (skia_support_gpu) { 312 if (skia_support_gpu) {
303 sources += gypi_skia_gpu.skgpu_sources 313 sources += gypi_skia_gpu.skgpu_sources
304 sources += gypi_skia_gpu.skgpu_null_gl_sources 314 sources += gypi_skia_gpu.skgpu_null_gl_sources
305 } 315 }
306 316
307 # Fixup Chrome sources. 317 # Fixup Chrome sources.
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 ":skia_config", 556 ":skia_config",
547 "//build/config/compiler:no_chromium_code" 557 "//build/config/compiler:no_chromium_code"
548 ] 558 ]
549 559
550 deps = [ 560 deps = [
551 "//base", 561 "//base",
552 ] 562 ]
553 563
554 visibility = ":skia" 564 visibility = ":skia"
555 } 565 }
OLDNEW
« no previous file with comments | « no previous file | skia/skia_gn_files.gypi » ('j') | skia/skia_library.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698