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

Side by Side Diff: build/common.gypi

Issue 839143002: Roll Chrome into Mojo. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase Created 5 years, 11 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
« no previous file with comments | « build/apk_test.gypi ('k') | build/config/BUILDCONFIG.gn » ('j') | 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 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 }], 960 }],
961 961
962 # Disable various features by default on embedded. 962 # Disable various features by default on embedded.
963 ['embedded==1', { 963 ['embedded==1', {
964 'remoting%': 0, 964 'remoting%': 0,
965 'enable_basic_printing%': 0, 965 'enable_basic_printing%': 0,
966 'enable_print_preview%': 0, 966 'enable_print_preview%': 0,
967 }], 967 }],
968 968
969 # By default, use ICU data file (icudtl.dat) on all platforms 969 # By default, use ICU data file (icudtl.dat) on all platforms
970 # except when building Android WebView or Chromecast. 970 # except when building Android WebView.
971 # TODO(jshin): Handle 'use_system_icu' on Linux (Chromium). 971 # TODO(jshin): Handle 'use_system_icu' on Linux (Chromium).
972 # Set the data reduction proxy origin for Android Webview. 972 # Set the data reduction proxy origin for Android Webview.
973 ['android_webview_build==0 and android_webview_telemetry_build==0 and ch romecast==0', { 973 ['android_webview_build==0 and android_webview_telemetry_build==0', {
974 'icu_use_data_file_flag%' : 1, 974 'icu_use_data_file_flag%' : 1,
975 }, { 975 }, {
976 'icu_use_data_file_flag%' : 0, 976 'icu_use_data_file_flag%' : 0,
977 }], 977 }],
978 ['OS=="win" or OS=="mac"', { 978 ['OS=="win" or OS=="mac"', {
979 'enable_wifi_bootstrapping%' : 1, 979 'enable_wifi_bootstrapping%' : 1,
980 }], 980 }],
981 981
982 # Path to sas.dll, which provides the SendSAS function. 982 # Path to sas.dll, which provides the SendSAS function.
983 # http://msdn.microsoft.com/en-us/library/windows/desktop/dd979761(v=vs. 85).aspx 983 # http://msdn.microsoft.com/en-us/library/windows/desktop/dd979761(v=vs. 85).aspx
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after
2130 'grit_rc_header_format': ['-h', '#define {textual_id} __pragma(message(" whitelisted_resource_{numeric_id}")) {numeric_id}'], 2130 'grit_rc_header_format': ['-h', '#define {textual_id} __pragma(message(" whitelisted_resource_{numeric_id}")) {numeric_id}'],
2131 }], 2131 }],
2132 ['enable_mdns==1 or OS=="mac"', { 2132 ['enable_mdns==1 or OS=="mac"', {
2133 'grit_defines': ['-D', 'enable_service_discovery'], 2133 'grit_defines': ['-D', 'enable_service_discovery'],
2134 'enable_service_discovery%': 1 2134 'enable_service_discovery%': 1
2135 }], 2135 }],
2136 ['clang_use_chrome_plugins==1 and OS!="win"', { 2136 ['clang_use_chrome_plugins==1 and OS!="win"', {
2137 'clang_chrome_plugins_flags': [ 2137 'clang_chrome_plugins_flags': [
2138 '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)' 2138 '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)'
2139 ], 2139 ],
2140 'conditions': [
2141 # TODO(dcheng): https://crbug.com/417463 -- work to enable this flag
2142 # on all platforms is currently underway.
2143 ['OS=="linux" and chromeos==0', {
2144 'clang_chrome_plugins_flags': [
2145 '-Xclang',
2146 '-plugin-arg-find-bad-constructs',
2147 '-Xclang',
2148 'strict-virtual-specifiers',
2149 ],
2150 }],
2151 ],
2140 }], 2152 }],
2141 ['asan==1 or msan==1 or lsan==1 or tsan==1', { 2153 ['asan==1 or msan==1 or lsan==1 or tsan==1', {
2142 'clang%': 1, 2154 'clang%': 1,
2143 'use_allocator%': 'none', 2155 'use_allocator%': 'none',
2144 'use_sanitizer_options%': 1, 2156 'use_sanitizer_options%': 1,
2145 }], 2157 }],
2146 ['asan==1 and OS=="linux" and chromeos==0', { 2158 ['asan==1 and OS=="linux" and chromeos==0', {
2147 'use_custom_libcxx%': 1, 2159 'use_custom_libcxx%': 1,
2148 }], 2160 }],
2149 ['ubsan==1', { 2161 ['ubsan==1', {
(...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after
3365 }], 3377 }],
3366 ['win_release_OmitFramePointers==0', { 3378 ['win_release_OmitFramePointers==0', {
3367 'OmitFramePointers': 'false', 3379 'OmitFramePointers': 'false',
3368 # The above is not sufficient (http://crbug.com/106711): it 3380 # The above is not sufficient (http://crbug.com/106711): it
3369 # simply eliminates an explicit "/Oy", but both /O2 and /Ox 3381 # simply eliminates an explicit "/Oy", but both /O2 and /Ox
3370 # perform FPO regardless, so we must explicitly disable. 3382 # perform FPO regardless, so we must explicitly disable.
3371 # We still want the false setting above to avoid having 3383 # We still want the false setting above to avoid having
3372 # "/Oy /Oy-" and warnings about overriding. 3384 # "/Oy /Oy-" and warnings about overriding.
3373 'AdditionalOptions': ['/Oy-'], 3385 'AdditionalOptions': ['/Oy-'],
3374 }], 3386 }],
3387 ['asan==0', {
3388 # Put data in separate COMDATs. This allows the linker
3389 # to put bit-identical constants at the same address even if
3390 # they're unrelated constants, which saves binary size.
3391 # This optimization can't be used when ASan is enabled because
3392 # it is not compatible with the ASan ODR checker.
3393 'AdditionalOptions': ['/Gw'],
3394 }],
3375 ], 3395 ],
3376 'AdditionalOptions': [ 3396 'AdditionalOptions': [
3377 '/d2Zi+', # Improve debugging of Release builds. 3397 '/d2Zi+', # Improve debugging of Release builds.
3378 '/Zc:inline', # Remove unreferenced COMDAT (faster links). 3398 '/Zc:inline', # Remove unreferenced COMDAT (faster links).
3379 '/Gw', # Put data in separate COMDATs.
3380 '<@(win_release_extra_cflags)', 3399 '<@(win_release_extra_cflags)',
3381 ], 3400 ],
3382 }, 3401 },
3383 'VCLinkerTool': { 3402 'VCLinkerTool': {
3384 # LinkIncremental is a tri-state boolean, where 0 means default 3403 # LinkIncremental is a tri-state boolean, where 0 means default
3385 # (i.e., inherit from parent solution), 1 means false, and 3404 # (i.e., inherit from parent solution), 1 means false, and
3386 # 2 means true. 3405 # 2 means true.
3387 'LinkIncremental': '1', 3406 'LinkIncremental': '1',
3388 # This corresponds to the /PROFILE flag which ensures the PDB 3407 # This corresponds to the /PROFILE flag which ensures the PDB
3389 # file contains FIXUP information (growing the PDB file by about 3408 # file contains FIXUP information (growing the PDB file by about
(...skipping 1858 matching lines...) Expand 10 before | Expand all | Expand 10 after
5248 # - "max", whole program optimization and link-time code 5267 # - "max", whole program optimization and link-time code
5249 # generation. This is very expensive and should be used 5268 # generation. This is very expensive and should be used
5250 # sparingly. 5269 # sparingly.
5251 'variables': { 5270 'variables': {
5252 'optimize%': 'size', 5271 'optimize%': 'size',
5253 }, 5272 },
5254 'msvs_settings': { 5273 'msvs_settings': {
5255 'VCLinkerTool': { 5274 'VCLinkerTool': {
5256 # Set /LTCG for the official builds. 5275 # Set /LTCG for the official builds.
5257 'LinkTimeCodeGeneration': '1', 5276 'LinkTimeCodeGeneration': '1',
5277 'AdditionalOptions': [
5278 # Set the number of LTCG code-gen threads to eight.
5279 # The default is four. This gives a 5-10% link speedup.
5280 '/cgthreads:8',
5281 ],
5258 }, 5282 },
5259 }, 5283 },
5260 'target_conditions': [ 5284 'target_conditions': [
5261 ['optimize=="size"', { 5285 ['optimize=="size"', {
5262 'msvs_settings': { 5286 'msvs_settings': {
5263 'VCCLCompilerTool': { 5287 'VCCLCompilerTool': {
5264 # 1, optimizeMinSpace, Minimize Size (/O1) 5288 # 1, optimizeMinSpace, Minimize Size (/O1)
5265 'Optimization': '1', 5289 'Optimization': '1',
5266 # 2, favorSize - Favor small code (/Os) 5290 # 2, favorSize - Favor small code (/Os)
5267 'FavorSizeOrSpeed': '2', 5291 'FavorSizeOrSpeed': '2',
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
5820 # settings in target dicts. SYMROOT is a special case, because many other 5844 # settings in target dicts. SYMROOT is a special case, because many other
5821 # Xcode variables depend on it, including variables such as 5845 # Xcode variables depend on it, including variables such as
5822 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5846 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5823 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5847 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5824 # files to appear (when present) in the UI as actual files and not red 5848 # files to appear (when present) in the UI as actual files and not red
5825 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5849 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5826 # and therefore SYMROOT, needs to be set at the project level. 5850 # and therefore SYMROOT, needs to be set at the project level.
5827 'SYMROOT': '<(DEPTH)/xcodebuild', 5851 'SYMROOT': '<(DEPTH)/xcodebuild',
5828 }, 5852 },
5829 } 5853 }
OLDNEW
« no previous file with comments | « build/apk_test.gypi ('k') | build/config/BUILDCONFIG.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698