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 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
842 | 842 |
843 # The default type of gtest. | 843 # The default type of gtest. |
844 'gtest_target_type%': 'executable', | 844 'gtest_target_type%': 'executable', |
845 | 845 |
846 # Enable sampling based profiler. | 846 # Enable sampling based profiler. |
847 # See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html | 847 # See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html |
848 'profiling%': '0', | 848 'profiling%': '0', |
849 | 849 |
850 # Enable strict glibc debug mode. | 850 # Enable strict glibc debug mode. |
851 'glibcxx_debug%': 0, | 851 'glibcxx_debug%': 0, |
852 | 852 # Compile in Breakpad support by default so that it can be tested, |
853 # Override whether we should use Breakpad on Linux. I.e. for Chrome bot. | 853 # even if it not enabled by default at runtime. |
854 'linux_breakpad%': 0, | 854 'linux_breakpad%': 1, |
855 # And if we want to dump symbols for Breakpad-enabled builds. | 855 # And if we want to dump symbols for Breakpad-enabled builds. |
856 'linux_dump_symbols%': 0, | 856 'linux_dump_symbols%': 0, |
857 # And if we want to strip the binary after dumping symbols. | 857 # And if we want to strip the binary after dumping symbols. |
858 'linux_strip_binary%': 0, | 858 'linux_strip_binary%': 0, |
859 # Strip the test binaries needed for Linux reliability tests. | 859 # Strip the test binaries needed for Linux reliability tests. |
860 'linux_strip_reliability_tests%': 0, | 860 'linux_strip_reliability_tests%': 0, |
861 | 861 |
862 # Enable TCMalloc. | 862 # Enable TCMalloc. |
863 'linux_use_tcmalloc%': 1, | 863 'linux_use_tcmalloc%': 1, |
864 | 864 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 'conditions': [ | 1007 'conditions': [ |
1008 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so | 1008 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so |
1009 # that it takes effect here. | 1009 # that it takes effect here. |
1010 ['clang==0 and asan==0 and tsan==0', { | 1010 ['clang==0 and asan==0 and tsan==0', { |
1011 # This will set gcc_version to XY if you are running gcc X.Y.*. | 1011 # This will set gcc_version to XY if you are running gcc X.Y.*. |
1012 # This is used to tweak build flags for gcc 4.5. | 1012 # This is used to tweak build flags for gcc 4.5. |
1013 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', | 1013 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', |
1014 }, { | 1014 }, { |
1015 'gcc_version%': 0, | 1015 'gcc_version%': 0, |
1016 }], | 1016 }], |
1017 ['branding=="Chrome"', { | |
1018 'linux_breakpad%': 1, | |
1019 }], | |
1020 # All Chrome builds have breakpad symbols, but only process the | 1017 # All Chrome builds have breakpad symbols, but only process the |
1021 # symbols from official builds. | 1018 # symbols from official builds. |
1022 ['(branding=="Chrome" and buildtype=="Official")', { | 1019 ['(branding=="Chrome" and buildtype=="Official")', { |
1023 'linux_dump_symbols%': 1, | 1020 'linux_dump_symbols%': 1, |
1024 }], | 1021 }], |
1025 ], | 1022 ], |
1026 }], # os_posix==1 and OS!="mac" and OS!="ios" | 1023 }], # os_posix==1 and OS!="mac" and OS!="ios" |
1027 ['OS=="ios"', { | 1024 ['OS=="ios"', { |
1028 'disable_nacl%': 1, | 1025 'disable_nacl%': 1, |
1029 'enable_background%': 0, | 1026 'enable_background%': 0, |
(...skipping 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2788 'cflags': [ | 2785 'cflags': [ |
2789 '-finstrument-functions', | 2786 '-finstrument-functions', |
2790 # Allow mmx intrinsics to inline, so that the | 2787 # Allow mmx intrinsics to inline, so that the |
2791 # compiler can expand the intrinsics. | 2788 # compiler can expand the intrinsics. |
2792 '-finstrument-functions-exclude-file-list=mmintrin.h', | 2789 '-finstrument-functions-exclude-file-list=mmintrin.h', |
2793 ], | 2790 ], |
2794 }], | 2791 }], |
2795 ], | 2792 ], |
2796 }], | 2793 }], |
2797 ['linux_breakpad==1', { | 2794 ['linux_breakpad==1', { |
| 2795 'defines': ['USE_LINUX_BREAKPAD'], |
| 2796 }], |
| 2797 ['linux_dump_symbols==1', { |
2798 'cflags': [ '-g' ], | 2798 'cflags': [ '-g' ], |
2799 'defines': ['USE_LINUX_BREAKPAD'], | |
2800 'conditions': [ | 2799 'conditions': [ |
2801 ['target_arch=="ia32"', { | 2800 ['target_arch=="ia32"', { |
2802 'target_conditions': [ | 2801 'target_conditions': [ |
2803 ['_toolset=="target"', { | 2802 ['_toolset=="target"', { |
2804 'ldflags': [ | 2803 'ldflags': [ |
2805 # Workaround for linker OOM. http://crbug.com/160253. | 2804 # Workaround for linker OOM. http://crbug.com/160253. |
2806 '-Wl,--no-keep-files-mapped', | 2805 '-Wl,--no-keep-files-mapped', |
2807 ], | 2806 ], |
2808 }], | 2807 }], |
2809 ], | 2808 ], |
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3957 # settings in target dicts. SYMROOT is a special case, because many other | 3956 # settings in target dicts. SYMROOT is a special case, because many other |
3958 # Xcode variables depend on it, including variables such as | 3957 # Xcode variables depend on it, including variables such as |
3959 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3958 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3960 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3959 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3961 # files to appear (when present) in the UI as actual files and not red | 3960 # files to appear (when present) in the UI as actual files and not red |
3962 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3961 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3963 # and therefore SYMROOT, needs to be set at the project level. | 3962 # and therefore SYMROOT, needs to be set at the project level. |
3964 'SYMROOT': '<(DEPTH)/xcodebuild', | 3963 'SYMROOT': '<(DEPTH)/xcodebuild', |
3965 }, | 3964 }, |
3966 } | 3965 } |
OLD | NEW |