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 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
969 | 969 |
970 # The default type of gtest. | 970 # The default type of gtest. |
971 'gtest_target_type%': 'executable', | 971 'gtest_target_type%': 'executable', |
972 | 972 |
973 # Enable sampling based profiler. | 973 # Enable sampling based profiler. |
974 # See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html | 974 # See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html |
975 'profiling%': '0', | 975 'profiling%': '0', |
976 # Profile without optimizing out stack frames when profiling==1. | 976 # Profile without optimizing out stack frames when profiling==1. |
977 'profiling_full_stack_frames%': '0', | 977 'profiling_full_stack_frames%': '0', |
978 | 978 |
| 979 # Enable strict glibc debug mode. |
| 980 'glibcxx_debug%': 0, |
979 # And if we want to dump symbols for Breakpad-enabled builds. | 981 # And if we want to dump symbols for Breakpad-enabled builds. |
980 'linux_dump_symbols%': 0, | 982 'linux_dump_symbols%': 0, |
981 # And if we want to strip the binary after dumping symbols. | 983 # And if we want to strip the binary after dumping symbols. |
982 'linux_strip_binary%': 0, | 984 'linux_strip_binary%': 0, |
983 # Strip the test binaries needed for Linux reliability tests. | 985 # Strip the test binaries needed for Linux reliability tests. |
984 'linux_strip_reliability_tests%': 0, | 986 'linux_strip_reliability_tests%': 0, |
985 | 987 |
986 # Enable TCMalloc. | 988 # Enable TCMalloc. |
987 'linux_use_tcmalloc%': 1, | 989 'linux_use_tcmalloc%': 1, |
988 'android_use_tcmalloc%': 0, | 990 'android_use_tcmalloc%': 0, |
(...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1957 }], | 1959 }], |
1958 ['file_manager_extension==1', { | 1960 ['file_manager_extension==1', { |
1959 'defines': ['FILE_MANAGER_EXTENSION=1'], | 1961 'defines': ['FILE_MANAGER_EXTENSION=1'], |
1960 }], | 1962 }], |
1961 ['image_loader_extension==1', { | 1963 ['image_loader_extension==1', { |
1962 'defines': ['IMAGE_LOADER_EXTENSION=1'], | 1964 'defines': ['IMAGE_LOADER_EXTENSION=1'], |
1963 }], | 1965 }], |
1964 ['profiling==1', { | 1966 ['profiling==1', { |
1965 'defines': ['ENABLE_PROFILING=1'], | 1967 'defines': ['ENABLE_PROFILING=1'], |
1966 }], | 1968 }], |
| 1969 ['OS=="linux" and glibcxx_debug==1', { |
| 1970 'defines': ['_GLIBCXX_DEBUG=1',], |
| 1971 'cflags_cc+': ['-g'], |
| 1972 }], |
1967 ['remoting==1', { | 1973 ['remoting==1', { |
1968 'defines': ['ENABLE_REMOTING=1'], | 1974 'defines': ['ENABLE_REMOTING=1'], |
1969 }], | 1975 }], |
1970 ['enable_webrtc==1', { | 1976 ['enable_webrtc==1', { |
1971 'defines': ['ENABLE_WEBRTC=1'], | 1977 'defines': ['ENABLE_WEBRTC=1'], |
1972 }], | 1978 }], |
1973 ['proprietary_codecs==1', { | 1979 ['proprietary_codecs==1', { |
1974 'defines': ['USE_PROPRIETARY_CODECS'], | 1980 'defines': ['USE_PROPRIETARY_CODECS'], |
1975 }], | 1981 }], |
1976 ['enable_viewport==1', { | 1982 ['enable_viewport==1', { |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2540 'conditions': [ | 2546 'conditions': [ |
2541 ['OS=="linux" or OS=="android"', { | 2547 ['OS=="linux" or OS=="android"', { |
2542 'target_conditions': [ | 2548 'target_conditions': [ |
2543 ['_toolset=="target"', { | 2549 ['_toolset=="target"', { |
2544 'cflags': [ | 2550 'cflags': [ |
2545 '<@(debug_extra_cflags)', | 2551 '<@(debug_extra_cflags)', |
2546 ], | 2552 ], |
2547 }], | 2553 }], |
2548 ], | 2554 ], |
2549 }], | 2555 }], |
2550 ['OS=="linux" and clang!=1 and target_arch!="ia32"', { | |
2551 # Enable libstdc++ debugging facilities to help catch problems | |
2552 # early, see http://crbug.com/65151 . | |
2553 # TODO(phajdan.jr): Should we enable this for all of POSIX? | |
2554 'defines': ['_GLIBCXX_DEBUG=1',], | |
2555 'cflags_cc+': ['-g'], | |
2556 }], | |
2557 # Disabled on iOS because it was causing a crash on startup. | 2556 # Disabled on iOS because it was causing a crash on startup. |
2558 # TODO(michelea): investigate, create a reduced test and possibly | 2557 # TODO(michelea): investigate, create a reduced test and possibly |
2559 # submit a radar. | 2558 # submit a radar. |
2560 ['release_valgrind_build==0 and OS!="ios"', { | 2559 ['release_valgrind_build==0 and OS!="ios"', { |
2561 'xcode_settings': { | 2560 'xcode_settings': { |
2562 'OTHER_CFLAGS': [ | 2561 'OTHER_CFLAGS': [ |
2563 '-fstack-protector-all', # Implies -fstack-protector | 2562 '-fstack-protector-all', # Implies -fstack-protector |
2564 ], | 2563 ], |
2565 }, | 2564 }, |
2566 }], | 2565 }], |
(...skipping 2115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4682 # settings in target dicts. SYMROOT is a special case, because many other | 4681 # settings in target dicts. SYMROOT is a special case, because many other |
4683 # Xcode variables depend on it, including variables such as | 4682 # Xcode variables depend on it, including variables such as |
4684 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4683 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4685 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4684 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4686 # files to appear (when present) in the UI as actual files and not red | 4685 # files to appear (when present) in the UI as actual files and not red |
4687 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4686 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4688 # and therefore SYMROOT, needs to be set at the project level. | 4687 # and therefore SYMROOT, needs to be set at the project level. |
4689 'SYMROOT': '<(DEPTH)/xcodebuild', | 4688 'SYMROOT': '<(DEPTH)/xcodebuild', |
4690 }, | 4689 }, |
4691 } | 4690 } |
OLD | NEW |