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 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 'cc_unit_tests_source_files': [ | 8 'cc_unit_tests_source_files': [ |
9 'animation/animation_unittest.cc', | 9 'animation/animation_unittest.cc', |
10 'animation/keyframed_animation_curve_unittest.cc', | 10 'animation/keyframed_animation_curve_unittest.cc', |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 'test/run_all_unittests.cc', | 256 'test/run_all_unittests.cc', |
257 'test/cc_test_suite.cc', | 257 'test/cc_test_suite.cc', |
258 '<@(cc_unit_tests_source_files)', | 258 '<@(cc_unit_tests_source_files)', |
259 '<@(cc_surfaces_unit_tests_source_files)', | 259 '<@(cc_surfaces_unit_tests_source_files)', |
260 ], | 260 ], |
261 'include_dirs': [ | 261 'include_dirs': [ |
262 'test', | 262 'test', |
263 '.', | 263 '.', |
264 ], | 264 ], |
265 'conditions': [ | 265 'conditions': [ |
266 ['OS == "android" and gtest_target_type == "shared_library"', | 266 ['OS == "android"', |
267 { | 267 { |
268 'dependencies': [ | 268 'dependencies': [ |
269 '../testing/android/native_test.gyp:native_test_native_code', | 269 '../testing/android/native_test.gyp:native_test_native_code', |
270 ], | 270 ], |
271 } | 271 } |
272 ], | 272 ], |
273 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', | 273 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', |
274 { | 274 { |
275 'conditions': [ | 275 'conditions': [ |
276 [ 'use_allocator!="none"', | 276 [ 'use_allocator!="none"', |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 'test/run_all_perftests.cc', | 316 'test/run_all_perftests.cc', |
317 'trees/layer_tree_host_common_perftest.cc', | 317 'trees/layer_tree_host_common_perftest.cc', |
318 'trees/layer_tree_host_perftest.cc', | 318 'trees/layer_tree_host_perftest.cc', |
319 'trees/occlusion_tracker_perftest.cc', | 319 'trees/occlusion_tracker_perftest.cc', |
320 ], | 320 ], |
321 'include_dirs': [ | 321 'include_dirs': [ |
322 'test', | 322 'test', |
323 '.', | 323 '.', |
324 ], | 324 ], |
325 'conditions': [ | 325 'conditions': [ |
326 ['OS == "android" and gtest_target_type == "shared_library"', | 326 ['OS == "android"', |
327 { | 327 { |
328 'dependencies': [ | 328 'dependencies': [ |
329 '../testing/android/native_test.gyp:native_test_native_code', | 329 '../testing/android/native_test.gyp:native_test_native_code', |
330 ], | 330 ], |
331 } | 331 } |
332 ], | 332 ], |
333 # See http://crbug.com/162998#c4 for why this is needed. | 333 # See http://crbug.com/162998#c4 for why this is needed. |
334 ['OS=="linux" and use_allocator!="none"', | 334 ['OS=="linux" and use_allocator!="none"', |
335 { | 335 { |
336 'dependencies': [ | 336 'dependencies': [ |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 '../ui/gl/gl.gyp:gl', | 368 '../ui/gl/gl.gyp:gl', |
369 ], | 369 ], |
370 'sources': [ | 370 'sources': [ |
371 '<@(cc_tests_support_files)', | 371 '<@(cc_tests_support_files)', |
372 ], | 372 ], |
373 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 373 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
374 'msvs_disabled_warnings': [ 4267, ], | 374 'msvs_disabled_warnings': [ 4267, ], |
375 }, | 375 }, |
376 ], | 376 ], |
377 'conditions': [ | 377 'conditions': [ |
378 # Special target to wrap a gtest_target_type==shared_library | 378 ['OS == "android"', |
379 # cc_unittests into an android apk for execution. | |
380 ['OS == "android" and gtest_target_type == "shared_library"', | |
381 { | 379 { |
382 'targets': [ | 380 'targets': [ |
383 { | 381 { |
384 'target_name': 'cc_unittests_apk', | 382 'target_name': 'cc_unittests_apk', |
385 'type': 'none', | 383 'type': 'none', |
386 'dependencies': [ | 384 'dependencies': [ |
387 'cc_unittests', | 385 'cc_unittests', |
388 ], | 386 ], |
389 'variables': { | 387 'variables': { |
390 'test_suite_name': 'cc_unittests', | 388 'test_suite_name': 'cc_unittests', |
391 }, | 389 }, |
392 'includes': [ '../build/apk_test.gypi' ], | 390 'includes': [ '../build/apk_test.gypi' ], |
393 }, | 391 }, |
394 { | 392 { |
395 'target_name': 'cc_perftests_apk', | 393 'target_name': 'cc_perftests_apk', |
396 'type': 'none', | 394 'type': 'none', |
397 'dependencies': [ | 395 'dependencies': [ |
398 'cc_perftests', | 396 'cc_perftests', |
399 ], | 397 ], |
400 'variables': { | 398 'variables': { |
401 'test_suite_name': 'cc_perftests', | 399 'test_suite_name': 'cc_perftests', |
402 }, | 400 }, |
403 'includes': [ '../build/apk_test.gypi' ], | 401 'includes': [ '../build/apk_test.gypi' ], |
404 }, | 402 }, |
405 ], | 403 ], |
406 } | 404 } |
407 ] | 405 ] |
408 ], | 406 ], |
409 } | 407 } |
OLD | NEW |