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 2739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2750 }, | 2750 }, |
2751 'defines': [ | 2751 'defines': [ |
2752 '_DEBUG', | 2752 '_DEBUG', |
2753 ], | 2753 ], |
2754 'cflags': [ | 2754 'cflags': [ |
2755 '-O>(debug_optimize)', | 2755 '-O>(debug_optimize)', |
2756 '-g', | 2756 '-g', |
2757 ], | 2757 ], |
2758 'conditions' : [ | 2758 'conditions' : [ |
2759 ['OS=="android"', { | 2759 ['OS=="android"', { |
2760 # Only link with needed input sections. This is to avoid getting | |
2761 # undefined reference to __cxa_bad_typeid in the CDU library. | |
2762 'ldflags': [ | 2760 'ldflags': [ |
| 2761 '-Wl,--fatal-warnings', |
| 2762 # Only link with needed input sections. This is to avoid |
| 2763 # getting undefined reference to __cxa_bad_typeid in the CDU |
| 2764 # library. |
2763 '-Wl,--gc-sections', | 2765 '-Wl,--gc-sections', |
| 2766 # Warn in case of text relocations. |
| 2767 '-Wl,--warn-shared-textrel', |
2764 ], | 2768 ], |
2765 }], | 2769 }], |
2766 ['OS=="android" and android_full_debug==0', { | 2770 ['OS=="android" and android_full_debug==0', { |
2767 # Some configurations are copied from Release_Base to reduce | 2771 # Some configurations are copied from Release_Base to reduce |
2768 # the binary size. | 2772 # the binary size. |
2769 'variables': { | 2773 'variables': { |
2770 'debug_optimize%': 's', | 2774 'debug_optimize%': 's', |
2771 }, | 2775 }, |
2772 'cflags': [ | 2776 'cflags': [ |
2773 '-fomit-frame-pointer', | 2777 '-fomit-frame-pointer', |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2823 '-Wl,--gc-sections', | 2827 '-Wl,--gc-sections', |
2824 ], | 2828 ], |
2825 }], | 2829 }], |
2826 ['OS=="android"', { | 2830 ['OS=="android"', { |
2827 'variables': { | 2831 'variables': { |
2828 'release_optimize%': 's', | 2832 'release_optimize%': 's', |
2829 }, | 2833 }, |
2830 'cflags': [ | 2834 'cflags': [ |
2831 '-fomit-frame-pointer', | 2835 '-fomit-frame-pointer', |
2832 ], | 2836 ], |
| 2837 'ldflags': [ |
| 2838 '-Wl,--fatal-warnings', |
| 2839 # Warn in case of text relocations. |
| 2840 '-Wl,--warn-shared-textrel', |
| 2841 ], |
2833 }], | 2842 }], |
2834 ['clang==1', { | 2843 ['clang==1', { |
2835 'cflags!': [ | 2844 'cflags!': [ |
2836 '-fno-ident', | 2845 '-fno-ident', |
2837 ], | 2846 ], |
2838 }], | 2847 }], |
2839 ['profiling==1', { | 2848 ['profiling==1', { |
2840 'cflags': [ | 2849 'cflags': [ |
2841 '-fno-omit-frame-pointer', | 2850 '-fno-omit-frame-pointer', |
2842 '-g', | 2851 '-g', |
(...skipping 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4599 # settings in target dicts. SYMROOT is a special case, because many other | 4608 # settings in target dicts. SYMROOT is a special case, because many other |
4600 # Xcode variables depend on it, including variables such as | 4609 # Xcode variables depend on it, including variables such as |
4601 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4610 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4602 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4611 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4603 # files to appear (when present) in the UI as actual files and not red | 4612 # files to appear (when present) in the UI as actual files and not red |
4604 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4613 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4605 # and therefore SYMROOT, needs to be set at the project level. | 4614 # and therefore SYMROOT, needs to be set at the project level. |
4606 'SYMROOT': '<(DEPTH)/xcodebuild', | 4615 'SYMROOT': '<(DEPTH)/xcodebuild', |
4607 }, | 4616 }, |
4608 } | 4617 } |
OLD | NEW |