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

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: 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 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 ['enable_web_intents_tag==1', { 936 ['enable_web_intents_tag==1', {
937 'grit_defines': ['-D', 'enable_web_intents_tag'], 937 'grit_defines': ['-D', 'enable_web_intents_tag'],
938 }], 938 }],
939 939
940 ['asan==1', { 940 ['asan==1', {
941 'clang%': 1, 941 'clang%': 1,
942 # Do not use Chrome plugins for Clang. The Clang version in 942 # Do not use Chrome plugins for Clang. The Clang version in
943 # third_party/asan may be different from the default one. 943 # third_party/asan may be different from the default one.
944 'clang_use_chrome_plugins%': 0, 944 'clang_use_chrome_plugins%': 0,
945 }], 945 }],
946
947 # On valgrind bots, override the optimizer settings so we don't inline too
948 # much and make the stacks harder to figure out. Use the same settings
949 # on all buildbot masters to make it easier to move bots.
950 #
951 # TODO(rnk): Kill off variables that no one else uses and just implement
952 # them under a build_for_tool== condition.
953 ['build_for_tool=="memcheck" or build_for_tool=="tsan"', {
954 # gcc flags
955 'mac_debug_optimization': '1',
956 'mac_release_optimization': '1',
957 'release_optimize': '1',
958 'no_gc_sections': 1,
959 'debug_extra_cflags':
960 '-g -fno-inline -fno-omit-frame-pointer -fno-builtin -fno-optimize-sib ling-calls',
Marc-Antoine Ruel (Google) 2012/02/29 00:03:41 style nit: you can split it up in 80 cols with pyt
Reid Kleckner 2012/02/29 20:20:16 GYP is parsed with Python syntax rules and not JSO
961 'release_extra_cflags':
962 '-g -fno-inline -fno-omit-frame-pointer -fno-builtin -fno-optimize-sib ling-calls',
963
964 # MSVS flags
Timur Iskhodzhanov 2012/02/29 09:14:18 # MSVS flags for TSan/Win
Reid Kleckner 2012/02/29 20:20:16 Done.
965 'win_debug_RuntimeChecks': '0',
966 'win_debug_disable_iterator_debugging': '1',
967 'win_debug_Optimization': '1',
968 'win_debug_InlineFunctionExpansion': '0',
969 'win_release_InlineFunctionExpansion': '0',
970 'win_release_OmitFramePointers': '0',
971
972 'linux_use_tcmalloc': 1,
973 'release_valgrind_build': 1,
974 'werror': '',
975 'component': 'static_library',
976 'use_system_zlib': 0,
977 }],
978
979 # TODO(timurrrr): Investigate http://crbug.com/108155 . It would be nice
Timur Iskhodzhanov 2012/02/29 09:14:18 maybe you should move the comment a few lines down
Reid Kleckner 2012/02/29 20:20:16 I think of the comment as referring to the separat
980 # if we could use the same flags as tsan to share a builder, but /O1
981 # breaks our callstacks.
982 ['build_for_tool=="drmemory"', {
983 'win_debug_RuntimeChecks': '0',
984 'win_debug_disable_iterator_debugging': '1',
985 # 'win_debug_Optimization=1 '
986 # 'win_debug_InlineFunctionExpansion=0 '
987 # 'win_debug_OmitFramePointers=0 '
988
989 'win_release_InlineFunctionExpansion': '0',
990 'win_release_OmitFramePointers': '0',
991 # Keep the code under #ifndef NVALGRIND.
992 'release_valgrind_build': 1,
993 # DrMemory can't handle debug CRT dll, so build static.
994 'component': 'static_library',
995 }],
946 ], 996 ],
997
947 # List of default apps to install in new profiles. The first list contains 998 # List of default apps to install in new profiles. The first list contains
948 # the source files as found in svn. The second list, used only for linux, 999 # the source files as found in svn. The second list, used only for linux,
949 # contains the destination location for each of the files. When a crx 1000 # contains the destination location for each of the files. When a crx
950 # is added or removed from the list, the chrome/browser/resources/ 1001 # is added or removed from the list, the chrome/browser/resources/
951 # default_apps/external_extensions.json file must also be updated. 1002 # default_apps/external_extensions.json file must also be updated.
952 'default_apps_list': [ 1003 'default_apps_list': [
953 'browser/resources/default_apps/external_extensions.json', 1004 'browser/resources/default_apps/external_extensions.json',
954 'browser/resources/default_apps/gmail.crx', 1005 'browser/resources/default_apps/gmail.crx',
955 'browser/resources/default_apps/search.crx', 1006 'browser/resources/default_apps/search.crx',
956 'browser/resources/default_apps/youtube.crx', 1007 'browser/resources/default_apps/youtube.crx',
(...skipping 1839 matching lines...) Expand 10 before | Expand all | Expand 10 after
2796 # settings in target dicts. SYMROOT is a special case, because many other 2847 # settings in target dicts. SYMROOT is a special case, because many other
2797 # Xcode variables depend on it, including variables such as 2848 # Xcode variables depend on it, including variables such as
2798 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 2849 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
2799 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 2850 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
2800 # files to appear (when present) in the UI as actual files and not red 2851 # files to appear (when present) in the UI as actual files and not red
2801 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 2852 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
2802 # and therefore SYMROOT, needs to be set at the project level. 2853 # and therefore SYMROOT, needs to be set at the project level.
2803 'SYMROOT': '<(DEPTH)/xcodebuild', 2854 'SYMROOT': '<(DEPTH)/xcodebuild',
2804 }, 2855 },
2805 } 2856 }
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