| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 }, | 8 }, |
| 9 'targets': [ | 9 'targets': [ |
| 10 { | 10 { |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 # to have sources that are built on iOS, the target should be changed | 431 # to have sources that are built on iOS, the target should be changed |
| 432 # to be of type static_library on all platforms. | 432 # to be of type static_library on all platforms. |
| 433 'type': 'none', | 433 'type': 'none', |
| 434 # The cocoa files don't apply to iOS. | 434 # The cocoa files don't apply to iOS. |
| 435 'sources/': [ | 435 'sources/': [ |
| 436 ['exclude', 'cocoa'] | 436 ['exclude', 'cocoa'] |
| 437 ], | 437 ], |
| 438 }], | 438 }], |
| 439 ], | 439 ], |
| 440 }, | 440 }, |
| 441 { |
| 442 'target_name': 'gfx_unittests', |
| 443 'type': '<(gtest_target_type)', |
| 444 # iOS uses a small subset of ui. common_sources are the only files that |
| 445 # are built on iOS. |
| 446 'common_sources' : [ |
| 447 'image/image_family_unittest.cc', |
| 448 'image/image_unittest.cc', |
| 449 'image/image_unittest_util.cc', |
| 450 'image/image_unittest_util.h', |
| 451 'image/image_unittest_util_ios.mm', |
| 452 'image/image_unittest_util_mac.mm', |
| 453 ], |
| 454 'all_sources': [ |
| 455 '<@(_common_sources)', |
| 456 'animation/animation_container_unittest.cc', |
| 457 'animation/animation_unittest.cc', |
| 458 'animation/multi_animation_unittest.cc', |
| 459 'animation/slide_animation_unittest.cc', |
| 460 'animation/tween_unittest.cc', |
| 461 'blit_unittest.cc', |
| 462 'break_list_unittest.cc', |
| 463 'codec/jpeg_codec_unittest.cc', |
| 464 'codec/png_codec_unittest.cc', |
| 465 'color_analysis_unittest.cc', |
| 466 'color_utils_unittest.cc', |
| 467 'display_unittest.cc', |
| 468 'geometry/box_unittest.cc', |
| 469 'geometry/cubic_bezier_unittest.cc', |
| 470 'geometry/insets_unittest.cc', |
| 471 'geometry/matrix3_unittest.cc', |
| 472 'geometry/point_unittest.cc', |
| 473 'geometry/point3_unittest.cc', |
| 474 'geometry/quad_unittest.cc', |
| 475 'geometry/r_tree_unittest.cc', |
| 476 'geometry/rect_unittest.cc', |
| 477 'geometry/safe_integer_conversions_unittest.cc', |
| 478 'geometry/size_unittest.cc', |
| 479 'geometry/vector2d_unittest.cc', |
| 480 'geometry/vector3d_unittest.cc', |
| 481 'image/image_mac_unittest.mm', |
| 482 'image/image_util_unittest.cc', |
| 483 'range/range_mac_unittest.mm', |
| 484 'range/range_unittest.cc', |
| 485 'range/range_win_unittest.cc', |
| 486 'sequential_id_generator_unittest.cc', |
| 487 'shadow_value_unittest.cc', |
| 488 'skbitmap_operations_unittest.cc', |
| 489 'skrect_conversion_unittest.cc', |
| 490 'transform_util_unittest.cc', |
| 491 'utf16_indexing_unittest.cc', |
| 492 ], |
| 493 'dependencies': [ |
| 494 '../../base/base.gyp:base', |
| 495 '../../base/base.gyp:run_all_unittests', |
| 496 '../../base/base.gyp:test_support_base', |
| 497 '../../skia/skia.gyp:skia', |
| 498 '../../testing/gtest.gyp:gtest', |
| 499 '../../third_party/libpng/libpng.gyp:libpng', |
| 500 'gfx', |
| 501 'gfx_geometry', |
| 502 'gfx_test_support', |
| 503 ], |
| 504 'conditions': [ |
| 505 ['OS == "ios"', { |
| 506 'sources': ['<@(_common_sources)'], |
| 507 }, { # OS != "ios" |
| 508 'sources': ['<@(_all_sources)'], |
| 509 }], |
| 510 ['OS == "win"', { |
| 511 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 512 'msvs_disabled_warnings': [ 4267, ], |
| 513 }], |
| 514 ['OS != "mac" and OS != "ios"', { |
| 515 'sources': [ |
| 516 'transform_unittest.cc', |
| 517 'interpolated_transform_unittest.cc', |
| 518 ], |
| 519 }], |
| 520 ['OS == "android"', { |
| 521 'sources': [ |
| 522 'android/scroller_unittest.cc', |
| 523 ], |
| 524 }], |
| 525 ['OS == "android" and gtest_target_type == "shared_library"', { |
| 526 'dependencies': [ |
| 527 '../../testing/android/native_test.gyp:native_test_native_code', |
| 528 ], |
| 529 }], |
| 530 ], |
| 531 } |
| 441 ], | 532 ], |
| 442 'conditions': [ | 533 'conditions': [ |
| 443 ['OS=="android"' , { | 534 ['OS=="android"' , { |
| 444 'targets': [ | 535 'targets': [ |
| 445 { | 536 { |
| 446 'target_name': 'gfx_jni_headers', | 537 'target_name': 'gfx_jni_headers', |
| 447 'type': 'none', | 538 'type': 'none', |
| 448 'sources': [ | 539 'sources': [ |
| 449 '../android/java/src/org/chromium/ui/gfx/BitmapHelper.java', | 540 '../android/java/src/org/chromium/ui/gfx/BitmapHelper.java', |
| 450 '../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java', | 541 '../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java', |
| 451 '../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java
', | 542 '../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java
', |
| 452 ], | 543 ], |
| 453 'variables': { | 544 'variables': { |
| 454 'jni_gen_package': 'ui/gfx', | 545 'jni_gen_package': 'ui/gfx', |
| 455 'jni_generator_ptr_type': 'long' | 546 'jni_generator_ptr_type': 'long' |
| 456 }, | 547 }, |
| 457 'includes': [ '../../build/jni_generator.gypi' ], | 548 'includes': [ '../../build/jni_generator.gypi' ], |
| 458 }, | 549 }, |
| 459 ], | 550 ], |
| 460 }], | 551 }], |
| 552 # Special target to wrap a gtest_target_type==shared_library |
| 553 # gfx_unittests into an android apk for execution. |
| 554 # See base.gyp for TODO(jrg)s about this strategy. |
| 555 ['OS == "android" and gtest_target_type == "shared_library"', { |
| 556 'targets': [ |
| 557 { |
| 558 'target_name': 'gfx_unittests_apk', |
| 559 'type': 'none', |
| 560 'dependencies': [ |
| 561 'gfx_unittests', |
| 562 ], |
| 563 'variables': { |
| 564 'test_suite_name': 'gfx_unittests', |
| 565 }, |
| 566 'includes': [ '../../build/apk_test.gypi' ], |
| 567 }, |
| 568 ], |
| 569 }], |
| 461 ], | 570 ], |
| 462 } | 571 } |
| OLD | NEW |