Chromium Code Reviews| 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, 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 406 | 406 |
| 407 def _android_common(c): | 407 def _android_common(c): |
| 408 gyp_defs = c.gyp_env.GYP_DEFINES | 408 gyp_defs = c.gyp_env.GYP_DEFINES |
| 409 gyp_defs['fastbuild'] = 1 | 409 gyp_defs['fastbuild'] = 1 |
| 410 gyp_defs['OS'] = c.TARGET_PLATFORM | 410 gyp_defs['OS'] = c.TARGET_PLATFORM |
| 411 | 411 |
| 412 @config_ctx(includes=['ninja', 'shared_library', 'jsonclang']) | 412 @config_ctx(includes=['ninja', 'shared_library', 'jsonclang']) |
| 413 def codesearch(c): | 413 def codesearch(c): |
| 414 gyp_defs = c.gyp_env.GYP_DEFINES | 414 gyp_defs = c.gyp_env.GYP_DEFINES |
| 415 gyp_defs['fastbuild'] = 1 | 415 gyp_defs['fastbuild'] = 1 |
| 416 | |
| 417 | |
| 418 @config_ctx() | |
|
iannucci
2014/06/19 21:37:17
you should probably depend on a compiler (ninja),
Sébastien Marchand
2014/07/03 19:13:17
Done.
| |
| 419 def chrome_pgo_base(c): | |
| 420 c.gyp_env.GYP_DEFINES['buildtype'] = 'Official' | |
| 421 c.gyp_env.GYP_DEFINES['optimize'] = 'max' | |
| 422 c.gyp_env.GYP_DEFINES['use_goma'] = 0 | |
| 423 c.gyp_env.GYP_DEFINES['fastbuild'] = 0 | |
|
iannucci
2014/06/19 21:37:17
I would set this by doing
fastbuild(c, invert=Tru
Sébastien Marchand
2014/07/03 19:13:17
Done.
| |
| 424 c.compile_py.default_targets = ['chrome'] | |
| 425 | |
| 426 #### 'Full' configurations | |
| 427 @config_ctx(includes=['chrome_pgo_base']) | |
| 428 def chrome_pgo_instrument(c): | |
| 429 c.gyp_env.GYP_DEFINES['chrome_pgo_phase'] = 1 | |
| 430 | |
| 431 @config_ctx(includes=['chrome_pgo_base']) | |
| 432 def chrome_pgo_optimize(c): | |
| 433 c.gyp_env.GYP_DEFINES['chrome_pgo_phase'] = 2 | |
| OLD | NEW |