OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 targets in remoting/remoting_client.gypi. | 5 # Keep in sync with targets in remoting/remoting_client.gypi. |
6 | 6 |
7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
8 import("//remoting/webapp/build_template.gni") | 8 import("//remoting/webapp/build_template.gni") |
9 import("//remoting/webapp/files.gni") | 9 import("//remoting/webapp/files.gni") |
10 | 10 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 outputs = [ | 118 outputs = [ |
119 "$remoting_unit_test_out_dir/qunit/{{source_file_part}}", | 119 "$remoting_unit_test_out_dir/qunit/{{source_file_part}}", |
120 ] | 120 ] |
121 } | 121 } |
122 | 122 |
123 action("build_unittest") { | 123 action("build_unittest") { |
124 script = "build-html.py" | 124 script = "build-html.py" |
125 outputs = [ | 125 outputs = [ |
126 "$remoting_unit_test_out_dir/unittests.html", | 126 "$remoting_unit_test_out_dir/unittests.html", |
127 ] | 127 ] |
128 args = rebase_path(outputs, root_build_dir) + [ | 128 |
129 rebase_path(remoting_webapp_unittests_template_main, root_build_dir), | 129 # Create a file that contains a list of all the JavaScript files needed |
130 "--exclude-js", | 130 # to build the unit test page. This is needed to avoid problems on platforms |
131 ] + rebase_path(remoting_webapp_unittests_exclude_js_files, | 131 # that limit the size of a command line. |
132 root_build_dir) + [ "--js" ] + | 132 file_list = "$target_gen_dir/remoting_webapp_unittest_files.txt" |
133 rebase_path(remoting_webapp_unittests_all_js_files, root_build_dir) + | 133 files = rebase_path(remoting_webapp_unittests_all_js_files, root_build_dir) |
134 [ "--instrument-js" ] + rebase_path(webapp_js_files, root_build_dir) | 134 write_file(file_list, files) |
| 135 |
| 136 args = |
| 137 rebase_path(outputs, root_build_dir) + [ |
| 138 rebase_path(remoting_webapp_unittests_template_main, root_build_dir), |
| 139 "--exclude-js", |
| 140 ] + |
| 141 rebase_path(remoting_webapp_unittests_exclude_js_files, root_build_dir) + |
| 142 [ |
| 143 "--js-list-file", |
| 144 rebase_path(file_list, root_build_dir), |
| 145 ] + [ "--instrument-js" ] + rebase_path(webapp_js_files, root_build_dir) |
135 } | 146 } |
OLD | NEW |