Index: skia/BUILD.gn |
diff --git a/skia/BUILD.gn b/skia/BUILD.gn |
index 55f17b6f64d4f6d5e3958ad1fdde0f573848c44b..7ac6af216941f92060c8f7c0e7c08f736cf93577 100644 |
--- a/skia/BUILD.gn |
+++ b/skia/BUILD.gn |
@@ -478,6 +478,7 @@ component("skia") { |
public_configs = [ ":skia_config" ] |
deps = [ |
+ ":commit_hash", |
":skia_opts", |
"//base", |
"//base/third_party/dynamic_annotations", |
@@ -767,3 +768,23 @@ if (!is_ios) { |
] |
} |
} |
+ |
+action("generate_commit_hash") { |
+ 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), |
+ ] |
+} |
+ |
+source_set("commit_hash") { |
+ deps = [ |
+ ":generate_commit_hash", |
+ ] |
+ sources = get_target_outputs(":generate_commit_hash") |
+ include_dirs = [ "//third_party/skia/include/utils" ] |
+} |