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

Unified Diff: skia/BUILD.gn

Issue 2187533002: skia_commit_hash.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
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" ]
+}

Powered by Google App Engine
This is Rietveld 408576698