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 2517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2528 'debug_optimize%': '0', | 2528 'debug_optimize%': '0', |
2529 }, | 2529 }, |
2530 'defines': [ | 2530 'defines': [ |
2531 '_DEBUG', | 2531 '_DEBUG', |
2532 ], | 2532 ], |
2533 'cflags': [ | 2533 'cflags': [ |
2534 '-O>(debug_optimize)', | 2534 '-O>(debug_optimize)', |
2535 '-g', | 2535 '-g', |
2536 ], | 2536 ], |
2537 'conditions' : [ | 2537 'conditions' : [ |
| 2538 ['OS=="android"', { |
| 2539 # Only link with needed input sections. This is to avoid getting |
| 2540 # undefined reference to __cxa_bad_typeid in the CDU library. |
| 2541 'ldflags': [ |
| 2542 '-Wl,--gc-sections', |
| 2543 ], |
| 2544 }], |
2538 ['OS=="android" and android_full_debug==0', { | 2545 ['OS=="android" and android_full_debug==0', { |
2539 # Some configurations are copied from Release_Base to reduce | 2546 # Some configurations are copied from Release_Base to reduce |
2540 # the binary size. | 2547 # the binary size. |
2541 'variables': { | 2548 'variables': { |
2542 'debug_optimize%': 's', | 2549 'debug_optimize%': 's', |
2543 }, | 2550 }, |
2544 'cflags': [ | 2551 'cflags': [ |
2545 '-fomit-frame-pointer', | 2552 '-fomit-frame-pointer', |
2546 '-fdata-sections', | 2553 '-fdata-sections', |
2547 '-ffunction-sections', | 2554 '-ffunction-sections', |
2548 ], | 2555 ], |
2549 'ldflags': [ | 2556 'ldflags': [ |
2550 '-Wl,-O1', | 2557 '-Wl,-O1', |
2551 '-Wl,--as-needed', | 2558 '-Wl,--as-needed', |
2552 '-Wl,--gc-sections', | |
2553 ], | 2559 ], |
2554 }], | 2560 }], |
2555 ['OS=="linux" and target_arch=="ia32"', { | 2561 ['OS=="linux" and target_arch=="ia32"', { |
2556 'ldflags': [ | 2562 'ldflags': [ |
2557 '-Wl,--no-as-needed', | 2563 '-Wl,--no-as-needed', |
2558 ], | 2564 ], |
2559 }], | 2565 }], |
2560 ], | 2566 ], |
2561 }, | 2567 }, |
2562 'Release_Base': { | 2568 'Release_Base': { |
(...skipping 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4161 # settings in target dicts. SYMROOT is a special case, because many other | 4167 # settings in target dicts. SYMROOT is a special case, because many other |
4162 # Xcode variables depend on it, including variables such as | 4168 # Xcode variables depend on it, including variables such as |
4163 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4169 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4164 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4170 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4165 # files to appear (when present) in the UI as actual files and not red | 4171 # files to appear (when present) in the UI as actual files and not red |
4166 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4172 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4167 # and therefore SYMROOT, needs to be set at the project level. | 4173 # and therefore SYMROOT, needs to be set at the project level. |
4168 'SYMROOT': '<(DEPTH)/xcodebuild', | 4174 'SYMROOT': '<(DEPTH)/xcodebuild', |
4169 }, | 4175 }, |
4170 } | 4176 } |
OLD | NEW |