Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: build/common.gypi

Issue 9516005: Move the build config logic for our memory tools into common.gypi. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: set build_for_tool="" by default. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 # Enable plug-in installation by default. 267 # Enable plug-in installation by default.
268 'enable_plugin_installation%': 1, 268 'enable_plugin_installation%': 1,
269 269
270 # Specifies whether to use canvas_skia_skia.cc in place of platform 270 # Specifies whether to use canvas_skia_skia.cc in place of platform
271 # specific implementations of CanvasSkia. Affects text drawing in the 271 # specific implementations of CanvasSkia. Affects text drawing in the
272 # Chrome UI. 272 # Chrome UI.
273 # TODO(asvitkine): Enable this on all platforms and delete this flag. 273 # TODO(asvitkine): Enable this on all platforms and delete this flag.
274 # http://crbug.com/105550 274 # http://crbug.com/105550
275 'use_canvas_skia_skia%': 0, 275 'use_canvas_skia_skia%': 0,
276 276
277 # Set to "tsan", "memcheck", or "drmemory" to configure the build to work
278 # with one of those tools.
279 'build_for_tool%': '',
280
277 'conditions': [ 281 'conditions': [
278 # TODO(epoger): Figure out how to set use_skia=1 for Mac outside of 282 # TODO(epoger): Figure out how to set use_skia=1 for Mac outside of
279 # the 'conditions' clause. Initial attempts resulted in chromium and 283 # the 'conditions' clause. Initial attempts resulted in chromium and
280 # webkit disagreeing on its setting. 284 # webkit disagreeing on its setting.
281 ['OS=="mac"', { 285 ['OS=="mac"', {
282 'use_skia%': '<(use_skia_on_mac)', 286 'use_skia%': '<(use_skia_on_mac)',
283 # Mac uses clang by default, so turn on the plugin as well. 287 # Mac uses clang by default, so turn on the plugin as well.
284 'clang_use_chrome_plugins%': 1, 288 'clang_use_chrome_plugins%': 1,
285 }, { 289 }, {
286 'use_skia%': 1, 290 'use_skia%': 1,
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 ['enable_web_intents_tag==1', { 946 ['enable_web_intents_tag==1', {
943 'grit_defines': ['-D', 'enable_web_intents_tag'], 947 'grit_defines': ['-D', 'enable_web_intents_tag'],
944 }], 948 }],
945 949
946 ['asan==1', { 950 ['asan==1', {
947 'clang%': 1, 951 'clang%': 1,
948 # Do not use Chrome plugins for Clang. The Clang version in 952 # Do not use Chrome plugins for Clang. The Clang version in
949 # third_party/asan may be different from the default one. 953 # third_party/asan may be different from the default one.
950 'clang_use_chrome_plugins%': 0, 954 'clang_use_chrome_plugins%': 0,
951 }], 955 }],
956
957 # On valgrind bots, override the optimizer settings so we don't inline too
958 # much and make the stacks harder to figure out.
959 #
960 # TODO(rnk): Kill off variables that no one else uses and just implement
961 # them under a build_for_tool== condition.
962 ['build_for_tool=="memcheck" or build_for_tool=="tsan"', {
963 # gcc flags
964 'mac_debug_optimization': '1',
965 'mac_release_optimization': '1',
966 'release_optimize': '1',
967 'no_gc_sections': 1,
968 'debug_extra_cflags': '-g -fno-inline -fno-omit-frame-pointer '
969 '-fno-builtin -fno-optimize-sibling-calls',
970 'release_extra_cflags': '-g -fno-inline -fno-omit-frame-pointer '
971 '-fno-builtin -fno-optimize-sibling-calls',
972
973 # MSVS flags for TSan on Pin and Windows.
974 'win_debug_RuntimeChecks': '0',
975 'win_debug_disable_iterator_debugging': '1',
976 'win_debug_Optimization': '1',
977 'win_debug_InlineFunctionExpansion': '0',
978 'win_release_InlineFunctionExpansion': '0',
979 'win_release_OmitFramePointers': '0',
980
981 'linux_use_tcmalloc': 1,
982 'release_valgrind_build': 1,
983 'werror': '',
984 'component': 'static_library',
985 'use_system_zlib': 0,
986 }],
987
988 # Build tweaks for DrMemory.
989 # TODO(rnk): Combine with tsan config to share the builder.
990 # http://crbug.com/108155
991 ['build_for_tool=="drmemory"', {
992 # DrMemory can't handle the debug CRT dll, so build static.
993 'component': 'static_library',
994 # These runtime checks force initialization of stack vars which blocks
995 # DrMemory's uninit detection.
996 'win_debug_RuntimeChecks': '0',
997 # Iterator debugging is slow.
998 'win_debug_disable_iterator_debugging': '1',
999 # Try to disable optimizations that mess up stacks in a release build.
1000 'win_release_InlineFunctionExpansion': '0',
1001 'win_release_OmitFramePointers': '0',
1002 # Keep the code under #ifndef NVALGRIND.
1003 'release_valgrind_build': 1,
1004 }],
952 ], 1005 ],
1006
953 # List of default apps to install in new profiles. The first list contains 1007 # List of default apps to install in new profiles. The first list contains
954 # the source files as found in svn. The second list, used only for linux, 1008 # the source files as found in svn. The second list, used only for linux,
955 # contains the destination location for each of the files. When a crx 1009 # contains the destination location for each of the files. When a crx
956 # is added or removed from the list, the chrome/browser/resources/ 1010 # is added or removed from the list, the chrome/browser/resources/
957 # default_apps/external_extensions.json file must also be updated. 1011 # default_apps/external_extensions.json file must also be updated.
958 'default_apps_list': [ 1012 'default_apps_list': [
959 'browser/resources/default_apps/external_extensions.json', 1013 'browser/resources/default_apps/external_extensions.json',
960 'browser/resources/default_apps/gmail.crx', 1014 'browser/resources/default_apps/gmail.crx',
961 'browser/resources/default_apps/search.crx', 1015 'browser/resources/default_apps/search.crx',
962 'browser/resources/default_apps/youtube.crx', 1016 'browser/resources/default_apps/youtube.crx',
(...skipping 1845 matching lines...) Expand 10 before | Expand all | Expand 10 after
2808 # settings in target dicts. SYMROOT is a special case, because many other 2862 # settings in target dicts. SYMROOT is a special case, because many other
2809 # Xcode variables depend on it, including variables such as 2863 # Xcode variables depend on it, including variables such as
2810 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 2864 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
2811 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 2865 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
2812 # files to appear (when present) in the UI as actual files and not red 2866 # files to appear (when present) in the UI as actual files and not red
2813 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 2867 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
2814 # and therefore SYMROOT, needs to be set at the project level. 2868 # and therefore SYMROOT, needs to be set at the project level.
2815 'SYMROOT': '<(DEPTH)/xcodebuild', 2869 'SYMROOT': '<(DEPTH)/xcodebuild',
2816 }, 2870 },
2817 } 2871 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698