OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # Keep in sync with 'remoting_webapp' target in remoting/remoting_client.gypi. | 5 # Keep in sync with 'remoting_webapp' target in remoting/remoting_client.gypi. |
6 | 6 |
7 import("//build/config/chrome_build.gni") | 7 import("//build/config/chrome_build.gni") |
8 import("//remoting/remoting_locales.gni") | 8 import("//remoting/remoting_locales.gni") |
9 import("//remoting/remoting_options.gni") | 9 import("//remoting/remoting_options.gni") |
10 import("//remoting/remoting_version.gni") | 10 import("//remoting/remoting_version.gni") |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 } | 47 } |
48 | 48 |
49 template("build_webapp_html") { | 49 template("build_webapp_html") { |
50 target_jscompile = "" | 50 target_jscompile = "" |
51 | 51 |
52 if (enable_remoting_jscompile) { | 52 if (enable_remoting_jscompile) { |
53 target_jscompile = "${target_name}_jscompile" | 53 target_jscompile = "${target_name}_jscompile" |
54 target_jscompile_stamp = "$target_gen_dir/${target_jscompile}.stamp" | 54 target_jscompile_stamp = "$target_gen_dir/${target_jscompile}.stamp" |
55 action(target_jscompile) { | 55 action(target_jscompile) { |
56 js_files = remoting_webapp_js_proto_files + invoker.js_files | 56 js_files = remoting_webapp_js_proto_files + invoker.js_files |
57 externs = [ | |
58 remoting_webapp_externs, | |
59 "../../third_party/closure_compiler/externs/chrome_extensions.js", | |
60 ] | |
61 | 57 |
62 script = "../../third_party/closure_compiler/compile.py" | 58 script = "../../third_party/closure_compiler/compile.py" |
63 inputs = js_files | 59 inputs = js_files |
64 outputs = [ | 60 outputs = [ |
65 target_jscompile_stamp, | 61 target_jscompile_stamp, |
66 ] | 62 ] |
67 | 63 |
68 args = [ | 64 args = [ |
69 "--strict", | 65 "--strict", |
70 "--no-single-file", | 66 "--no-single-file", |
71 "--externs", | 67 "--externs", |
72 externs, | 68 "../../third_party/closure_compiler/externs/chrome_extensions.js", |
73 "--success-stamp", | 69 "--success-stamp", |
74 rebase_path(target_jscompile_stamp, root_build_dir), | 70 rebase_path(target_jscompile_stamp, root_build_dir), |
75 ] | 71 ] |
76 args += rebase_path(js_files, root_build_dir) | 72 args += rebase_path(js_files, root_build_dir) |
77 } | 73 } |
78 } | 74 } |
79 | 75 |
80 action(target_name) { | 76 action(target_name) { |
81 html_template_file = invoker.html_template_file | 77 html_template_file = invoker.html_template_file |
82 html_template_include_files = invoker.html_template_include_files | 78 html_template_include_files = invoker.html_template_include_files |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 args += [ | 410 args += [ |
415 "--manifest_key", | 411 "--manifest_key", |
416 manifest_key, | 412 manifest_key, |
417 ] | 413 ] |
418 args += [ | 414 args += [ |
419 "--app_client_id", | 415 "--app_client_id", |
420 app_client_id, | 416 app_client_id, |
421 ] | 417 ] |
422 } | 418 } |
423 } | 419 } |
OLD | NEW |