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

Side by Side Diff: testing/test.gni

Issue 1832723002: 🌵 Fix ninja warning: multiple rules generate bin/install_unittests_apk_incremental (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | no next file » | 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 # ============================================================================== 5 # ==============================================================================
6 # TEST SETUP 6 # TEST SETUP
7 # ============================================================================== 7 # ==============================================================================
8 8
9 # Define a test as an executable (or apk on Android) with the "testonly" flag 9 # Define a test as an executable (or apk on Android) with the "testonly" flag
10 # set. 10 # set.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 "deps", 68 "deps",
69 "enable_multidex", 69 "enable_multidex",
70 "use_default_launcher", 70 "use_default_launcher",
71 "write_asset_list", 71 "write_asset_list",
72 ]) 72 ])
73 unittests_dep = ":$library_name" 73 unittests_dep = ":$library_name"
74 apk_name = main_target_name 74 apk_name = main_target_name
75 if (defined(invoker.output_name)) { 75 if (defined(invoker.output_name)) {
76 apk_name = invoker.output_name 76 apk_name = invoker.output_name
77 unittests_binary = "lib${apk_name}.so" 77 unittests_binary = "lib${apk_name}.so"
78 install_script_name = "install_${invoker.output_name}"
78 } 79 }
79 deps += [ ":$library_name" ] 80 deps += [ ":$library_name" ]
80 } 81 }
81 82
82 _test_name = main_target_name 83 _test_name = main_target_name
83 if (defined(invoker.output_name)) { 84 if (defined(invoker.output_name)) {
84 _test_name = invoker.output_name 85 _test_name = invoker.output_name
85 } 86 }
86 test_runner_script_name = "${_test_name}__test_runner_script" 87 test_runner_script_name = "${_test_name}__test_runner_script"
87 test_runner_script(test_runner_script_name) { 88 test_runner_script(test_runner_script_name) {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 # TODO(GYP): Delete this after we've converted everything to GN. 203 # TODO(GYP): Delete this after we've converted everything to GN.
203 # The _run targets exist only for compatibility with GYP. 204 # The _run targets exist only for compatibility with GYP.
204 group("${target_name}_run") { 205 group("${target_name}_run") {
205 testonly = true 206 testonly = true
206 deps = [ 207 deps = [
207 ":$main_target_name", 208 ":$main_target_name",
208 ] 209 ]
209 } 210 }
210 } 211 }
211 } 212 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698