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

Side by Side Diff: build/common.gypi

Issue 22243002: GTTF: Enable glibcxx debug mode for Debug builds by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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
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 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 1012
1013 # The default type of gtest. 1013 # The default type of gtest.
1014 'gtest_target_type%': 'executable', 1014 'gtest_target_type%': 'executable',
1015 1015
1016 # Enable sampling based profiler. 1016 # Enable sampling based profiler.
1017 # See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html 1017 # See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html
1018 'profiling%': '0', 1018 'profiling%': '0',
1019 # Profile without optimizing out stack frames when profiling==1. 1019 # Profile without optimizing out stack frames when profiling==1.
1020 'profiling_full_stack_frames%': '0', 1020 'profiling_full_stack_frames%': '0',
1021 1021
1022 # Enable strict glibc debug mode.
1023 'glibcxx_debug%': 0,
1024 # And if we want to dump symbols for Breakpad-enabled builds. 1022 # And if we want to dump symbols for Breakpad-enabled builds.
1025 'linux_dump_symbols%': 0, 1023 'linux_dump_symbols%': 0,
1026 # And if we want to strip the binary after dumping symbols. 1024 # And if we want to strip the binary after dumping symbols.
1027 'linux_strip_binary%': 0, 1025 'linux_strip_binary%': 0,
1028 # Strip the test binaries needed for Linux reliability tests. 1026 # Strip the test binaries needed for Linux reliability tests.
1029 'linux_strip_reliability_tests%': 0, 1027 'linux_strip_reliability_tests%': 0,
1030 1028
1031 # Enable TCMalloc. 1029 # Enable TCMalloc.
1032 'linux_use_tcmalloc%': 1, 1030 'linux_use_tcmalloc%': 1,
1033 'android_use_tcmalloc%': 0, 1031 'android_use_tcmalloc%': 0,
(...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after
2035 }], 2033 }],
2036 ['file_manager_extension==1', { 2034 ['file_manager_extension==1', {
2037 'defines': ['FILE_MANAGER_EXTENSION=1'], 2035 'defines': ['FILE_MANAGER_EXTENSION=1'],
2038 }], 2036 }],
2039 ['image_loader_extension==1', { 2037 ['image_loader_extension==1', {
2040 'defines': ['IMAGE_LOADER_EXTENSION=1'], 2038 'defines': ['IMAGE_LOADER_EXTENSION=1'],
2041 }], 2039 }],
2042 ['profiling==1', { 2040 ['profiling==1', {
2043 'defines': ['ENABLE_PROFILING=1'], 2041 'defines': ['ENABLE_PROFILING=1'],
2044 }], 2042 }],
2045 ['OS=="linux" and glibcxx_debug==1', {
2046 'defines': ['_GLIBCXX_DEBUG=1',],
2047 'cflags_cc+': ['-g'],
2048 }],
2049 ['remoting==1', { 2043 ['remoting==1', {
2050 'defines': ['ENABLE_REMOTING=1'], 2044 'defines': ['ENABLE_REMOTING=1'],
2051 }], 2045 }],
2052 ['enable_webrtc==1', { 2046 ['enable_webrtc==1', {
2053 'defines': ['ENABLE_WEBRTC=1'], 2047 'defines': ['ENABLE_WEBRTC=1'],
2054 }], 2048 }],
2055 ['proprietary_codecs==1', { 2049 ['proprietary_codecs==1', {
2056 'defines': ['USE_PROPRIETARY_CODECS'], 2050 'defines': ['USE_PROPRIETARY_CODECS'],
2057 }], 2051 }],
2058 ['enable_viewport==1', { 2052 ['enable_viewport==1', {
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
2639 'conditions': [ 2633 'conditions': [
2640 ['OS=="linux" or OS=="android"', { 2634 ['OS=="linux" or OS=="android"', {
2641 'target_conditions': [ 2635 'target_conditions': [
2642 ['_toolset=="target"', { 2636 ['_toolset=="target"', {
2643 'cflags': [ 2637 'cflags': [
2644 '<@(debug_extra_cflags)', 2638 '<@(debug_extra_cflags)',
2645 ], 2639 ],
2646 }], 2640 }],
2647 ], 2641 ],
2648 }], 2642 }],
2643 ['OS=="linux" and target_arch!="ia32"', {
2644 # Enable libstdc++ debugging facilities to help catch problems
2645 # early, see http://crbug.com/65151 .
2646 # TODO(phajdan.jr): Should we enable this for all of POSIX?
2647 'defines': ['_GLIBCXX_DEBUG=1',],
2648 'cflags_cc+': ['-g'],
2649 }],
2649 # Disabled on iOS because it was causing a crash on startup. 2650 # Disabled on iOS because it was causing a crash on startup.
2650 # TODO(michelea): investigate, create a reduced test and possibly 2651 # TODO(michelea): investigate, create a reduced test and possibly
2651 # submit a radar. 2652 # submit a radar.
2652 ['release_valgrind_build==0 and OS!="ios"', { 2653 ['release_valgrind_build==0 and OS!="ios"', {
2653 'xcode_settings': { 2654 'xcode_settings': {
2654 'OTHER_CFLAGS': [ 2655 'OTHER_CFLAGS': [
2655 '-fstack-protector-all', # Implies -fstack-protector 2656 '-fstack-protector-all', # Implies -fstack-protector
2656 ], 2657 ],
2657 }, 2658 },
2658 }], 2659 }],
(...skipping 2025 matching lines...) Expand 10 before | Expand all | Expand 10 after
4684 # settings in target dicts. SYMROOT is a special case, because many other 4685 # settings in target dicts. SYMROOT is a special case, because many other
4685 # Xcode variables depend on it, including variables such as 4686 # Xcode variables depend on it, including variables such as
4686 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4687 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4687 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4688 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4688 # files to appear (when present) in the UI as actual files and not red 4689 # files to appear (when present) in the UI as actual files and not red
4689 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4690 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4690 # and therefore SYMROOT, needs to be set at the project level. 4691 # and therefore SYMROOT, needs to be set at the project level.
4691 'SYMROOT': '<(DEPTH)/xcodebuild', 4692 'SYMROOT': '<(DEPTH)/xcodebuild',
4692 }, 4693 },
4693 } 4694 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698