Chromium Code Reviews| 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 'x/gfx_x11.gyp:gfx_x11', | 375 'x/gfx_x11.gyp:gfx_x11', |
|
sadrul
2014/05/20 16:53:31
path_x11.cc uses the XCreateRegion etc. functions.
tfarina
2014/05/20 21:08:59
Done. But doing it here does not add -lX11 to comm
| |
| 376 ], | 376 ], |
| 377 }], | 377 }], |
| 378 ['use_pango==1', { | 378 ['use_pango==1', { |
| 379 'dependencies': [ | 379 'dependencies': [ |
| 380 '<(DEPTH)/build/linux/system.gyp:pangocairo', | 380 '<(DEPTH)/build/linux/system.gyp:pangocairo', |
| 381 ], | 381 ], |
| 382 'sources!': [ | 382 'sources!': [ |
| 383 'platform_font_ozone.cc', | 383 'platform_font_ozone.cc', |
| 384 'render_text_ozone.cc', | 384 'render_text_ozone.cc', |
| 385 ], | 385 ], |
| (...skipping 45 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 } | |
| 532 ], | 441 ], |
| 533 'conditions': [ | 442 'conditions': [ |
| 534 ['OS=="android"' , { | 443 ['OS=="android"' , { |
| 535 'targets': [ | 444 'targets': [ |
| 536 { | 445 { |
| 537 'target_name': 'gfx_jni_headers', | 446 'target_name': 'gfx_jni_headers', |
| 538 'type': 'none', | 447 'type': 'none', |
| 539 'sources': [ | 448 'sources': [ |
| 540 '../android/java/src/org/chromium/ui/gfx/BitmapHelper.java', | 449 '../android/java/src/org/chromium/ui/gfx/BitmapHelper.java', |
| 541 '../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java', | 450 '../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java', |
| 542 '../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java ', | 451 '../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java ', |
| 543 ], | 452 ], |
| 544 'variables': { | 453 'variables': { |
| 545 'jni_gen_package': 'ui/gfx', | 454 'jni_gen_package': 'ui/gfx', |
| 546 }, | 455 }, |
| 547 'includes': [ '../../build/jni_generator.gypi' ], | 456 'includes': [ '../../build/jni_generator.gypi' ], |
| 548 }, | 457 }, |
| 549 ], | 458 ], |
| 550 }], | 459 }], |
| 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 ], | 460 ], |
| 567 } | 461 } |
| OLD | NEW |