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

Side by Side Diff: scripts/slave/recipe_modules/chromium/config.py

Issue 2033513002: recipes: Switch from 3 ways for requesting clobber builds to 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build@master
Patch Set: presubmit2 Created 4 years, 6 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
OLDNEW
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 recipe_engine.config import config_item_context, ConfigGroup 7 from recipe_engine.config import config_item_context, ConfigGroup
8 from recipe_engine.config import Dict, List, Single, Static, Set, BadConf 8 from recipe_engine.config import Dict, List, Single, Static, Set, BadConf
9 from recipe_engine.config_types import Path 9 from recipe_engine.config_types import Path
10 10
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 gyp_defs['fastbuild'] = 1 749 gyp_defs['fastbuild'] = 1
750 750
751 @config_ctx(includes=['ninja', 'static_library', 'msvs2015']) 751 @config_ctx(includes=['ninja', 'static_library', 'msvs2015'])
752 def chromium_pgo_base(c): 752 def chromium_pgo_base(c):
753 c.gyp_env.GYP_DEFINES['buildtype'] = 'Official' 753 c.gyp_env.GYP_DEFINES['buildtype'] = 'Official'
754 c.gyp_env.GYP_DEFINES['use_goma'] = 0 754 c.gyp_env.GYP_DEFINES['use_goma'] = 0
755 fastbuild(c, invert=True) 755 fastbuild(c, invert=True)
756 c.compile_py.default_targets = ['chrome'] 756 c.compile_py.default_targets = ['chrome']
757 757
758 #### 'Full' configurations 758 #### 'Full' configurations
759 @config_ctx(includes=['chromium_pgo_base']) 759 @config_ctx(includes=['chromium_pgo_base', 'clobber'])
760 def chromium_pgo_instrument(c): 760 def chromium_pgo_instrument(c):
761 c.gyp_env.GYP_DEFINES['chrome_pgo_phase'] = 1 761 c.gyp_env.GYP_DEFINES['chrome_pgo_phase'] = 1
762 # Some of the binaries needed by the PGO gets copied into the build directory 762 # Some of the binaries needed by the PGO gets copied into the build directory
763 # during the build, we need to augment the PATH variable so it can find them 763 # during the build, we need to augment the PATH variable so it can find them
764 # during the profiling step. 764 # during the profiling step.
765 c.env.PATH.extend([c.build_dir.join(c.build_config_fs)]) 765 c.env.PATH.extend([c.build_dir.join(c.build_config_fs)])
766 766
767 @config_ctx(includes=['chromium_pgo_base']) 767 @config_ctx(includes=['chromium_pgo_base'])
768 def chromium_pgo_optimize(c): 768 def chromium_pgo_optimize(c):
769 c.gyp_env.GYP_DEFINES['chrome_pgo_phase'] = 2 769 c.gyp_env.GYP_DEFINES['chrome_pgo_phase'] = 2
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 c.gyp_env.GYP_DEFINES['internal_gles2_conform_tests'] = 1 801 c.gyp_env.GYP_DEFINES['internal_gles2_conform_tests'] = 1
802 802
803 @config_ctx() 803 @config_ctx()
804 def build_angle_deqp_tests(c): 804 def build_angle_deqp_tests(c):
805 c.gyp_env.GYP_DEFINES['build_angle_deqp_tests'] = 1 805 c.gyp_env.GYP_DEFINES['build_angle_deqp_tests'] = 1
806 806
807 @config_ctx() 807 @config_ctx()
808 def force_mac_toolchain(c): 808 def force_mac_toolchain(c):
809 c.env.FORCE_MAC_TOOLCHAIN = 1 809 c.env.FORCE_MAC_TOOLCHAIN = 1
810 c.gyp_env.FORCE_MAC_TOOLCHAIN = 1 810 c.gyp_env.FORCE_MAC_TOOLCHAIN = 1
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698