| OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 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 or targets should set chromium_code to 1 if they build | 10 # .gyp files or targets should set chromium_code to 1 if they build |
| (...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 940 'cflags': [ | 940 'cflags': [ |
| 941 '-O>(release_optimize)', | 941 '-O>(release_optimize)', |
| 942 # Don't emit the GCC version ident directives, they just end up | 942 # Don't emit the GCC version ident directives, they just end up |
| 943 # in the .comment section taking up binary size. | 943 # in the .comment section taking up binary size. |
| 944 '-fno-ident', | 944 '-fno-ident', |
| 945 # Put data and code in their own sections, so that unused symbols | 945 # Put data and code in their own sections, so that unused symbols |
| 946 # can be removed at link time with --gc-sections. | 946 # can be removed at link time with --gc-sections. |
| 947 '-fdata-sections', | 947 '-fdata-sections', |
| 948 '-ffunction-sections', | 948 '-ffunction-sections', |
| 949 ], | 949 ], |
| 950 'ldflags': [ |
| 951 # Specifically tell the linker to perform optimizations. |
| 952 # See http://lwn.net/Articles/192624/ . |
| 953 '-Wl,-O1', |
| 954 ], |
| 950 'conditions' : [ | 955 'conditions' : [ |
| 951 ['no_gc_sections==0', { | 956 ['no_gc_sections==0', { |
| 952 'ldflags': [ | 957 'ldflags': [ |
| 953 '-Wl,--gc-sections', | 958 '-Wl,--gc-sections', |
| 954 ], | 959 ], |
| 955 }], | 960 }], |
| 956 ] | 961 ] |
| 957 }, | 962 }, |
| 958 }, | 963 }, |
| 959 'variants': { | 964 'variants': { |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1431 # and therefore SYMROOT, needs to be set at the project level. | 1436 # and therefore SYMROOT, needs to be set at the project level. |
| 1432 'SYMROOT': '<(DEPTH)/xcodebuild', | 1437 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 1433 }, | 1438 }, |
| 1434 } | 1439 } |
| 1435 | 1440 |
| 1436 # Local Variables: | 1441 # Local Variables: |
| 1437 # tab-width:2 | 1442 # tab-width:2 |
| 1438 # indent-tabs-mode:nil | 1443 # indent-tabs-mode:nil |
| 1439 # End: | 1444 # End: |
| 1440 # vim: set expandtab tabstop=2 shiftwidth=2: | 1445 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |