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 2755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2766 # Only link with needed input sections. This is to avoid | 2766 # Only link with needed input sections. This is to avoid |
2767 # getting undefined reference to __cxa_bad_typeid in the CDU | 2767 # getting undefined reference to __cxa_bad_typeid in the CDU |
2768 # library. | 2768 # library. |
2769 '-Wl,--gc-sections', | 2769 '-Wl,--gc-sections', |
2770 # Warn in case of text relocations. | 2770 # Warn in case of text relocations. |
2771 '-Wl,--warn-shared-textrel', | 2771 '-Wl,--warn-shared-textrel', |
2772 ], | 2772 ], |
2773 }], | 2773 }], |
2774 ['OS=="android" and android_webview_build==1', { | 2774 ['OS=="android" and android_webview_build==1', { |
2775 'ldflags!': [ | 2775 'ldflags!': [ |
2776 # Must not turn on --fatal-warnings, see crbug.com/157326. | 2776 # Must not turn on --fatal-warnings or warn-shared-textrel, |
| 2777 # see crbug.com/157326. |
2777 '-Wl,--fatal-warnings', | 2778 '-Wl,--fatal-warnings', |
| 2779 '-Wl,--warn-shared-textrel', |
2778 ], | 2780 ], |
2779 }], | 2781 }], |
2780 ['OS=="android" and android_full_debug==0', { | 2782 ['OS=="android" and android_full_debug==0', { |
2781 # Some configurations are copied from Release_Base to reduce | 2783 # Some configurations are copied from Release_Base to reduce |
2782 # the binary size. | 2784 # the binary size. |
2783 'variables': { | 2785 'variables': { |
2784 'debug_optimize%': 's', | 2786 'debug_optimize%': 's', |
2785 }, | 2787 }, |
2786 'cflags': [ | 2788 'cflags': [ |
2787 '-fomit-frame-pointer', | 2789 '-fomit-frame-pointer', |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2845 '-fomit-frame-pointer', | 2847 '-fomit-frame-pointer', |
2846 ], | 2848 ], |
2847 'ldflags': [ | 2849 'ldflags': [ |
2848 '-Wl,--fatal-warnings', | 2850 '-Wl,--fatal-warnings', |
2849 # Warn in case of text relocations. | 2851 # Warn in case of text relocations. |
2850 '-Wl,--warn-shared-textrel', | 2852 '-Wl,--warn-shared-textrel', |
2851 ], | 2853 ], |
2852 }], | 2854 }], |
2853 ['OS=="android" and android_webview_build==1', { | 2855 ['OS=="android" and android_webview_build==1', { |
2854 'ldflags!': [ | 2856 'ldflags!': [ |
2855 # Must not turn on --fatal-warnings, see crbug.com/157326. | 2857 # Must not turn on --fatal-warnings or |
| 2858 # shared-text-rel, see crbug.com/157326. |
2856 '-Wl,--fatal-warnings', | 2859 '-Wl,--fatal-warnings', |
| 2860 '-Wl,--warn-shared-textrel', |
2857 ], | 2861 ], |
2858 }], | 2862 }], |
2859 ['clang==1', { | 2863 ['clang==1', { |
2860 'cflags!': [ | 2864 'cflags!': [ |
2861 '-fno-ident', | 2865 '-fno-ident', |
2862 ], | 2866 ], |
2863 }], | 2867 }], |
2864 ['profiling==1', { | 2868 ['profiling==1', { |
2865 'cflags': [ | 2869 'cflags': [ |
2866 '-fno-omit-frame-pointer', | 2870 '-fno-omit-frame-pointer', |
(...skipping 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4634 # settings in target dicts. SYMROOT is a special case, because many other | 4638 # settings in target dicts. SYMROOT is a special case, because many other |
4635 # Xcode variables depend on it, including variables such as | 4639 # Xcode variables depend on it, including variables such as |
4636 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4640 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4637 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4641 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4638 # files to appear (when present) in the UI as actual files and not red | 4642 # files to appear (when present) in the UI as actual files and not red |
4639 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4643 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4640 # and therefore SYMROOT, needs to be set at the project level. | 4644 # and therefore SYMROOT, needs to be set at the project level. |
4641 'SYMROOT': '<(DEPTH)/xcodebuild', | 4645 'SYMROOT': '<(DEPTH)/xcodebuild', |
4642 }, | 4646 }, |
4643 } | 4647 } |
OLD | NEW |