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

Side by Side Diff: pylib/gyp/generator/ninja.py

Issue 10399055: ninja: Change the default target from 'build everything' to 'build target "all"'. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 Google Inc. All rights reserved. 1 # Copyright (c) 2012 Google Inc. 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 copy 5 import copy
6 import gyp 6 import gyp
7 import gyp.common 7 import gyp.common
8 import gyp.msvs_emulation 8 import gyp.msvs_emulation
9 import gyp.MSVSVersion 9 import gyp.MSVSVersion
10 import gyp.system_test 10 import gyp.system_test
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after
1471 flavor, abs_build_dir=abs_build_dir) 1471 flavor, abs_build_dir=abs_build_dir)
1472 master_ninja.subninja(output_file) 1472 master_ninja.subninja(output_file)
1473 1473
1474 target = writer.WriteSpec(spec, config_name, generator_flags) 1474 target = writer.WriteSpec(spec, config_name, generator_flags)
1475 if target: 1475 if target:
1476 target_outputs[qualified_target] = target 1476 target_outputs[qualified_target] = target
1477 if qualified_target in all_targets: 1477 if qualified_target in all_targets:
1478 all_outputs.add(target.FinalOutput()) 1478 all_outputs.add(target.FinalOutput())
1479 1479
1480 if all_outputs: 1480 if all_outputs:
1481 master_ninja.newline()
1481 master_ninja.build('all', 'phony', list(all_outputs)) 1482 master_ninja.build('all', 'phony', list(all_outputs))
1483 master_ninja.default('all')
1482 1484
1483 1485
1484 def GenerateOutput(target_list, target_dicts, data, params): 1486 def GenerateOutput(target_list, target_dicts, data, params):
1485 if params['options'].generator_output: 1487 if params['options'].generator_output:
1486 raise NotImplementedError, "--generator_output not implemented for ninja" 1488 raise NotImplementedError, "--generator_output not implemented for ninja"
1487 1489
1488 user_config = params.get('generator_flags', {}).get('config', None) 1490 user_config = params.get('generator_flags', {}).get('config', None)
1489 if user_config: 1491 if user_config:
1490 GenerateOutputForConfig(target_list, target_dicts, data, params, 1492 GenerateOutputForConfig(target_list, target_dicts, data, params,
1491 user_config) 1493 user_config)
1492 else: 1494 else:
1493 config_names = target_dicts[target_list[0]]['configurations'].keys() 1495 config_names = target_dicts[target_list[0]]['configurations'].keys()
1494 for config_name in config_names: 1496 for config_name in config_names:
1495 GenerateOutputForConfig(target_list, target_dicts, data, params, 1497 GenerateOutputForConfig(target_list, target_dicts, data, params,
1496 config_name) 1498 config_name)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698