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

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

Issue 302763003: First version of the PGO recipe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 6 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 | Annotate | Revision Log
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 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, Single, Static, Set, BadConf 8 from slave.recipe_config import Dict, Single, Static, Set, BadConf
9 from slave.recipe_config_types import Path 9 from slave.recipe_config_types import Path
10 10
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 407
408 def _android_common(c): 408 def _android_common(c):
409 gyp_defs = c.gyp_env.GYP_DEFINES 409 gyp_defs = c.gyp_env.GYP_DEFINES
410 gyp_defs['fastbuild'] = 1 410 gyp_defs['fastbuild'] = 1
411 gyp_defs['OS'] = c.TARGET_PLATFORM 411 gyp_defs['OS'] = c.TARGET_PLATFORM
412 412
413 @config_ctx(includes=['ninja', 'shared_library', 'jsonclang']) 413 @config_ctx(includes=['ninja', 'shared_library', 'jsonclang'])
414 def codesearch(c): 414 def codesearch(c):
415 gyp_defs = c.gyp_env.GYP_DEFINES 415 gyp_defs = c.gyp_env.GYP_DEFINES
416 gyp_defs['fastbuild'] = 1 416 gyp_defs['fastbuild'] = 1
417
418
419 @config_ctx()
420 def chrome_pgo_base(c):
421 c.gyp_env.GYP_DEFINES['buildtype'] = 'Official'
422 c.gyp_env.GYP_DEFINES['optimize'] = 'max'
423 c.gyp_env.GYP_DEFINES['use_goma'] = 0
424 c.gyp_env.GYP_DEFINES['fastbuild'] = 0
425 c.compile_py.default_targets = ['chrome']
426
427 #### 'Full' configurations
428 @config_ctx(includes=['chrome_pgo_base'])
429 def chrome_pgo_instrument(c):
430 c.gyp_env.GYP_DEFINES['chrome_pgo_phase'] = 1
431
432 @config_ctx(includes=['chrome_pgo_base'])
433 def chrome_pgo_optimize(c):
434 c.gyp_env.GYP_DEFINES['chrome_pgo_phase'] = 2
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/chromium_pgo.py » ('j') | scripts/slave/recipes/chromium_pgo.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698