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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 # Run tools/clang/scripts/update.sh to make sure they are compiled. | 194 # Run tools/clang/scripts/update.sh to make sure they are compiled. |
195 # This causes 'clang_chrome_plugins_flags' to be set. | 195 # This causes 'clang_chrome_plugins_flags' to be set. |
196 # Has no effect if 'clang' is not set as well. | 196 # Has no effect if 'clang' is not set as well. |
197 'clang_use_chrome_plugins%': 0, | 197 'clang_use_chrome_plugins%': 0, |
198 | 198 |
199 # Enable building with ASAN (Clang's -faddress-sanitizer option). | 199 # Enable building with ASAN (Clang's -faddress-sanitizer option). |
200 # -faddress-sanitizer only works with clang, but asan=1 implies clang=1 | 200 # -faddress-sanitizer only works with clang, but asan=1 implies clang=1 |
201 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre
sssanitizer | 201 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre
sssanitizer |
202 'asan%': 0, | 202 'asan%': 0, |
203 | 203 |
| 204 # Set to true to instrument the code with function call logger. |
| 205 # See src/third_party/cygprofile/cyg-profile.cc for details. |
| 206 'order_profiling%': 0, |
| 207 |
| 208 # Use the provided profiled order file to link Chrome image with it. |
| 209 'order_text_section%' : "", |
| 210 |
204 # Set to 1 compile with -fPIC cflag on linux. This is a must for shared | 211 # Set to 1 compile with -fPIC cflag on linux. This is a must for shared |
205 # libraries on linux x86-64 and arm, plus ASLR. | 212 # libraries on linux x86-64 and arm, plus ASLR. |
206 'linux_fpic%': 1, | 213 'linux_fpic%': 1, |
207 | 214 |
208 # Enable navigator.registerProtocolHandler and supporting UI. | 215 # Enable navigator.registerProtocolHandler and supporting UI. |
209 'enable_register_protocol_handler%': 1, | 216 'enable_register_protocol_handler%': 1, |
210 | 217 |
211 # Enable Web Intents and supporting UI. | 218 # Enable Web Intents and supporting UI. |
212 'enable_web_intents%': 0, | 219 'enable_web_intents%': 0, |
213 | 220 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 'use_threaded_compositing%': '<(use_threaded_compositing)', | 394 'use_threaded_compositing%': '<(use_threaded_compositing)', |
388 'enable_webrtc%': '<(enable_webrtc)', | 395 'enable_webrtc%': '<(enable_webrtc)', |
389 'chromium_win_pch%': '<(chromium_win_pch)', | 396 'chromium_win_pch%': '<(chromium_win_pch)', |
390 'p2p_apis%': '<(p2p_apis)', | 397 'p2p_apis%': '<(p2p_apis)', |
391 'configuration_policy%': '<(configuration_policy)', | 398 'configuration_policy%': '<(configuration_policy)', |
392 'safe_browsing%': '<(safe_browsing)', | 399 'safe_browsing%': '<(safe_browsing)', |
393 'input_speech%': '<(input_speech)', | 400 'input_speech%': '<(input_speech)', |
394 'notifications%': '<(notifications)', | 401 'notifications%': '<(notifications)', |
395 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', | 402 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', |
396 'asan%': '<(asan)', | 403 'asan%': '<(asan)', |
| 404 'order_profiling%': '<(order_profiling)', |
| 405 'order_text_section%': '<(order_text_section)', |
397 'enable_register_protocol_handler%': '<(enable_register_protocol_handler)', | 406 'enable_register_protocol_handler%': '<(enable_register_protocol_handler)', |
398 'enable_web_intents%': '<(enable_web_intents)', | 407 'enable_web_intents%': '<(enable_web_intents)', |
399 # Whether to build for Wayland display server | 408 # Whether to build for Wayland display server |
400 'use_wayland%': 0, | 409 'use_wayland%': 0, |
401 | 410 |
402 # Use system yasm instead of bundled one. | 411 # Use system yasm instead of bundled one. |
403 'use_system_yasm%': 0, | 412 'use_system_yasm%': 0, |
404 | 413 |
405 # Default to enabled PIE; this is important for ASLR but we need to be | 414 # Default to enabled PIE; this is important for ASLR but we need to be |
406 # able to turn it off for remote debugging on Chromium OS | 415 # able to turn it off for remote debugging on Chromium OS |
(...skipping 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1930 '-w', | 1939 '-w', |
1931 ], | 1940 ], |
1932 'ldflags': [ | 1941 'ldflags': [ |
1933 '-fasan', | 1942 '-fasan', |
1934 '-faddress-sanitizer', | 1943 '-faddress-sanitizer', |
1935 ], | 1944 ], |
1936 'defines': [ | 1945 'defines': [ |
1937 'ADDRESS_SANITIZER', | 1946 'ADDRESS_SANITIZER', |
1938 ], | 1947 ], |
1939 }], | 1948 }], |
| 1949 ['order_profiling!=0 and (chromeos==1 or OS=="linux")', { |
| 1950 'target_conditions' : [ |
| 1951 ['_toolset=="target"', { |
| 1952 'cflags': [ '-finstrument-functions' ], |
| 1953 }], |
| 1954 ], |
| 1955 }], |
1940 ['no_strict_aliasing==1', { | 1956 ['no_strict_aliasing==1', { |
1941 'cflags': [ | 1957 'cflags': [ |
1942 '-fno-strict-aliasing', | 1958 '-fno-strict-aliasing', |
1943 ], | 1959 ], |
1944 }], | 1960 }], |
1945 ['linux_breakpad==1', { | 1961 ['linux_breakpad==1', { |
1946 'cflags': [ '-g' ], | 1962 'cflags': [ '-g' ], |
1947 'defines': ['USE_LINUX_BREAKPAD'], | 1963 'defines': ['USE_LINUX_BREAKPAD'], |
1948 }], | 1964 }], |
1949 ['linux_use_heapchecker==1', { | 1965 ['linux_use_heapchecker==1', { |
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2648 # settings in target dicts. SYMROOT is a special case, because many other | 2664 # settings in target dicts. SYMROOT is a special case, because many other |
2649 # Xcode variables depend on it, including variables such as | 2665 # Xcode variables depend on it, including variables such as |
2650 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 2666 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
2651 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 2667 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
2652 # files to appear (when present) in the UI as actual files and not red | 2668 # files to appear (when present) in the UI as actual files and not red |
2653 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 2669 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
2654 # and therefore SYMROOT, needs to be set at the project level. | 2670 # and therefore SYMROOT, needs to be set at the project level. |
2655 'SYMROOT': '<(DEPTH)/xcodebuild', | 2671 'SYMROOT': '<(DEPTH)/xcodebuild', |
2656 }, | 2672 }, |
2657 } | 2673 } |
OLD | NEW |