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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
623 'surfaces/surface_manager.cc', | 624 'surfaces/surface_manager.cc', |
624 'surfaces/surface_manager.h', | 625 'surfaces/surface_manager.h', |
625 'surfaces/surface_resource_holder.cc', | 626 'surfaces/surface_resource_holder.cc', |
626 'surfaces/surface_resource_holder.h', | 627 'surfaces/surface_resource_holder.h', |
627 'surfaces/surfaces_export.h', | 628 'surfaces/surfaces_export.h', |
628 ], | 629 ], |
629 'includes': [ | 630 'includes': [ |
630 '../build/android/increase_size_for_speed.gypi', | 631 '../build/android/increase_size_for_speed.gypi', |
631 ], | 632 ], |
632 }, | 633 }, |
634 { | |
635 'target_name': 'cc_opts', | |
reveman
2015/05/06 18:44:00
hm, do we really need a separate target for this?
radu.velea
2015/05/07 11:21:38
I got the idea from https://codereview.chromium.or
| |
636 'type': 'static_library', | |
637 'conditions': [ | |
638 ['target_arch == "ia32" or target_arch == "x64"', { | |
639 'defines': [ | |
640 'CC_IMPLEMENTATION=1', | |
641 ], | |
642 'dependencies': [ | |
643 'cc_opts_sse', | |
644 ] | |
645 }], | |
646 ], | |
647 }, | |
648 { | |
649 'target_name': 'cc_opts_sse', | |
650 'type': 'static_library', | |
651 'dependencies': [ | |
652 '<(DEPTH)/base/base.gyp:base', | |
653 ], | |
654 'conditions': [ | |
655 ['target_arch == "ia32" or target_arch == "x64"', { | |
656 'defines': [ | |
657 'CC_IMPLEMENTATION=1', | |
658 ], | |
659 'sources': [ | |
660 # Conditional compilation for SSE2 code on x86 and x64 machines | |
661 'resources/texture_compressor_etc1_sse.cc', | |
662 'resources/texture_compressor_etc1_sse.h', | |
663 ], | |
664 'cflags': [ | |
665 '-msse2', | |
reveman
2015/05/06 18:44:00
is this not needed in the gn build case too?
radu.velea
2015/05/07 11:21:38
It seems to compile without it. I'm not sure who s
| |
666 ], | |
667 }], | |
668 ], | |
669 }, | |
633 ], | 670 ], |
634 } | 671 } |
OLD | NEW |