| 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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 }], | 365 }], |
| 366 ['OS=="android" or OS=="ios"', { | 366 ['OS=="android" or OS=="ios"', { |
| 367 'sources!': [ | 367 'sources!': [ |
| 368 'render_text.cc', | 368 'render_text.cc', |
| 369 'render_text.h', | 369 'render_text.h', |
| 370 'text_utils_skia.cc', | 370 'text_utils_skia.cc', |
| 371 ], | 371 ], |
| 372 }], | 372 }], |
| 373 ['use_x11==1', { | 373 ['use_x11==1', { |
| 374 'dependencies': [ | 374 'dependencies': [ |
| 375 '../../build/linux/system.gyp:x11', |
| 375 'x/gfx_x11.gyp:gfx_x11', | 376 'x/gfx_x11.gyp:gfx_x11', |
| 376 ], | 377 ], |
| 377 }], | 378 }], |
| 378 ['use_pango==1', { | 379 ['use_pango==1', { |
| 379 'dependencies': [ | 380 'dependencies': [ |
| 380 '<(DEPTH)/build/linux/system.gyp:pangocairo', | 381 '<(DEPTH)/build/linux/system.gyp:pangocairo', |
| 381 ], | 382 ], |
| 382 'sources!': [ | 383 'sources!': [ |
| 383 'platform_font_ozone.cc', | 384 'platform_font_ozone.cc', |
| 384 'render_text_ozone.cc', | 385 'render_text_ozone.cc', |
| (...skipping 46 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 | 432 # to have sources that are built on iOS, the target should be changed |
| 432 # to be of type static_library on all platforms. | 433 # to be of type static_library on all platforms. |
| 433 'type': 'none', | 434 'type': 'none', |
| 434 # The cocoa files don't apply to iOS. | 435 # The cocoa files don't apply to iOS. |
| 435 'sources/': [ | 436 'sources/': [ |
| 436 ['exclude', 'cocoa'] | 437 ['exclude', 'cocoa'] |
| 437 ], | 438 ], |
| 438 }], | 439 }], |
| 439 ], | 440 ], |
| 440 }, | 441 }, |
| 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 } | |
| 532 ], | 442 ], |
| 533 'conditions': [ | 443 'conditions': [ |
| 534 ['OS=="android"' , { | 444 ['OS=="android"' , { |
| 535 'targets': [ | 445 'targets': [ |
| 536 { | 446 { |
| 537 'target_name': 'gfx_jni_headers', | 447 'target_name': 'gfx_jni_headers', |
| 538 'type': 'none', | 448 'type': 'none', |
| 539 'sources': [ | 449 'sources': [ |
| 540 '../android/java/src/org/chromium/ui/gfx/BitmapHelper.java', | 450 '../android/java/src/org/chromium/ui/gfx/BitmapHelper.java', |
| 541 '../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java', | 451 '../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java', |
| 542 '../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java
', | 452 '../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java
', |
| 543 ], | 453 ], |
| 544 'variables': { | 454 'variables': { |
| 545 'jni_gen_package': 'ui/gfx', | 455 'jni_gen_package': 'ui/gfx', |
| 546 }, | 456 }, |
| 547 'includes': [ '../../build/jni_generator.gypi' ], | 457 'includes': [ '../../build/jni_generator.gypi' ], |
| 548 }, | 458 }, |
| 549 ], | 459 ], |
| 550 }], | 460 }], |
| 551 ['OS == "android"', { | |
| 552 'targets': [ | |
| 553 { | |
| 554 'target_name': 'gfx_unittests_apk', | |
| 555 'type': 'none', | |
| 556 'dependencies': [ | |
| 557 'gfx_unittests', | |
| 558 ], | |
| 559 'variables': { | |
| 560 'test_suite_name': 'gfx_unittests', | |
| 561 }, | |
| 562 'includes': [ '../../build/apk_test.gypi' ], | |
| 563 }, | |
| 564 ], | |
| 565 }], | |
| 566 ], | 461 ], |
| 567 } | 462 } |
| OLD | NEW |