Chromium Code Reviews| Index: skia/BUILD.gn |
| diff --git a/skia/BUILD.gn b/skia/BUILD.gn |
| index 55f17b6f64d4f6d5e3958ad1fdde0f573848c44b..d2a17eac1c9db4102d86665c7c9f889e642402fc 100644 |
| --- a/skia/BUILD.gn |
| +++ b/skia/BUILD.gn |
| @@ -296,6 +296,18 @@ config("skia_library_config") { |
| } |
| } |
| +action("generate_commit_hash") { |
|
mtklein_C
2016/07/29 15:46:30
How does chrome://version/ do this, and why do we
|
| + script = "commit_hash.py" |
| + output_file_path = "$target_gen_dir/skia_commit_hash.cpp" |
| + outputs = [ |
| + output_file_path, |
| + ] |
| + args = [ |
| + rebase_path("//third_party/skia", root_build_dir), |
| + rebase_path(output_file_path, root_build_dir), |
| + ] |
| +} |
| + |
| component("skia") { |
| sources = [ |
| # Chrome sources. |
| @@ -478,6 +490,7 @@ component("skia") { |
| public_configs = [ ":skia_config" ] |
| deps = [ |
| + ":generate_commit_hash", |
| ":skia_opts", |
| "//base", |
| "//base/third_party/dynamic_annotations", |
| @@ -542,6 +555,7 @@ component("skia") { |
| # SkFontHost_mac.cpp uses API deprecated in iOS 7, crbug.com/408571 |
| cflags = [ "-Wno-deprecated-declarations" ] |
| } |
| + sources += get_target_outputs(":generate_commit_hash") |
| } |
| # Separated out so it can be compiled with different flags for SSE. |