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

Unified Diff: skia/BUILD.gn

Issue 2187533002: skia_commit_hash.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-28 (Thursday) 16:16:56 EDT 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
« no previous file with comments | « content/browser/gpu/gpu_internals_ui.cc ('k') | skia/commit_hash.py » ('j') | no next file with comments »
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 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.
« no previous file with comments | « content/browser/gpu/gpu_internals_ui.cc ('k') | skia/commit_hash.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698