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 # ============================================================================== | 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
119 if (defined(invoker.output_name)) { | 119 if (defined(invoker.output_name)) { |
120 test_output_name = invoker.output_name | 120 test_output_name = invoker.output_name |
121 unittests_binary = "lib${test_output_name}.so" | 121 unittests_binary = "lib${test_output_name}.so" |
122 } | 122 } |
123 deps = [ | 123 deps = [ |
124 ":$library_name", | 124 ":$library_name", |
125 ] | 125 ] |
126 if (defined(invoker.apk_deps)) { | 126 if (defined(invoker.apk_deps)) { |
127 deps += invoker.apk_deps | 127 deps += invoker.apk_deps |
128 } | 128 } |
129 if (defined(invoker.apk_asset_location)) { | |
jamesr
2015/01/22 18:19:01
aha, there's the ticket
| |
130 asset_location = invoker.apk_asset_location | |
131 } | |
129 } | 132 } |
130 | 133 |
131 group(target_name) { | 134 group(target_name) { |
132 testonly = true | 135 testonly = true |
133 | 136 |
134 deps = [ | 137 deps = [ |
135 ":$library_name", | 138 ":$library_name", |
136 ":$apk_name", | 139 ":$apk_name", |
137 ] | 140 ] |
138 } | 141 } |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
228 } | 231 } |
229 if (defined(invoker.sources)) { | 232 if (defined(invoker.sources)) { |
230 sources = invoker.sources | 233 sources = invoker.sources |
231 } | 234 } |
232 if (defined(invoker.visibility)) { | 235 if (defined(invoker.visibility)) { |
233 visibility = invoker.visibility | 236 visibility = invoker.visibility |
234 } | 237 } |
235 } | 238 } |
236 } | 239 } |
237 } | 240 } |
OLD | NEW |