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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 # -fsanitize=address only works with clang, but asan=1 implies clang=1 | 271 # -fsanitize=address only works with clang, but asan=1 implies clang=1 |
272 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre
sssanitizer | 272 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre
sssanitizer |
273 'asan%': 0, | 273 'asan%': 0, |
274 | 274 |
275 # Enable building with TSAN (Clang's -fsanitize=thread option). | 275 # Enable building with TSAN (Clang's -fsanitize=thread option). |
276 # -fsanitize=thread only works with clang, but tsan=1 implies clang=1 | 276 # -fsanitize=thread only works with clang, but tsan=1 implies clang=1 |
277 # See http://clang.llvm.org/docs/ThreadSanitizer.html | 277 # See http://clang.llvm.org/docs/ThreadSanitizer.html |
278 'tsan%': 0, | 278 'tsan%': 0, |
279 'tsan_blacklist%': '<(PRODUCT_DIR)/../../tools/valgrind/tsan_v2/ignores.tx
t', | 279 'tsan_blacklist%': '<(PRODUCT_DIR)/../../tools/valgrind/tsan_v2/ignores.tx
t', |
280 | 280 |
| 281 # Enable building with MSAN (Clang's -fsanitize=memory option). |
| 282 # MemorySanitizer only works with clang, but msan=1 implies clang=1 |
| 283 # See http://clang.llvm.org/docs/MemorySanitizer.html |
| 284 'msan%': 0, |
| 285 |
281 # Use a modified version of Clang to intercept allocated types and sizes | 286 # Use a modified version of Clang to intercept allocated types and sizes |
282 # for allocated objects. clang_type_profiler=1 implies clang=1. | 287 # for allocated objects. clang_type_profiler=1 implies clang=1. |
283 # See http://dev.chromium.org/developers/deep-memory-profiler/cpp-object-t
ype-identifier | 288 # See http://dev.chromium.org/developers/deep-memory-profiler/cpp-object-t
ype-identifier |
284 # TODO(dmikurube): Support mac. See http://crbug.com/123758#c11 | 289 # TODO(dmikurube): Support mac. See http://crbug.com/123758#c11 |
285 'clang_type_profiler%': 0, | 290 'clang_type_profiler%': 0, |
286 | 291 |
287 # Set to true to instrument the code with function call logger. | 292 # Set to true to instrument the code with function call logger. |
288 # See src/third_party/cygprofile/cyg-profile.cc for details. | 293 # See src/third_party/cygprofile/cyg-profile.cc for details. |
289 'order_profiling%': 0, | 294 'order_profiling%': 0, |
290 | 295 |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 'enable_one_click_signin%': '<(enable_one_click_signin)', | 713 'enable_one_click_signin%': '<(enable_one_click_signin)', |
709 'enable_webrtc%': '<(enable_webrtc)', | 714 'enable_webrtc%': '<(enable_webrtc)', |
710 'chromium_win_pch%': '<(chromium_win_pch)', | 715 'chromium_win_pch%': '<(chromium_win_pch)', |
711 'configuration_policy%': '<(configuration_policy)', | 716 'configuration_policy%': '<(configuration_policy)', |
712 'safe_browsing%': '<(safe_browsing)', | 717 'safe_browsing%': '<(safe_browsing)', |
713 'input_speech%': '<(input_speech)', | 718 'input_speech%': '<(input_speech)', |
714 'notifications%': '<(notifications)', | 719 'notifications%': '<(notifications)', |
715 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', | 720 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', |
716 'mac_want_real_dsym%': '<(mac_want_real_dsym)', | 721 'mac_want_real_dsym%': '<(mac_want_real_dsym)', |
717 'asan%': '<(asan)', | 722 'asan%': '<(asan)', |
| 723 'msan%': '<(msan)', |
718 'tsan%': '<(tsan)', | 724 'tsan%': '<(tsan)', |
719 'tsan_blacklist%': '<(tsan_blacklist)', | 725 'tsan_blacklist%': '<(tsan_blacklist)', |
720 'clang_type_profiler%': '<(clang_type_profiler)', | 726 'clang_type_profiler%': '<(clang_type_profiler)', |
721 'order_profiling%': '<(order_profiling)', | 727 'order_profiling%': '<(order_profiling)', |
722 'order_text_section%': '<(order_text_section)', | 728 'order_text_section%': '<(order_text_section)', |
723 'enable_extensions%': '<(enable_extensions)', | 729 'enable_extensions%': '<(enable_extensions)', |
724 'enable_web_intents_tag%': '<(enable_web_intents_tag)', | 730 'enable_web_intents_tag%': '<(enable_web_intents_tag)', |
725 'enable_plugin_installation%': '<(enable_plugin_installation)', | 731 'enable_plugin_installation%': '<(enable_plugin_installation)', |
726 'enable_plugins%': '<(enable_plugins)', | 732 'enable_plugins%': '<(enable_plugins)', |
727 'enable_session_service%': '<(enable_session_service)', | 733 'enable_session_service%': '<(enable_session_service)', |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1042 ['use_official_google_api_keys==2', { | 1048 ['use_official_google_api_keys==2', { |
1043 'use_official_google_api_keys%': | 1049 'use_official_google_api_keys%': |
1044 '<!(python <(DEPTH)/google_apis/build/check_internal.py <(DEPTH)/goo
gle_apis/internal/google_chrome_api_keys.h)', | 1050 '<!(python <(DEPTH)/google_apis/build/check_internal.py <(DEPTH)/goo
gle_apis/internal/google_chrome_api_keys.h)', |
1045 }], | 1051 }], |
1046 ['os_posix==1 and OS!="mac" and OS!="ios"', { | 1052 ['os_posix==1 and OS!="mac" and OS!="ios"', { |
1047 # Figure out the python architecture to decide if we build pyauto. | 1053 # Figure out the python architecture to decide if we build pyauto. |
1048 'python_arch%': '<!(<(DEPTH)/build/linux/python_arch.sh <(sysroot)/usr/<
(system_libdir)/libpython<(python_ver).so.1.0)', | 1054 'python_arch%': '<!(<(DEPTH)/build/linux/python_arch.sh <(sysroot)/usr/<
(system_libdir)/libpython<(python_ver).so.1.0)', |
1049 'conditions': [ | 1055 'conditions': [ |
1050 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so | 1056 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so |
1051 # that it takes effect here. | 1057 # that it takes effect here. |
1052 ['clang==0 and asan==0 and tsan==0', { | 1058 ['clang==0 and asan==0 and tsan==0 and msan==0', { |
1053 # This will set gcc_version to XY if you are running gcc X.Y.*. | 1059 # This will set gcc_version to XY if you are running gcc X.Y.*. |
1054 # This is used to tweak build flags for gcc 4.5. | 1060 # This is used to tweak build flags for gcc 4.5. |
1055 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', | 1061 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', |
1056 }, { | 1062 }, { |
1057 'gcc_version%': 0, | 1063 'gcc_version%': 0, |
1058 }], | 1064 }], |
1059 ['target_arch=="mipsel"', { | 1065 ['target_arch=="mipsel"', { |
1060 'werror%': '', | 1066 'werror%': '', |
1061 'disable_nacl%': 1, | 1067 'disable_nacl%': 1, |
1062 'linux_use_gold_binary%': 0, | 1068 'linux_use_gold_binary%': 0, |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1469 ['asan==1 and OS=="mac"', { | 1475 ['asan==1 and OS=="mac"', { |
1470 # See http://crbug.com/145503. | 1476 # See http://crbug.com/145503. |
1471 'component': "static_library", | 1477 'component': "static_library", |
1472 # TODO(glider): we do not strip ASan binaries until the dynamic ASan | 1478 # TODO(glider): we do not strip ASan binaries until the dynamic ASan |
1473 # runtime is fully adopted. See http://crbug.com/170629. | 1479 # runtime is fully adopted. See http://crbug.com/170629. |
1474 'mac_strip_release': 0, | 1480 'mac_strip_release': 0, |
1475 }], | 1481 }], |
1476 ['tsan==1', { | 1482 ['tsan==1', { |
1477 'clang%': 1, | 1483 'clang%': 1, |
1478 }], | 1484 }], |
| 1485 ['msan==1', { |
| 1486 'clang%': 1, |
| 1487 }], |
1479 | 1488 |
1480 ['OS=="linux" and clang_type_profiler==1', { | 1489 ['OS=="linux" and clang_type_profiler==1', { |
1481 'clang%': 1, | 1490 'clang%': 1, |
1482 'clang_use_chrome_plugins%': 0, | 1491 'clang_use_chrome_plugins%': 0, |
1483 'conditions': [ | 1492 'conditions': [ |
1484 ['host_arch=="x64"', { | 1493 ['host_arch=="x64"', { |
1485 'make_clang_dir%': 'third_party/llvm-allocated-type/Linux_x64', | 1494 'make_clang_dir%': 'third_party/llvm-allocated-type/Linux_x64', |
1486 }], | 1495 }], |
1487 ['host_arch=="ia32"', { | 1496 ['host_arch=="ia32"', { |
1488 # 32-bit Clang is unsupported. It may not build. Put your 32-bit | 1497 # 32-bit Clang is unsupported. It may not build. Put your 32-bit |
(...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2921 'target_conditions': [ | 2930 'target_conditions': [ |
2922 ['_type=="executable"', { | 2931 ['_type=="executable"', { |
2923 'ldflags': [ | 2932 'ldflags': [ |
2924 '-pie', | 2933 '-pie', |
2925 ], | 2934 ], |
2926 }], | 2935 }], |
2927 ], | 2936 ], |
2928 }], | 2937 }], |
2929 ], | 2938 ], |
2930 }], | 2939 }], |
| 2940 ['msan==1', { |
| 2941 'target_conditions': [ |
| 2942 ['_toolset=="target"', { |
| 2943 'cflags': [ |
| 2944 '-fsanitize=memory', |
| 2945 '-fsanitize-memory-track-origins', |
| 2946 '-fno-omit-frame-pointer', |
| 2947 '-fPIC', |
| 2948 ], |
| 2949 'ldflags': [ |
| 2950 '-fsanitize=memory', |
| 2951 ], |
| 2952 'defines': [ |
| 2953 'MEMORY_SANITIZER', |
| 2954 ], |
| 2955 'target_conditions': [ |
| 2956 ['_type=="executable"', { |
| 2957 'ldflags': [ |
| 2958 '-pie', |
| 2959 ], |
| 2960 }], |
| 2961 ], |
| 2962 }], |
| 2963 ], |
| 2964 }], |
2931 ['order_profiling!=0 and (chromeos==1 or OS=="linux" or OS=="android")
', { | 2965 ['order_profiling!=0 and (chromeos==1 or OS=="linux" or OS=="android")
', { |
2932 'target_conditions' : [ | 2966 'target_conditions' : [ |
2933 ['_toolset=="target"', { | 2967 ['_toolset=="target"', { |
2934 'cflags': [ | 2968 'cflags': [ |
2935 '-finstrument-functions', | 2969 '-finstrument-functions', |
2936 # Allow mmx intrinsics to inline, so that the | 2970 # Allow mmx intrinsics to inline, so that the |
2937 # compiler can expand the intrinsics. | 2971 # compiler can expand the intrinsics. |
2938 '-finstrument-functions-exclude-file-list=mmintrin.h', | 2972 '-finstrument-functions-exclude-file-list=mmintrin.h', |
2939 ], | 2973 ], |
2940 }], | 2974 }], |
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4101 # settings in target dicts. SYMROOT is a special case, because many other | 4135 # settings in target dicts. SYMROOT is a special case, because many other |
4102 # Xcode variables depend on it, including variables such as | 4136 # Xcode variables depend on it, including variables such as |
4103 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4137 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4104 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4138 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4105 # files to appear (when present) in the UI as actual files and not red | 4139 # files to appear (when present) in the UI as actual files and not red |
4106 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4140 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4107 # and therefore SYMROOT, needs to be set at the project level. | 4141 # and therefore SYMROOT, needs to be set at the project level. |
4108 'SYMROOT': '<(DEPTH)/xcodebuild', | 4142 'SYMROOT': '<(DEPTH)/xcodebuild', |
4109 }, | 4143 }, |
4110 } | 4144 } |
OLD | NEW |