OLD | NEW |
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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 'ui_unittests', | 221 'ui_unittests', |
222 ], | 222 ], |
223 'actions': [ | 223 'actions': [ |
224 { | 224 { |
225 # Generate apk files (including source and antfile) from | 225 # Generate apk files (including source and antfile) from |
226 # a template, and builds them. | 226 # a template, and builds them. |
227 'action_name': 'generate_and_build', | 227 'action_name': 'generate_and_build', |
228 'inputs': [ | 228 'inputs': [ |
229 '../testing/android/AndroidManifest.xml', | 229 '../testing/android/AndroidManifest.xml', |
230 '../testing/android/generate_native_test.py', | 230 '../testing/android/generate_native_test.py', |
231 '<(PRODUCT_DIR)/lib.target/libui_unittests.so', | 231 '<(SHARED_LIB_DIR)/libui_unittests.so', |
232 '<(PRODUCT_DIR)/lib.java/chromium_base.jar', | 232 '<(PRODUCT_DIR)/lib.java/chromium_base.jar', |
233 ], | 233 ], |
234 'outputs': [ | 234 'outputs': [ |
235 '<(PRODUCT_DIR)/ui_unittests_apk/ui_unittests-debug.apk', | 235 '<(PRODUCT_DIR)/ui_unittests_apk/ui_unittests-debug.apk', |
236 ], | 236 ], |
237 'action': [ | 237 'action': [ |
238 '../testing/android/generate_native_test.py', | 238 '../testing/android/generate_native_test.py', |
239 '--native_library', | 239 '--native_library', |
240 '<(PRODUCT_DIR)/lib.target/libui_unittests.so', | 240 '<(SHARED_LIB_DIR)/libui_unittests.so', |
241 # TODO(jrg): find a better way to specify jar | 241 # TODO(jrg): find a better way to specify jar |
242 # dependencies. Hard coding seems fragile. | 242 # dependencies. Hard coding seems fragile. |
243 '--jar', | 243 '--jar', |
244 '<(PRODUCT_DIR)/lib.java/chromium_base.jar', | 244 '<(PRODUCT_DIR)/lib.java/chromium_base.jar', |
245 '--output', | 245 '--output', |
246 '<(PRODUCT_DIR)/ui_unittests_apk', | 246 '<(PRODUCT_DIR)/ui_unittests_apk', |
247 '--ant-args', | 247 '--ant-args', |
248 '-DPRODUCT_DIR=<(PRODUCT_DIR)', | 248 '-DPRODUCT_DIR=<(absolute_product_dir)', |
249 '--ant-compile' | 249 '--ant-compile' |
250 ], | 250 ], |
251 }, | 251 }, |
252 ] | 252 ] |
253 }, | 253 }, |
254 ], | 254 ], |
255 }], | 255 }], |
256 ], | 256 ], |
257 } | 257 } |
OLD | NEW |