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 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 | 746 |
747 # Do not enable the Settings App on ChromeOS. | 747 # Do not enable the Settings App on ChromeOS. |
748 ['enable_app_list==1 and chromeos==0', { | 748 ['enable_app_list==1 and chromeos==0', { |
749 'enable_settings_app%': 1, | 749 'enable_settings_app%': 1, |
750 }, { | 750 }, { |
751 'enable_settings_app%': 0, | 751 'enable_settings_app%': 0, |
752 }], | 752 }], |
753 | 753 |
754 ['OS=="linux" and target_arch=="arm" and chromeos==0', { | 754 ['OS=="linux" and target_arch=="arm" and chromeos==0', { |
755 # Set some defaults for arm/linux chrome builds | 755 # Set some defaults for arm/linux chrome builds |
| 756 # TODO(dmikurube): Change the default of use_allocator to "none". |
| 757 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
756 'linux_use_tcmalloc%': 0, | 758 'linux_use_tcmalloc%': 0, |
| 759 'use_allocator%': 'see_use_tcmalloc', |
757 # sysroot needs to be an absolute path otherwise it generates | 760 # sysroot needs to be an absolute path otherwise it generates |
758 # incorrect results when passed to pkg-config | 761 # incorrect results when passed to pkg-config |
759 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/arm-sysroot', | 762 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/arm-sysroot', |
760 }], # OS=="linux" and target_arch=="arm" and chromeos==0 | 763 }], # OS=="linux" and target_arch=="arm" and chromeos==0 |
761 | 764 |
762 ['OS=="linux" and branding=="Chrome" and buildtype=="Official" and chrom
eos==0', { | 765 ['OS=="linux" and branding=="Chrome" and buildtype=="Official" and chrom
eos==0', { |
763 'conditions': [ | 766 'conditions': [ |
764 ['target_arch=="x64"', { | 767 ['target_arch=="x64"', { |
765 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debi
an_wheezy_amd64-sysroot', | 768 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debi
an_wheezy_amd64-sysroot', |
766 }], | 769 }], |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1136 'linux_dump_symbols%': 0, | 1139 'linux_dump_symbols%': 0, |
1137 # And if we want to strip the binary after dumping symbols. | 1140 # And if we want to strip the binary after dumping symbols. |
1138 'linux_strip_binary%': 0, | 1141 'linux_strip_binary%': 0, |
1139 # Strip the test binaries needed for Linux reliability tests. | 1142 # Strip the test binaries needed for Linux reliability tests. |
1140 'linux_strip_reliability_tests%': 0, | 1143 'linux_strip_reliability_tests%': 0, |
1141 # If we want stack unwind support for backtrace(). | 1144 # If we want stack unwind support for backtrace(). |
1142 'debug_unwind_tables%': 1, | 1145 'debug_unwind_tables%': 1, |
1143 'release_unwind_tables%': 1, | 1146 'release_unwind_tables%': 1, |
1144 | 1147 |
1145 # Enable TCMalloc. | 1148 # Enable TCMalloc. |
| 1149 # TODO(dmikurube): Change the default of use_allocator to "tcmalloc". |
| 1150 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
| 1151 # {linux|android}_use_tcmalloc are to be replaced with use_allocator. |
| 1152 # They are now used only if use_allocator=="see_use_tcmalloc" (default). |
| 1153 # TODO(dmikurube): Assert when linux_use_tcmalloc is explicitly specified. |
1146 'linux_use_tcmalloc%': 1, | 1154 'linux_use_tcmalloc%': 1, |
1147 'android_use_tcmalloc%': 0, | 1155 'android_use_tcmalloc%': 0, |
| 1156 'use_allocator%': 'see_use_tcmalloc', |
1148 | 1157 |
1149 # Set to 1 to link against libgnome-keyring instead of using dlopen(). | 1158 # Set to 1 to link against libgnome-keyring instead of using dlopen(). |
1150 'linux_link_gnome_keyring%': 0, | 1159 'linux_link_gnome_keyring%': 0, |
1151 # Set to 1 to link against gsettings APIs instead of using dlopen(). | 1160 # Set to 1 to link against gsettings APIs instead of using dlopen(). |
1152 'linux_link_gsettings%': 0, | 1161 'linux_link_gsettings%': 0, |
1153 | 1162 |
1154 # Default arch variant for MIPS. | 1163 # Default arch variant for MIPS. |
1155 'mips_arch_variant%': 'mips32r1', | 1164 'mips_arch_variant%': 'mips32r1', |
1156 | 1165 |
1157 # Enable use of OpenMAX DL FFT routines. | 1166 # Enable use of OpenMAX DL FFT routines. |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1315 }], | 1324 }], |
1316 ['OS=="win"', { | 1325 ['OS=="win"', { |
1317 'windows_driver_kit_path%': '$(WDK_DIR)', | 1326 'windows_driver_kit_path%': '$(WDK_DIR)', |
1318 }], | 1327 }], |
1319 ['os_posix==1 and OS!="mac" and OS!="ios"', { | 1328 ['os_posix==1 and OS!="mac" and OS!="ios"', { |
1320 'conditions': [ | 1329 'conditions': [ |
1321 ['target_arch=="mipsel"', { | 1330 ['target_arch=="mipsel"', { |
1322 'werror%': '', | 1331 'werror%': '', |
1323 'disable_nacl%': 1, | 1332 'disable_nacl%': 1, |
1324 'nacl_untrusted_build%': 0, | 1333 'nacl_untrusted_build%': 0, |
| 1334 # TODO(dmikurube): Change the default of use_allocator to "none". |
| 1335 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
1325 'linux_use_tcmalloc%': 0, | 1336 'linux_use_tcmalloc%': 0, |
| 1337 'use_allocator%': 'see_use_tcmalloc', |
1326 }], | 1338 }], |
1327 ['OS=="linux" and target_arch=="mipsel"', { | 1339 ['OS=="linux" and target_arch=="mipsel"', { |
1328 'sysroot%': '<(sysroot)', | 1340 'sysroot%': '<(sysroot)', |
1329 'CXX%': '<(CXX)', | 1341 'CXX%': '<(CXX)', |
1330 }], | 1342 }], |
1331 # All Chrome builds have breakpad symbols, but only process the | 1343 # All Chrome builds have breakpad symbols, but only process the |
1332 # symbols from official builds. | 1344 # symbols from official builds. |
1333 ['(branding=="Chrome" and buildtype=="Official")', { | 1345 ['(branding=="Chrome" and buildtype=="Official")', { |
1334 'linux_dump_symbols%': 1, | 1346 'linux_dump_symbols%': 1, |
1335 | 1347 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1470 | 1482 |
1471 # Always uses openssl. | 1483 # Always uses openssl. |
1472 'use_openssl%': 1, | 1484 'use_openssl%': 1, |
1473 | 1485 |
1474 'proprietary_codecs%': '<(proprietary_codecs)', | 1486 'proprietary_codecs%': '<(proprietary_codecs)', |
1475 'safe_browsing%': 2, | 1487 'safe_browsing%': 2, |
1476 'input_speech%': 0, | 1488 'input_speech%': 0, |
1477 'enable_automation%': 0, | 1489 'enable_automation%': 0, |
1478 'java_bridge%': 1, | 1490 'java_bridge%': 1, |
1479 'build_ffmpegsumo%': 0, | 1491 'build_ffmpegsumo%': 0, |
| 1492 # TODO(dmikurube): Change the default of use_allocator to "none". |
| 1493 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
1480 'linux_use_tcmalloc%': 0, | 1494 'linux_use_tcmalloc%': 0, |
| 1495 'use_allocator%': 'see_use_tcmalloc', |
1481 | 1496 |
1482 # Disable Native Client. | 1497 # Disable Native Client. |
1483 'disable_nacl%': 1, | 1498 'disable_nacl%': 1, |
1484 | 1499 |
1485 # Android does not support background apps. | 1500 # Android does not support background apps. |
1486 'enable_background%': 0, | 1501 'enable_background%': 0, |
1487 | 1502 |
1488 # Sessions are store separately in the Java side. | 1503 # Sessions are store separately in the Java side. |
1489 'enable_session_service%': 0, | 1504 'enable_session_service%': 0, |
1490 | 1505 |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1865 '-fno-builtin -fno-optimize-sibling-calls', | 1880 '-fno-builtin -fno-optimize-sibling-calls', |
1866 | 1881 |
1867 # MSVS flags for TSan on Pin and Windows. | 1882 # MSVS flags for TSan on Pin and Windows. |
1868 'win_debug_RuntimeChecks': '0', | 1883 'win_debug_RuntimeChecks': '0', |
1869 'win_debug_disable_iterator_debugging': '1', | 1884 'win_debug_disable_iterator_debugging': '1', |
1870 'win_debug_Optimization': '1', | 1885 'win_debug_Optimization': '1', |
1871 'win_debug_InlineFunctionExpansion': '0', | 1886 'win_debug_InlineFunctionExpansion': '0', |
1872 'win_release_InlineFunctionExpansion': '0', | 1887 'win_release_InlineFunctionExpansion': '0', |
1873 'win_release_OmitFramePointers': '0', | 1888 'win_release_OmitFramePointers': '0', |
1874 | 1889 |
1875 'linux_use_tcmalloc': 1, | 1890 # TODO(dmikurube): Change the default of use_allocator to "tcmalloc". |
| 1891 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
| 1892 'linux_use_tcmalloc%': 1, |
| 1893 'use_allocator': 'see_use_tcmalloc', |
1876 'release_valgrind_build': 1, | 1894 'release_valgrind_build': 1, |
1877 'werror': '', | 1895 'werror': '', |
1878 'component': 'static_library', | 1896 'component': 'static_library', |
1879 'use_system_zlib': 0, | 1897 'use_system_zlib': 0, |
1880 }], | 1898 }], |
1881 | 1899 |
1882 # Build tweaks for DrMemory. | 1900 # Build tweaks for DrMemory. |
1883 # TODO(rnk): Combine with tsan config to share the builder. | 1901 # TODO(rnk): Combine with tsan config to share the builder. |
1884 # http://crbug.com/108155 | 1902 # http://crbug.com/108155 |
1885 ['build_for_tool=="drmemory"', { | 1903 ['build_for_tool=="drmemory"', { |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2112 'defines': [ | 2130 'defines': [ |
2113 # Don't use deprecated V8 APIs anywhere. | 2131 # Don't use deprecated V8 APIs anywhere. |
2114 'V8_DEPRECATION_WARNINGS', | 2132 'V8_DEPRECATION_WARNINGS', |
2115 ], | 2133 ], |
2116 'conditions': [ | 2134 'conditions': [ |
2117 ['(OS=="mac" or OS=="ios") and asan==1', { | 2135 ['(OS=="mac" or OS=="ios") and asan==1', { |
2118 'dependencies': [ | 2136 'dependencies': [ |
2119 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime', | 2137 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime', |
2120 ], | 2138 ], |
2121 }], | 2139 }], |
2122 ['OS=="linux" and linux_use_tcmalloc==1 and clang_type_profiler==1', { | 2140 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
| 2141 ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_use_tcma
lloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1)) and cla
ng_type_profiler==1', { |
2123 'cflags_cc!': ['-fno-rtti'], | 2142 'cflags_cc!': ['-fno-rtti'], |
2124 'cflags_cc+': [ | 2143 'cflags_cc+': [ |
2125 '-frtti', | 2144 '-frtti', |
2126 '-gline-tables-only', | 2145 '-gline-tables-only', |
2127 '-fintercept-allocation-functions', | 2146 '-fintercept-allocation-functions', |
2128 ], | 2147 ], |
2129 'defines': ['TYPE_PROFILING'], | 2148 'defines': ['TYPE_PROFILING'], |
2130 'dependencies': [ | 2149 'dependencies': [ |
2131 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler', | 2150 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler', |
2132 ], | 2151 ], |
(...skipping 1527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3660 ['_toolset=="target"', { | 3679 ['_toolset=="target"', { |
3661 'ldflags': [ | 3680 'ldflags': [ |
3662 # Workaround for linker OOM. | 3681 # Workaround for linker OOM. |
3663 '-Wl,--no-keep-memory', | 3682 '-Wl,--no-keep-memory', |
3664 ], | 3683 ], |
3665 }], | 3684 }], |
3666 ], | 3685 ], |
3667 }], | 3686 }], |
3668 ], | 3687 ], |
3669 }], | 3688 }], |
3670 ['linux_use_tcmalloc==0 and android_use_tcmalloc==0', { | 3689 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
| 3690 ['(use_allocator!="tcmalloc" and (use_allocator!="see_use_tcmalloc" or
linux_use_tcmalloc==0)) and android_use_tcmalloc==0', { |
3671 'defines': ['NO_TCMALLOC'], | 3691 'defines': ['NO_TCMALLOC'], |
3672 }], | 3692 }], |
3673 ['linux_use_gold_flags==1', { | 3693 ['linux_use_gold_flags==1', { |
3674 'target_conditions': [ | 3694 'target_conditions': [ |
3675 ['_toolset=="target"', { | 3695 ['_toolset=="target"', { |
3676 'ldflags': [ | 3696 'ldflags': [ |
3677 # Experimentation found that using four linking threads | 3697 # Experimentation found that using four linking threads |
3678 # saved ~20% of link time. | 3698 # saved ~20% of link time. |
3679 # https://groups.google.com/a/chromium.org/group/chromium-dev/
browse_thread/thread/281527606915bb36 | 3699 # https://groups.google.com/a/chromium.org/group/chromium-dev/
browse_thread/thread/281527606915bb36 |
3680 # Only apply this to the target linker, since the host | 3700 # Only apply this to the target linker, since the host |
(...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5036 # settings in target dicts. SYMROOT is a special case, because many other | 5056 # settings in target dicts. SYMROOT is a special case, because many other |
5037 # Xcode variables depend on it, including variables such as | 5057 # Xcode variables depend on it, including variables such as |
5038 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5058 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5039 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5059 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5040 # files to appear (when present) in the UI as actual files and not red | 5060 # files to appear (when present) in the UI as actual files and not red |
5041 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5061 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5042 # and therefore SYMROOT, needs to be set at the project level. | 5062 # and therefore SYMROOT, needs to be set at the project level. |
5043 'SYMROOT': '<(DEPTH)/xcodebuild', | 5063 'SYMROOT': '<(DEPTH)/xcodebuild', |
5044 }, | 5064 }, |
5045 } | 5065 } |
OLD | NEW |