| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 import pipes | 5 import pipes |
| 6 | 6 |
| 7 from slave.recipe_config import config_item_context, ConfigGroup | 7 from slave.recipe_config import config_item_context, ConfigGroup |
| 8 from slave.recipe_config import Dict, List, Single, Static, Set, BadConf | 8 from slave.recipe_config import Dict, List, Single, Static, Set, BadConf |
| 9 from slave.recipe_config_types import Path | 9 from slave.recipe_config_types import Path |
| 10 | 10 |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 def _memory_tool(c, tool): | 480 def _memory_tool(c, tool): |
| 481 if tool not in MEMORY_TOOLS: # pragma: no cover | 481 if tool not in MEMORY_TOOLS: # pragma: no cover |
| 482 raise BadConf('"%s" is not a supported memory tool, the supported ones ' | 482 raise BadConf('"%s" is not a supported memory tool, the supported ones ' |
| 483 'are: %s' % (tool, ','.join(MEMORY_TOOLS))) | 483 'are: %s' % (tool, ','.join(MEMORY_TOOLS))) |
| 484 c.runtests.memory_tool = tool | 484 c.runtests.memory_tool = tool |
| 485 | 485 |
| 486 @config_ctx() | 486 @config_ctx() |
| 487 def trybot_flavor(c): | 487 def trybot_flavor(c): |
| 488 fastbuild(c, optional=True) | 488 fastbuild(c, optional=True) |
| 489 dcheck(c, optional=True) | 489 dcheck(c, optional=True) |
| 490 linux_dump_symbols(c) |
| 490 | 491 |
| 491 @config_ctx() | 492 @config_ctx() |
| 492 def gn_component_build(c): | 493 def gn_component_build(c): |
| 493 c.gn_args.append('is_component_build=true') | 494 c.gn_args.append('is_component_build=true') |
| 494 | 495 |
| 495 @config_ctx() | 496 @config_ctx() |
| 496 def gn_minimal_symbols(c): | 497 def gn_minimal_symbols(c): |
| 497 c.gn_args.append('symbol_level=1') | 498 c.gn_args.append('symbol_level=1') |
| 498 | 499 |
| 499 #### 'Full' configurations | 500 #### 'Full' configurations |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 # Some of the binaries needed by the PGO gets copied into the build directory | 744 # Some of the binaries needed by the PGO gets copied into the build directory |
| 744 # during the build, we need to augment the PATH variable so it can find them | 745 # during the build, we need to augment the PATH variable so it can find them |
| 745 # during the profiling step. | 746 # during the profiling step. |
| 746 c.env.PATH.extend([c.build_dir.join(c.build_config_fs)]) | 747 c.env.PATH.extend([c.build_dir.join(c.build_config_fs)]) |
| 747 | 748 |
| 748 @config_ctx(includes=['chromium_pgo_base']) | 749 @config_ctx(includes=['chromium_pgo_base']) |
| 749 def chromium_pgo_optimize(c): | 750 def chromium_pgo_optimize(c): |
| 750 c.gyp_env.GYP_DEFINES['chrome_pgo_phase'] = 2 | 751 c.gyp_env.GYP_DEFINES['chrome_pgo_phase'] = 2 |
| 751 | 752 |
| 752 @config_ctx() | 753 @config_ctx() |
| 754 def linux_dump_symbols(c): |
| 755 if c.TARGET_PLATFORM == 'linux': |
| 756 c.gyp_env.GYP_DEFINES['linux_dump_symbols'] = 1 |
| 757 |
| 758 @config_ctx() |
| 753 def v8_optimize_medium(c): | 759 def v8_optimize_medium(c): |
| 754 c.gyp_env.GYP_DEFINES['v8_optimized_debug'] = 1 | 760 c.gyp_env.GYP_DEFINES['v8_optimized_debug'] = 1 |
| 755 c.gyp_env.GYP_DEFINES['v8_enable_slow_dchecks'] = 1 | 761 c.gyp_env.GYP_DEFINES['v8_enable_slow_dchecks'] = 1 |
| 756 | 762 |
| 757 @config_ctx() | 763 @config_ctx() |
| 758 def v8_verify_heap(c): | 764 def v8_verify_heap(c): |
| 759 c.gyp_env.GYP_DEFINES['v8_enable_verify_heap'] = 1 | 765 c.gyp_env.GYP_DEFINES['v8_enable_verify_heap'] = 1 |
| 760 | 766 |
| 761 @config_ctx() | 767 @config_ctx() |
| 762 def chromium_perf(c): | 768 def chromium_perf(c): |
| 763 c.compile_py.clobber = False | 769 c.compile_py.clobber = False |
| 764 | 770 |
| 765 @config_ctx() | 771 @config_ctx() |
| 766 def chromium_perf_fyi(c): | 772 def chromium_perf_fyi(c): |
| 767 c.compile_py.clobber = False | 773 c.compile_py.clobber = False |
| 768 if c.HOST_PLATFORM == 'win': | 774 if c.HOST_PLATFORM == 'win': |
| 769 c.compile_py.compiler = None | 775 c.compile_py.compiler = None |
| 770 c.compile_py.goma_dir = None | 776 c.compile_py.goma_dir = None |
| 771 c.gyp_env.GYP_DEFINES['use_goma'] = 0 | 777 c.gyp_env.GYP_DEFINES['use_goma'] = 0 |
| 772 | 778 |
| 773 @config_ctx() | 779 @config_ctx() |
| 774 def chromium_deterministic_build(c): | 780 def chromium_deterministic_build(c): |
| 775 c.gyp_env.GYP_DEFINES['dont_embed_build_metadata'] = 1 | 781 c.gyp_env.GYP_DEFINES['dont_embed_build_metadata'] = 1 |
| 776 | 782 |
| 777 @config_ctx(includes=['chromium_clang']) | 783 @config_ctx(includes=['chromium_clang']) |
| 778 def cast_linux(c): | 784 def cast_linux(c): |
| 779 c.gyp_env.GYP_DEFINES['chromecast'] = 1 | 785 c.gyp_env.GYP_DEFINES['chromecast'] = 1 |
| 780 c.compile_py.default_targets = ['cast_shell', 'cast_test_lists'] | 786 c.compile_py.default_targets = ['cast_shell', 'cast_test_lists'] |
| OLD | NEW |