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 # 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 expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
(...skipping 2571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2582 'debug_optimize%': '0', | 2582 'debug_optimize%': '0', |
2583 }, | 2583 }, |
2584 'defines': [ | 2584 'defines': [ |
2585 '_DEBUG', | 2585 '_DEBUG', |
2586 ], | 2586 ], |
2587 'cflags': [ | 2587 'cflags': [ |
2588 '-O>(debug_optimize)', | 2588 '-O>(debug_optimize)', |
2589 '-g', | 2589 '-g', |
2590 ], | 2590 ], |
2591 'conditions' : [ | 2591 'conditions' : [ |
| 2592 ['OS=="android"', { |
| 2593 # Only link with needed input sections. This is to avoid getting |
| 2594 # undefined reference to __cxa_bad_typeid in the CDU library. |
| 2595 'ldflags': [ |
| 2596 '-Wl,--gc-sections', |
| 2597 ], |
| 2598 }], |
2592 ['OS=="android" and android_full_debug==0', { | 2599 ['OS=="android" and android_full_debug==0', { |
2593 # Some configurations are copied from Release_Base to reduce | 2600 # Some configurations are copied from Release_Base to reduce |
2594 # the binary size. | 2601 # the binary size. |
2595 'variables': { | 2602 'variables': { |
2596 'debug_optimize%': 's', | 2603 'debug_optimize%': 's', |
2597 }, | 2604 }, |
2598 'cflags': [ | 2605 'cflags': [ |
2599 '-fomit-frame-pointer', | 2606 '-fomit-frame-pointer', |
2600 '-fdata-sections', | 2607 '-fdata-sections', |
2601 '-ffunction-sections', | 2608 '-ffunction-sections', |
2602 ], | 2609 ], |
2603 'ldflags': [ | 2610 'ldflags': [ |
2604 '-Wl,-O1', | 2611 '-Wl,-O1', |
2605 '-Wl,--as-needed', | 2612 '-Wl,--as-needed', |
2606 '-Wl,--gc-sections', | |
2607 ], | 2613 ], |
2608 }], | 2614 }], |
2609 ['OS=="linux" and target_arch=="ia32"', { | 2615 ['OS=="linux" and target_arch=="ia32"', { |
2610 'ldflags': [ | 2616 'ldflags': [ |
2611 '-Wl,--no-as-needed', | 2617 '-Wl,--no-as-needed', |
2612 ], | 2618 ], |
2613 }], | 2619 }], |
2614 ], | 2620 ], |
2615 }, | 2621 }, |
2616 'Release_Base': { | 2622 'Release_Base': { |
(...skipping 1605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4222 # settings in target dicts. SYMROOT is a special case, because many other | 4228 # settings in target dicts. SYMROOT is a special case, because many other |
4223 # Xcode variables depend on it, including variables such as | 4229 # Xcode variables depend on it, including variables such as |
4224 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4230 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4225 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4231 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4226 # files to appear (when present) in the UI as actual files and not red | 4232 # files to appear (when present) in the UI as actual files and not red |
4227 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4233 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4228 # and therefore SYMROOT, needs to be set at the project level. | 4234 # and therefore SYMROOT, needs to be set at the project level. |
4229 'SYMROOT': '<(DEPTH)/xcodebuild', | 4235 'SYMROOT': '<(DEPTH)/xcodebuild', |
4230 }, | 4236 }, |
4231 } | 4237 } |
OLD | NEW |