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

Side by Side Diff: ui/ui_unittests.gypi

Issue 10399126: Add APK targets for content_unittests and net_unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | Annotate | Revision Log
« content/content_tests.gypi ('K') | « net/net.gyp ('k') | 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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 'targets': [ 6 'targets': [
7 { 7 {
8 'target_name': 'ui_test_support', 8 'target_name': 'ui_test_support',
9 'type': 'static_library', 9 'type': 'static_library',
10 'dependencies': [ 10 'dependencies': [
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 # ui_unittests into an android apk for execution. 213 # ui_unittests into an android apk for execution.
214 # See base.gyp for TODO(jrg)s about this strategy. 214 # See base.gyp for TODO(jrg)s about this strategy.
215 ['OS=="android" and "<(gtest_target_type)"=="shared_library"', { 215 ['OS=="android" and "<(gtest_target_type)"=="shared_library"', {
216 'targets': [ 216 'targets': [
217 { 217 {
218 'target_name': 'ui_unittests_apk', 218 'target_name': 'ui_unittests_apk',
219 'type': 'none', 219 'type': 'none',
220 'dependencies': [ 220 'dependencies': [
221 'ui_unittests', 221 'ui_unittests',
222 ], 222 ],
223 'actions': [ 223 'variables': {
224 { 224 'test_suite_name': 'ui_unittests',
225 # Generate apk files (including source and antfile) from 225 'jar_name': 'chromium_base.jar',
226 # a template, and builds them. 226 },
227 'action_name': 'generate_and_build', 227 'includes': [ '../build/apk_test.gypi' ],
228 'inputs': [
229 '../testing/android/AndroidManifest.xml',
230 '../testing/android/generate_native_test.py',
231 '<(PRODUCT_DIR)/lib.target/libui_unittests.so',
232 '<(PRODUCT_DIR)/lib.java/chromium_base.jar',
233 ],
234 'outputs': [
235 '<(PRODUCT_DIR)/ui_unittests_apk/ui_unittests-debug.apk',
236 ],
237 'action': [
238 '../testing/android/generate_native_test.py',
239 '--native_library',
240 '<(PRODUCT_DIR)/lib.target/libui_unittests.so',
241 # TODO(jrg): find a better way to specify jar
242 # dependencies. Hard coding seems fragile.
243 '--jar',
244 '<(PRODUCT_DIR)/lib.java/chromium_base.jar',
245 '--output',
246 '<(PRODUCT_DIR)/ui_unittests_apk',
247 '--ant-args',
248 '-DPRODUCT_DIR=<(PRODUCT_DIR)',
249 '--ant-compile'
250 ],
251 },
252 ]
253 }, 228 },
254 ], 229 ],
255 }], 230 }],
256 ], 231 ],
257 } 232 }
OLDNEW
« content/content_tests.gypi ('K') | « net/net.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698