OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 | 190 |
191 # Notifications are compiled in by default. Set to 0 to disable. | 191 # Notifications are compiled in by default. Set to 0 to disable. |
192 'notifications%' : 1, | 192 'notifications%' : 1, |
193 | 193 |
194 # If this is set, the clang plugins used on the buildbot will be used. | 194 # If this is set, the clang plugins used on the buildbot will be used. |
195 # Run tools/clang/scripts/update.sh to make sure they are compiled. | 195 # Run tools/clang/scripts/update.sh to make sure they are compiled. |
196 # This causes 'clang_chrome_plugins_flags' to be set. | 196 # This causes 'clang_chrome_plugins_flags' to be set. |
197 # Has no effect if 'clang' is not set as well. | 197 # Has no effect if 'clang' is not set as well. |
198 'clang_use_chrome_plugins%': 0, | 198 'clang_use_chrome_plugins%': 0, |
199 | 199 |
200 # Enable building with ASAN (Clang's -fasan option). | 200 # Enable building with ASAN (Clang's -faddress-sanitizer option). |
201 # -fasan only works with clang, but asan=1 implies clang=1 | 201 # -faddress-sanitizer only works with clang, but asan=1 implies clang=1 |
202 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre
sssanitizer | 202 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre
sssanitizer |
203 'asan%': 0, | 203 'asan%': 0, |
204 | 204 |
205 # Set to 1 compile with -fPIC cflag on linux. This is a must for shared | 205 # Set to 1 compile with -fPIC cflag on linux. This is a must for shared |
206 # libraries on linux x86-64 and arm, plus ASLR. | 206 # libraries on linux x86-64 and arm, plus ASLR. |
207 'linux_fpic%': 1, | 207 'linux_fpic%': 1, |
208 | 208 |
209 # Enable navigator.registerProtocolHandler and supporting UI. | 209 # Enable navigator.registerProtocolHandler and supporting UI. |
210 'enable_register_protocol_handler%': 1, | 210 'enable_register_protocol_handler%': 1, |
211 | 211 |
(...skipping 1704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1916 }], | 1916 }], |
1917 ['clang==1 and clang_load!="" and clang_add_plugin!=""', { | 1917 ['clang==1 and clang_load!="" and clang_add_plugin!=""', { |
1918 'cflags': [ | 1918 'cflags': [ |
1919 '-Xclang', '-load', '-Xclang', '<(clang_load)', | 1919 '-Xclang', '-load', '-Xclang', '<(clang_load)', |
1920 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)', | 1920 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)', |
1921 ], | 1921 ], |
1922 }], | 1922 }], |
1923 ['asan==1', { | 1923 ['asan==1', { |
1924 # Only in the linux section for now, since ASAN doesn't | 1924 # Only in the linux section for now, since ASAN doesn't |
1925 # work on Mac yet. | 1925 # work on Mac yet. |
| 1926 # TODO(glider): -fasan is deprecated. Remove it when we stop using |
| 1927 # it. |
1926 'cflags': [ | 1928 'cflags': [ |
1927 '-fasan', | 1929 '-fasan', |
| 1930 '-faddress-sanitizer', |
1928 '-w', | 1931 '-w', |
| 1932 '-DADDRESS_SANITIZER', |
1929 ], | 1933 ], |
1930 'ldflags': [ | 1934 'ldflags': [ |
1931 '-fasan', | 1935 '-fasan', |
| 1936 '-faddress-sanitizer', |
1932 ], | 1937 ], |
1933 }], | 1938 }], |
1934 ['no_strict_aliasing==1', { | 1939 ['no_strict_aliasing==1', { |
1935 'cflags': [ | 1940 'cflags': [ |
1936 '-fno-strict-aliasing', | 1941 '-fno-strict-aliasing', |
1937 ], | 1942 ], |
1938 }], | 1943 }], |
1939 ['linux_breakpad==1', { | 1944 ['linux_breakpad==1', { |
1940 'cflags': [ '-g' ], | 1945 'cflags': [ '-g' ], |
1941 'defines': ['USE_LINUX_BREAKPAD'], | 1946 'defines': ['USE_LINUX_BREAKPAD'], |
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2622 # settings in target dicts. SYMROOT is a special case, because many other | 2627 # settings in target dicts. SYMROOT is a special case, because many other |
2623 # Xcode variables depend on it, including variables such as | 2628 # Xcode variables depend on it, including variables such as |
2624 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 2629 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
2625 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 2630 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
2626 # files to appear (when present) in the UI as actual files and not red | 2631 # files to appear (when present) in the UI as actual files and not red |
2627 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 2632 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
2628 # and therefore SYMROOT, needs to be set at the project level. | 2633 # and therefore SYMROOT, needs to be set at the project level. |
2629 'SYMROOT': '<(DEPTH)/xcodebuild', | 2634 'SYMROOT': '<(DEPTH)/xcodebuild', |
2630 }, | 2635 }, |
2631 } | 2636 } |
OLD | NEW |