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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | skia/skia_gn_files.gypi » ('j') | skia/skia_library.gypi » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/BUILD.gn
diff --git a/skia/BUILD.gn b/skia/BUILD.gn
index 74f6843d3ba30bf512abee72ba8ff9ab78e227be..ca888e55f7ae5d22679ab5fe3d779db2c25515ef 100644
--- a/skia/BUILD.gn
+++ b/skia/BUILD.gn
@@ -56,6 +56,15 @@ gypi_skia_effects = exec_script(
"scope",
[ "//third_party/skia/gyp/effects.gypi" ])
+# The list of Skia utilss that are to be set for chromium.
+gypi_skia_utils = exec_script(
+ "//build/gypi_to_gn.py",
+ [ rebase_path("//third_party/skia/gyp/utils.gypi"),
+ "--replace=<(skia_include_path)=//third_party/skia/include",
+ "--replace=<(skia_src_path)=//third_party/skia/src" ],
+ "scope",
+ [ "//third_party/skia/gyp/utils.gypi" ])
+
# The list of Skia files is kept in skia_gn_files.gypi. Read it.
gypi_values = exec_script(
"//build/gypi_to_gn.py",
@@ -295,6 +304,7 @@ component("skia") {
# The skia gypi values are relative to the skia_dir, so we need to rebase.
sources += gypi_skia_core.sources
sources += gypi_skia_effects.sources
+ sources += gypi_skia_utils.sources
sources += gypi_skia_pdf.sources
sources += gypi_values.skia_library_sources
« 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