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

Side by Side Diff: remoting/webapp/build_template.gni

Issue 1196453003: chromoting: Add JS externs for qunit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't forget the gypi. Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « remoting/remoting_webapp_files.gypi ('k') | remoting/webapp/externs/qunit.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 ]
57 61
58 script = "../../third_party/closure_compiler/compile.py" 62 script = "../../third_party/closure_compiler/compile.py"
59 inputs = js_files 63 inputs = js_files
60 outputs = [ 64 outputs = [
61 target_jscompile_stamp, 65 target_jscompile_stamp,
62 ] 66 ]
63 67
64 args = [ 68 args = [
65 "--strict", 69 "--strict",
66 "--no-single-file", 70 "--no-single-file",
67 "--externs", 71 "--externs",
68 "../../third_party/closure_compiler/externs/chrome_extensions.js", 72 externs,
69 "--success-stamp", 73 "--success-stamp",
70 rebase_path(target_jscompile_stamp, root_build_dir), 74 rebase_path(target_jscompile_stamp, root_build_dir),
71 ] 75 ]
72 args += rebase_path(js_files, root_build_dir) 76 args += rebase_path(js_files, root_build_dir)
73 } 77 }
74 } 78 }
75 79
76 action(target_name) { 80 action(target_name) {
77 html_template_file = invoker.html_template_file 81 html_template_file = invoker.html_template_file
78 html_template_include_files = invoker.html_template_include_files 82 html_template_include_files = invoker.html_template_include_files
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 args += [ 414 args += [
411 "--manifest_key", 415 "--manifest_key",
412 manifest_key, 416 manifest_key,
413 ] 417 ]
414 args += [ 418 args += [
415 "--app_client_id", 419 "--app_client_id",
416 app_client_id, 420 app_client_id,
417 ] 421 ]
418 } 422 }
419 } 423 }
OLDNEW
« no previous file with comments | « remoting/remoting_webapp_files.gypi ('k') | remoting/webapp/externs/qunit.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698