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 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1373 # to get incremental linking to be faster in debug builds. | 1373 # to get incremental linking to be faster in debug builds. |
1374 'incremental_chrome_dll%': '0', | 1374 'incremental_chrome_dll%': '0', |
1375 | 1375 |
1376 # Experimental setting to break chrome.dll into multiple pieces based on | 1376 # Experimental setting to break chrome.dll into multiple pieces based on |
1377 # process type. | 1377 # process type. |
1378 'chrome_multiple_dll%': '0', | 1378 'chrome_multiple_dll%': '0', |
1379 | 1379 |
1380 # Experimental setting to optimize Chrome's DLLs with PGO. | 1380 # Experimental setting to optimize Chrome's DLLs with PGO. |
1381 'chrome_pgo_phase%': '0', | 1381 'chrome_pgo_phase%': '0', |
1382 | 1382 |
| 1383 # Experimental setting to build the official builds with full WPO. |
| 1384 'full_wpo_on_official%': '0', |
| 1385 |
1383 # Whether the VS xtree header has been patched to disable warning 4702. If | 1386 # Whether the VS xtree header has been patched to disable warning 4702. If |
1384 # it has, then we don't need to disable 4702 (unreachable code warning). | 1387 # it has, then we don't need to disable 4702 (unreachable code warning). |
1385 # The patch is preapplied to the internal toolchain and hence all bots. | 1388 # The patch is preapplied to the internal toolchain and hence all bots. |
1386 'msvs_xtree_patched%': '<!pymod_do_main(win_is_xtree_patched)', | 1389 'msvs_xtree_patched%': '<!pymod_do_main(win_is_xtree_patched)', |
1387 | 1390 |
1388 # Clang stuff. | 1391 # Clang stuff. |
1389 'clang%': '<(clang)', | 1392 'clang%': '<(clang)', |
1390 'host_clang%': '<(host_clang)', | 1393 'host_clang%': '<(host_clang)', |
1391 'make_clang_dir%': '<(make_clang_dir)', | 1394 'make_clang_dir%': '<(make_clang_dir)', |
1392 'use_lld%': '<(use_lld)', | 1395 'use_lld%': '<(use_lld)', |
(...skipping 4100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5493 }, | 5496 }, |
5494 }, | 5497 }, |
5495 'target_conditions': [ | 5498 'target_conditions': [ |
5496 ['optimize=="size"', { | 5499 ['optimize=="size"', { |
5497 'msvs_settings': { | 5500 'msvs_settings': { |
5498 'VCCLCompilerTool': { | 5501 'VCCLCompilerTool': { |
5499 # 1, optimizeMinSpace, Minimize Size (/O1) | 5502 # 1, optimizeMinSpace, Minimize Size (/O1) |
5500 'Optimization': '1', | 5503 'Optimization': '1', |
5501 # 2, favorSize - Favor small code (/Os) | 5504 # 2, favorSize - Favor small code (/Os) |
5502 'FavorSizeOrSpeed': '2', | 5505 'FavorSizeOrSpeed': '2', |
| 5506 'conditions': [ |
| 5507 ['full_wpo_on_official==1', { |
| 5508 # This implies link time code generation. |
| 5509 'WholeProgramOptimization': 'true', |
| 5510 }], |
| 5511 ], |
5503 }, | 5512 }, |
5504 }, | 5513 }, |
5505 }], | 5514 }], |
5506 # This config is used to avoid a problem in ffmpeg, see | 5515 # This config is used to avoid a problem in ffmpeg, see |
5507 # http://crbug.com/264459. | 5516 # http://crbug.com/264459. |
5508 ['optimize=="size_no_ltcg"', { | 5517 ['optimize=="size_no_ltcg"', { |
5509 'msvs_settings': { | 5518 'msvs_settings': { |
5510 'VCCLCompilerTool': { | 5519 'VCCLCompilerTool': { |
5511 # 1, optimizeMinSpace, Minimize Size (/O1) | 5520 # 1, optimizeMinSpace, Minimize Size (/O1) |
5512 'Optimization': '1', | 5521 'Optimization': '1', |
5513 # 2, favorSize - Favor small code (/Os) | 5522 # 2, favorSize - Favor small code (/Os) |
5514 'FavorSizeOrSpeed': '2', | 5523 'FavorSizeOrSpeed': '2', |
5515 }, | 5524 }, |
5516 }, | 5525 }, |
5517 }], | 5526 }], |
5518 ['optimize=="speed"', { | 5527 ['optimize=="speed"', { |
5519 'msvs_settings': { | 5528 'msvs_settings': { |
5520 'VCCLCompilerTool': { | 5529 'VCCLCompilerTool': { |
5521 # 2, optimizeMaxSpeed, Maximize Speed (/O2) | 5530 # 2, optimizeMaxSpeed, Maximize Speed (/O2) |
5522 'Optimization': '2', | 5531 'Optimization': '2', |
5523 # 1, favorSpeed - Favor fast code (/Ot) | 5532 # 1, favorSpeed - Favor fast code (/Ot) |
5524 'FavorSizeOrSpeed': '1', | 5533 'FavorSizeOrSpeed': '1', |
| 5534 'conditions': [ |
| 5535 ['full_wpo_on_official==1', { |
| 5536 # This implies link time code generation. |
| 5537 'WholeProgramOptimization': 'true', |
| 5538 }], |
| 5539 ], |
5525 }, | 5540 }, |
5526 }, | 5541 }, |
5527 }], | 5542 }], |
5528 ['optimize=="max"', { | 5543 ['optimize=="max"', { |
5529 # Disable Warning 4702 ("Unreachable code") for the WPO/PGO | 5544 # Disable Warning 4702 ("Unreachable code") for the WPO/PGO |
5530 # builds. Probably anything that this would catch that | 5545 # builds. Probably anything that this would catch that |
5531 # wouldn't be caught in a normal build isn't going to | 5546 # wouldn't be caught in a normal build isn't going to |
5532 # actually be a bug, so the incremental value of C4702 for | 5547 # actually be a bug, so the incremental value of C4702 for |
5533 # PGO builds is likely very small. | 5548 # PGO builds is likely very small. |
5534 'msvs_disabled_warnings': [ | 5549 'msvs_disabled_warnings': [ |
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6307 # settings in target dicts. SYMROOT is a special case, because many other | 6322 # settings in target dicts. SYMROOT is a special case, because many other |
6308 # Xcode variables depend on it, including variables such as | 6323 # Xcode variables depend on it, including variables such as |
6309 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6324 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
6310 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6325 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
6311 # files to appear (when present) in the UI as actual files and not red | 6326 # files to appear (when present) in the UI as actual files and not red |
6312 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6327 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
6313 # and therefore SYMROOT, needs to be set at the project level. | 6328 # and therefore SYMROOT, needs to be set at the project level. |
6314 'SYMROOT': '<(DEPTH)/xcodebuild', | 6329 'SYMROOT': '<(DEPTH)/xcodebuild', |
6315 }, | 6330 }, |
6316 } | 6331 } |
OLD | NEW |