| 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 ], | |
| 620 }, | 617 }, |
| 621 }, | 618 }, |
| 622 'variants': { | 619 'variants': { |
| 623 'coverage': { | 620 'coverage': { |
| 624 'cflags': ['-fprofile-arcs', '-ftest-coverage'], | 621 'cflags': ['-fprofile-arcs', '-ftest-coverage'], |
| 625 'ldflags': ['-fprofile-arcs'], | 622 'ldflags': ['-fprofile-arcs'], |
| 626 }, | 623 }, |
| 627 'profile': { | 624 'profile': { |
| 628 'cflags': ['-pg', '-g'], | 625 'cflags': ['-pg', '-g'], |
| 629 'ldflags': ['-pg'], | 626 'ldflags': ['-pg'], |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 975 # and therefore SYMROOT, needs to be set at the project level. | 972 # and therefore SYMROOT, needs to be set at the project level. |
| 976 'SYMROOT': '<(DEPTH)/xcodebuild', | 973 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 977 }, | 974 }, |
| 978 } | 975 } |
| 979 | 976 |
| 980 # Local Variables: | 977 # Local Variables: |
| 981 # tab-width:2 | 978 # tab-width:2 |
| 982 # indent-tabs-mode:nil | 979 # indent-tabs-mode:nil |
| 983 # End: | 980 # End: |
| 984 # vim: set expandtab tabstop=2 shiftwidth=2: | 981 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |