OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 # IMPORTANT: | 5 # IMPORTANT: |
6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
8 { | 8 { |
9 'variables': { | 9 'variables': { |
10 # .gyp files should set chromium_code to 1 if they build Chromium-specific | 10 # .gyp files should set chromium_code to 1 if they build Chromium-specific |
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 'cflags': [ | 607 'cflags': [ |
608 '-O>(release_optimize)', | 608 '-O>(release_optimize)', |
609 # Don't emit the GCC version ident directives, they just end up | 609 # Don't emit the GCC version ident directives, they just end up |
610 # in the .comment section taking up binary size. | 610 # in the .comment section taking up binary size. |
611 '-fno-ident', | 611 '-fno-ident', |
612 # Put data and code in their own sections, so that unused symbols | 612 # Put data and code in their own sections, so that unused symbols |
613 # can be removed at link time with --gc-sections. | 613 # can be removed at link time with --gc-sections. |
614 '-fdata-sections', | 614 '-fdata-sections', |
615 '-ffunction-sections', | 615 '-ffunction-sections', |
616 ], | 616 ], |
| 617 'ldflags': [ |
| 618 '-Wl,--gc-sections', |
| 619 ], |
617 }, | 620 }, |
618 }, | 621 }, |
619 'variants': { | 622 'variants': { |
620 'coverage': { | 623 'coverage': { |
621 'cflags': ['-fprofile-arcs', '-ftest-coverage'], | 624 'cflags': ['-fprofile-arcs', '-ftest-coverage'], |
622 'ldflags': ['-fprofile-arcs'], | 625 'ldflags': ['-fprofile-arcs'], |
623 }, | 626 }, |
624 'profile': { | 627 'profile': { |
625 'cflags': ['-pg', '-g'], | 628 'cflags': ['-pg', '-g'], |
626 'ldflags': ['-pg'], | 629 'ldflags': ['-pg'], |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
972 # and therefore SYMROOT, needs to be set at the project level. | 975 # and therefore SYMROOT, needs to be set at the project level. |
973 'SYMROOT': '<(DEPTH)/xcodebuild', | 976 'SYMROOT': '<(DEPTH)/xcodebuild', |
974 }, | 977 }, |
975 } | 978 } |
976 | 979 |
977 # Local Variables: | 980 # Local Variables: |
978 # tab-width:2 | 981 # tab-width:2 |
979 # indent-tabs-mode:nil | 982 # indent-tabs-mode:nil |
980 # End: | 983 # End: |
981 # vim: set expandtab tabstop=2 shiftwidth=2: | 984 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |