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

Unified Diff: remoting/android/BUILD.gn

Issue 2728913002: [remoting android] Generate trimmed-down credits.html. (Closed)
Patch Set: Use GN binary from //buildtools. Created 3 years, 9 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 | remoting/credits/credits.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/android/BUILD.gn
diff --git a/remoting/android/BUILD.gn b/remoting/android/BUILD.gn
index 1be3c3e9940cc3d73c1f5a45a2a14e8ffd28b610..f6c21856dc3a2d4f1c16ded3e211600c34c9f23f 100644
--- a/remoting/android/BUILD.gn
+++ b/remoting/android/BUILD.gn
@@ -64,21 +64,49 @@ shared_library("remoting_client_jni") {
assert_no_deps = [ "//third_party/ffmpeg:*" ]
}
+action("credits") {
+ credits_html_file = "$target_gen_dir/credits.html"
+ script = "//tools/licenses.py"
+ depfile = "$target_gen_dir/$target_name.d"
+ credits_template = "//remoting/credits/credits.tmpl"
+ credits_entry_template = "//remoting/credits/credits_entry.tmpl"
+ inputs = [
+ credits_template,
+ credits_entry_template,
+ ]
+ outputs = [
+ credits_html_file,
+ ]
+ args = [
+ "credits",
+ rebase_path(credits_html_file, root_build_dir),
+ "--file-template",
+ rebase_path(credits_template, root_build_dir),
+ "--entry-template",
+ rebase_path(credits_entry_template, root_build_dir),
+ "--depfile",
+ rebase_path(depfile, root_build_dir),
+ "--gn-target",
+ "//remoting/android:remoting_apk",
+ "--gn-out-dir",
+ rebase_path(root_build_dir),
+ ]
+}
+
_raw_resources_base_dir = "$target_gen_dir/remoting_android_raw_resources/res"
copy("remoting_android_raw_resources") {
- _credits_html = get_label_info("//remoting/webapp:credits",
+ _credits_html = get_label_info("//remoting/android:credits",
"target_gen_dir") + "/credits.html"
sources = [
- "//remoting/webapp/base/html/credits_css.css",
- "//remoting/webapp/base/html/main.css",
- "//remoting/webapp/base/js/credits_js.js",
+ "//remoting/credits/credits_css.css",
+ "//remoting/credits/credits_js.js",
_credits_html,
]
outputs = [
"$_raw_resources_base_dir/raw/{{source_file_part}}",
]
deps = [
- "//remoting/webapp:credits",
+ ":credits",
]
}
« no previous file with comments | « no previous file | remoting/credits/credits.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698