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

Unified Diff: remoting/webapp/build_template.gni

Issue 1312463005: Compile remoting client plugin with GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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: remoting/webapp/build_template.gni
diff --git a/remoting/webapp/build_template.gni b/remoting/webapp/build_template.gni
index 003ef13af7389e56ba6b611fa1c653cd8d242525..5f6079ab5f052a1fcc2ed5dd442f71e5dc32fde8 100644
--- a/remoting/webapp/build_template.gni
+++ b/remoting/webapp/build_template.gni
@@ -118,123 +118,6 @@ template("build_webapp_html") {
}
}
-template("desktop_remoting_webapp") {
- locales_listfile = target_name + "_locales"
- locales_listfile_output = "$target_gen_dir/${target_name}_locales.txt"
-
- build_locales_listfile(locales_listfile) {
- # Template uses locales_listfile_output from outer scope.
- }
-
- background_html = target_name + "_background_html"
- background_html_output = "$target_gen_dir/html/$target_name/background.html"
-
- build_webapp_html(background_html) {
- html_template_file = remoting_webapp_template_background
- html_template_include_files = []
- js_files = remoting_webapp_background_html_all_js_files
- html_output = background_html_output
- }
-
- message_window_html = target_name + "_message_window_html"
- message_window_html_output =
- "$target_gen_dir/html/$target_name/message_window.html"
-
- build_webapp_html(message_window_html) {
- html_template_file = remoting_webapp_template_message_window
- html_template_include_files = []
- js_files = remoting_webapp_message_window_html_all_js_files
- html_output = message_window_html_output
- }
-
- wcs_sandbox_html = target_name + "_wcs_sandbox_html"
- wcs_sandbox_html_output = "$target_gen_dir/html/$target_name/wcs_sandbox.html"
-
- build_webapp_html(wcs_sandbox_html) {
- html_template_file = remoting_webapp_template_wcs_sandbox
- html_template_include_files = []
- js_files = remoting_webapp_wcs_sandbox_html_all_js_files
- html_output = wcs_sandbox_html_output
- }
-
- main_html = target_name + "_main_html"
- main_html_output = "$target_gen_dir/html/$target_name/main.html"
-
- build_webapp_html(main_html) {
- html_template_file = remoting_webapp_template_main
- html_template_include_files = remoting_webapp_template_files
- js_files = remoting_webapp_crd_main_html_all_js_files
- html_output = main_html_output
- }
-
- action(target_name) {
- script = "//remoting/webapp/build-webapp.py"
-
- webapp_type = invoker.webapp_type
- output_dir = invoker.output_dir
- zip_path = invoker.zip_path
- extra_files = invoker.extra_files
-
- dr_generated_html_files = [
- background_html_output,
- message_window_html_output,
- wcs_sandbox_html_output,
- main_html_output,
- "$target_gen_dir/credits.html",
- ]
-
- inputs = [ rebase_path("crd/manifest.json.jinja2", root_build_dir) ] +
- remoting_version_files +
- rebase_path(remoting_webapp_crd_files, root_build_dir) +
- extra_files + dr_generated_html_files
-
- outputs = [
- zip_path,
- ]
-
- deps = [
- ":$locales_listfile",
- ":$background_html",
- ":$message_window_html",
- ":$wcs_sandbox_html",
- ":$main_html",
- "//remoting/resources",
- "//remoting/webapp:credits",
- ]
-
- # Create a file that contains a list of all the resource files needed
- # to build the webapp. This is needed to avoid problems on platforms that
- # limit the size of a command line.
- file_list = "$target_gen_dir/${target_name}_files.txt"
- files = []
- files += rebase_path(dr_generated_html_files, root_build_dir)
- files += rebase_path(remoting_webapp_crd_files, root_build_dir)
- files += rebase_path(extra_files, root_build_dir)
- write_file(file_list, files)
-
- args = [
- buildtype,
- chrome_version_full,
- rebase_path(output_dir, root_build_dir),
- rebase_path(zip_path, root_build_dir),
- rebase_path("crd/manifest.json.jinja2", root_build_dir),
- webapp_type,
- ]
- args += [
- "--files_listfile",
- rebase_path(file_list, root_build_dir),
- ]
- args += [
- "--locales_listfile",
- rebase_path(locales_listfile_output, root_build_dir),
- ]
- args += [
- "--use_gcd",
- "$remoting_use_gcd",
- ]
- }
-}
-
template("app_remoting_webapp") {
locales_listfile = target_name + "_locales"
locales_listfile_output = "$target_gen_dir/${target_name}_locales.txt"

Powered by Google App Engine
This is Rietveld 408576698