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 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
11 # GN version: //cc | 11 # GN version: //cc |
12 'target_name': 'cc', | 12 'target_name': 'cc', |
13 'type': '<(component)', | 13 'type': '<(component)', |
14 'dependencies': [ | 14 'dependencies': [ |
15 '<(DEPTH)/base/base.gyp:base', | 15 '<(DEPTH)/base/base.gyp:base', |
16 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d
ynamic_annotations', | 16 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d
ynamic_annotations', |
17 '<(DEPTH)/gpu/gpu.gyp:gpu', | 17 '<(DEPTH)/gpu/gpu.gyp:gpu', |
18 '<(DEPTH)/media/media.gyp:media', | 18 '<(DEPTH)/media/media.gyp:media', |
19 '<(DEPTH)/skia/skia.gyp:skia', | 19 '<(DEPTH)/skia/skia.gyp:skia', |
20 '<(DEPTH)/ui/events/events.gyp:events_base', | 20 '<(DEPTH)/ui/events/events.gyp:events_base', |
21 '<(DEPTH)/ui/gfx/gfx.gyp:gfx', | 21 '<(DEPTH)/ui/gfx/gfx.gyp:gfx', |
22 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry', | 22 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry', |
| 23 'cc_opts', |
23 ], | 24 ], |
24 'variables': { | 25 'variables': { |
25 'optimize': 'max', | 26 'optimize': 'max', |
26 }, | 27 }, |
27 'export_dependent_settings': [ | 28 'export_dependent_settings': [ |
28 '<(DEPTH)/skia/skia.gyp:skia', | 29 '<(DEPTH)/skia/skia.gyp:skia', |
29 ], | 30 ], |
30 'defines': [ | 31 'defines': [ |
31 'CC_IMPLEMENTATION=1', | 32 'CC_IMPLEMENTATION=1', |
32 ], | 33 ], |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 'resources/shared_bitmap.h', | 452 'resources/shared_bitmap.h', |
452 'resources/shared_bitmap_manager.h', | 453 'resources/shared_bitmap_manager.h', |
453 'resources/single_release_callback.cc', | 454 'resources/single_release_callback.cc', |
454 'resources/single_release_callback.h', | 455 'resources/single_release_callback.h', |
455 'resources/single_release_callback_impl.cc', | 456 'resources/single_release_callback_impl.cc', |
456 'resources/single_release_callback_impl.h', | 457 'resources/single_release_callback_impl.h', |
457 'resources/skpicture_content_layer_updater.cc', | 458 'resources/skpicture_content_layer_updater.cc', |
458 'resources/skpicture_content_layer_updater.h', | 459 'resources/skpicture_content_layer_updater.h', |
459 'resources/task_graph_runner.cc', | 460 'resources/task_graph_runner.cc', |
460 'resources/task_graph_runner.h', | 461 'resources/task_graph_runner.h', |
| 462 'resources/texture_compress/atc_dxt.cc', |
| 463 'resources/texture_compress/atc_dxt.h', |
| 464 'resources/texture_compress/etc1.cc', |
| 465 'resources/texture_compress/etc1.h', |
| 466 'resources/texture_compress/texture_compress.cc', |
| 467 'resources/texture_compress/texture_compress.h', |
461 'resources/texture_mailbox.cc', | 468 'resources/texture_mailbox.cc', |
462 'resources/texture_mailbox.h', | 469 'resources/texture_mailbox.h', |
463 'resources/texture_mailbox_deleter.cc', | 470 'resources/texture_mailbox_deleter.cc', |
464 'resources/texture_mailbox_deleter.h', | 471 'resources/texture_mailbox_deleter.h', |
465 'resources/texture_uploader.cc', | 472 'resources/texture_uploader.cc', |
466 'resources/texture_uploader.h', | 473 'resources/texture_uploader.h', |
467 'resources/tile.cc', | 474 'resources/tile.cc', |
468 'resources/tile.h', | 475 'resources/tile.h', |
469 'resources/tile_manager.cc', | 476 'resources/tile_manager.cc', |
470 'resources/tile_manager.h', | 477 'resources/tile_manager.h', |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 'trees/thread_proxy.cc', | 538 'trees/thread_proxy.cc', |
532 'trees/thread_proxy.h', | 539 'trees/thread_proxy.h', |
533 'trees/tree_synchronizer.cc', | 540 'trees/tree_synchronizer.cc', |
534 'trees/tree_synchronizer.h', | 541 'trees/tree_synchronizer.h', |
535 ], | 542 ], |
536 'includes': [ | 543 'includes': [ |
537 '../build/android/increase_size_for_speed.gypi', | 544 '../build/android/increase_size_for_speed.gypi', |
538 ], | 545 ], |
539 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 546 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
540 'msvs_disabled_warnings': [ 4267, ], | 547 'msvs_disabled_warnings': [ 4267, ], |
| 548 'conditions': [ |
| 549 ['OS == "android"', { |
| 550 'includes': [ |
| 551 '../build/android/cpufeatures.gypi', |
| 552 ] |
| 553 }], |
| 554 ], |
541 }, | 555 }, |
542 { | 556 { |
543 # GN version: //cc/surfaces | 557 # GN version: //cc/surfaces |
544 'target_name': 'cc_surfaces', | 558 'target_name': 'cc_surfaces', |
545 'type': '<(component)', | 559 'type': '<(component)', |
546 'dependencies': [ | 560 'dependencies': [ |
547 'cc', | 561 'cc', |
548 '<(DEPTH)/base/base.gyp:base', | 562 '<(DEPTH)/base/base.gyp:base', |
549 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d
ynamic_annotations', | 563 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d
ynamic_annotations', |
550 '<(DEPTH)/skia/skia.gyp:skia', | 564 '<(DEPTH)/skia/skia.gyp:skia', |
(...skipping 22 matching lines...) Expand all Loading... |
573 'surfaces/surface_manager.cc', | 587 'surfaces/surface_manager.cc', |
574 'surfaces/surface_manager.h', | 588 'surfaces/surface_manager.h', |
575 'surfaces/surface_resource_holder.cc', | 589 'surfaces/surface_resource_holder.cc', |
576 'surfaces/surface_resource_holder.h', | 590 'surfaces/surface_resource_holder.h', |
577 'surfaces/surfaces_export.h', | 591 'surfaces/surfaces_export.h', |
578 ], | 592 ], |
579 'includes': [ | 593 'includes': [ |
580 '../build/android/increase_size_for_speed.gypi', | 594 '../build/android/increase_size_for_speed.gypi', |
581 ], | 595 ], |
582 }, | 596 }, |
| 597 { |
| 598 'target_name': 'cc_opts', |
| 599 'type': 'static_library', |
| 600 'conditions': [ |
| 601 ['target_arch == "arm" and arm_version >= 7 and (arm_neon == 1 or arm_ne
on_optional == 1)', { |
| 602 'defines': [ |
| 603 'CC_IMPLEMENTATION=1', |
| 604 ], |
| 605 'dependencies': [ |
| 606 'cc_opts_neon', |
| 607 ] |
| 608 }], |
| 609 ], |
| 610 }, |
| 611 ], |
| 612 'conditions': [ |
| 613 ['target_arch == "arm" and arm_version >= 7 and (arm_neon == 1 or arm_neon_o
ptional == 1)', { |
| 614 'targets': [ |
| 615 { |
| 616 'target_name': 'cc_opts_neon', |
| 617 'type': 'static_library', |
| 618 'dependencies': [ |
| 619 '<(DEPTH)/base/base.gyp:base', |
| 620 ], |
| 621 'defines': [ |
| 622 'CC_IMPLEMENTATION=1', |
| 623 ], |
| 624 'sources': [ |
| 625 'resources/texture_compress/arm/atc_dxt_neon.cc', |
| 626 'resources/texture_compress/arm/atc_dxt_neon.h', |
| 627 'resources/texture_compress/arm/etc1_neon.cc', |
| 628 'resources/texture_compress/arm/etc1_neon.h', |
| 629 ], |
| 630 # behavior similar to *.c.neon in an Android.mk |
| 631 'cflags!': [ |
| 632 '-mfpu=vfpv3-d16', |
| 633 ], |
| 634 'cflags': [ |
| 635 '-mfpu=neon', |
| 636 ], |
| 637 'configurations': { |
| 638 'Release': { |
| 639 'cflags': [ '-O3', '-ffast-math' ], |
| 640 }, |
| 641 }, |
| 642 }, |
| 643 ], |
| 644 }], |
583 ], | 645 ], |
584 } | 646 } |
OLD | NEW |