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

Side by Side Diff: remoting/webapp/BUILD.gn

Issue 1296283002: Create list file for GN target //remoting/webapp:unit_tests (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 unified diff | Download patch
« no previous file with comments | « no previous file | remoting/webapp/build-html.py » ('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 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
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 }
OLDNEW
« no previous file with comments | « no previous file | remoting/webapp/build-html.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698