| 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 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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': [ | 950 'ldflags': [ |
| 951 # Specifically tell the linker to perform optimizations. | 951 # Specifically tell the linker to perform optimizations. |
| 952 # See http://lwn.net/Articles/192624/ . | 952 # See http://lwn.net/Articles/192624/ . |
| 953 '-Wl,-O1', | 953 '-Wl,-O1', |
| 954 '-Wl,--as-needed', |
| 954 ], | 955 ], |
| 955 'conditions' : [ | 956 'conditions' : [ |
| 956 ['no_gc_sections==0', { | 957 ['no_gc_sections==0', { |
| 957 'ldflags': [ | 958 'ldflags': [ |
| 958 '-Wl,--gc-sections', | 959 '-Wl,--gc-sections', |
| 959 ], | 960 ], |
| 960 }], | 961 }], |
| 961 ] | 962 ] |
| 962 }, | 963 }, |
| 963 }, | 964 }, |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1436 # and therefore SYMROOT, needs to be set at the project level. | 1437 # and therefore SYMROOT, needs to be set at the project level. |
| 1437 'SYMROOT': '<(DEPTH)/xcodebuild', | 1438 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 1438 }, | 1439 }, |
| 1439 } | 1440 } |
| 1440 | 1441 |
| 1441 # Local Variables: | 1442 # Local Variables: |
| 1442 # tab-width:2 | 1443 # tab-width:2 |
| 1443 # indent-tabs-mode:nil | 1444 # indent-tabs-mode:nil |
| 1444 # End: | 1445 # End: |
| 1445 # vim: set expandtab tabstop=2 shiftwidth=2: | 1446 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |