| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 'sources': [ | 144 'sources': [ |
| 145 'base/x/events_x_unittest.cc', | 145 'base/x/events_x_unittest.cc', |
| 146 ], | 146 ], |
| 147 }], | 147 }], |
| 148 ['OS != "mac"', { | 148 ['OS != "mac"', { |
| 149 'sources': [ | 149 'sources': [ |
| 150 'gfx/transform_unittest.cc', | 150 'gfx/transform_unittest.cc', |
| 151 'gfx/interpolated_transform_unittest.cc', | 151 'gfx/interpolated_transform_unittest.cc', |
| 152 ], | 152 ], |
| 153 }], | 153 }], |
| 154 ['OS=="android" and "<(gtest_target_type)"=="shared_library"', { | 154 ['OS == "android" and gtest_target_type == "shared_library"', { |
| 155 'dependencies': [ | 155 'dependencies': [ |
| 156 '../testing/android/native_test.gyp:native_test_native_code', | 156 '../testing/android/native_test.gyp:native_test_native_code', |
| 157 ], | 157 ], |
| 158 }], | 158 }], |
| 159 ['use_glib == 1', { | 159 ['use_glib == 1', { |
| 160 'dependencies': [ | 160 'dependencies': [ |
| 161 '../build/linux/system.gyp:pangocairo', | 161 '../build/linux/system.gyp:pangocairo', |
| 162 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', | 162 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', |
| 163 'base/strings/ui_strings.gyp:ui_unittest_strings', | 163 'base/strings/ui_strings.gyp:ui_unittest_strings', |
| 164 ], | 164 ], |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 }], | 202 }], |
| 203 ['use_aura==1 or toolkit_views==1', { | 203 ['use_aura==1 or toolkit_views==1', { |
| 204 'sources': [ | 204 'sources': [ |
| 205 'base/gestures/velocity_calculator_unittest.cc', | 205 'base/gestures/velocity_calculator_unittest.cc', |
| 206 ], | 206 ], |
| 207 }], | 207 }], |
| 208 ], | 208 ], |
| 209 }, | 209 }, |
| 210 ], | 210 ], |
| 211 'conditions': [ | 211 'conditions': [ |
| 212 # Special target to wrap a <(gtest_target_type)==shared_library | 212 # Special target to wrap a gtest_target_type==shared_library |
| 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 '../base/base.gyp:base_java', |
| 221 'ui_unittests', | 222 'ui_unittests', |
| 222 ], | 223 ], |
| 223 'actions': [ | 224 'variables': { |
| 224 { | 225 'test_suite_name': 'ui_unittests', |
| 225 # Generate apk files (including source and antfile) from | 226 'input_shlib_path': '<(PRODUCT_DIR)/lib.target/<(SHARED_LIB_PREFIX)u
i_unittests<(SHARED_LIB_SUFFIX)', |
| 226 # a template, and builds them. | 227 'input_jars_paths': ['<(PRODUCT_DIR)/lib.java/chromium_base.jar',], |
| 227 'action_name': 'generate_and_build', | 228 }, |
| 228 'inputs': [ | 229 'includes': [ '../build/apk_test.gypi' ], |
| 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 }, | 230 }, |
| 254 ], | 231 ], |
| 255 }], | 232 }], |
| 256 ], | 233 ], |
| 257 } | 234 } |
| OLD | NEW |